I can send and receive mail using user@example.com, but system generated emails such as root@mail.example.com bounce backup with an error:
May 1 03:14:52 mail postfix/smtp[62798]: 23CA4BD6B40: to=
, relay=none, delay=0.01, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail for mail.example.com loops back to myself)
How do I fix this error?
Postfix did found a dns reply to your email server, but it hasn't been configured to deal with address such as root@mail.example.com. In other words, your server is configured to accept user@example.com but not as user@mail.example.com. This is well known config problem with virtual domain. To fix this error either add system FQDN to mydestination or relay_domains. Postfix accepts mail for domain listed in virtual_mailbox_domains, virtual_alias_domains, and domains that resolve to IP addresses listed in inet_interfaces and proxy_interfaces. Update mydestination using postconf or by editing main.cf file:
mydestination = localhost.$mydomain, localhost, mail.example.com
Once done reload postfix:
# service postfix reload
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 2 comments… read them below or add one }
I’ve done it but does not works for me, this is what i got:
at /etc/postfix/main.cf
myhostname = example.tdl
myorigin = /etc/mailname
mydestination = example.tdl, localhost, localhost.localdomain
at /etc/mailname
example.tdl
at /etc/hostname
example.tdl
another cause is when you have too mail servers with same hostname
it happened for me
watch out for “greeted me with my own hostname”
@Andrés Chandía
i don’t think that is a FQDN
I proper FQDN is “myhost.mydomain.com.”
or even “myhost.mysubdomain.mydomain.com.”
though it depends if the trailing dot is inluded or not
the important thing is that if you do a ping or nslookup
you get your host (the mail server)
from anywhere in the interenet (the FQDN must be unique)