Error: Postfix - mail for example.com loops back to myself

You see the following error in your mail log:

Jul 18 12:14:33 mail postfix/smtp[1911]: 8C7372CF60: to=<[email protected]>, relay=none, delay=0, status=bounced (mail for example.com loops back to myself)

Solution

Please add example.com to the mydestination line in /etc/postfix/main.cf and restart Postfix:

service postfix restart
Share this page:

Suggested articles

6 Comment(s)

Add comment

Comments

By: makez at: 2016-12-27 15:12:55

It worked!

By: [email protected] at: 2019-06-16 21:26:55

I have same error but it already has my domail in /etc/postfix/main.cf

 mydestination = holmtek-research-ltd.uk, localhost, localhost.localdomain

By: Wajdi Jurry at: 2020-01-21 21:14:49

Works as charm! Thank you :)

By: Bernardo at: 2020-04-27 22:52:28

So this means I should be adding gmail.com, hotmail.com, outlook.com, yahoo.com, icloud.com, whatever_other_domain_imaginable.com to my configuration ?????

By: till at: 2020-04-28 06:16:55

No, this does not mean that. You just add your own domain name there, not recipient domains.

By: thctlo at: 2022-07-21 12:33:19

https://www.postfix.org/BASIC_CONFIGURATION_README.html  in order to avoid mail delivery loops, you must list all hostnames of the machine, including $myhostname, and localhost.$mydomain