Postfix 'loops back to myself' error
I am having this error:
------------------------------------------- This is the mail system at host mail.myserver.net. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <john@mail.myserver.net> (expanded from <admin@myserver.net>): mail for mail.myserver.net loops back to myself ------------------------------------------- My postfix aliases file: ------------------------------------------- # /etc/aliases mailer-daemon: postmaster postmaster: john, me@myisp.net hostmaster: john, me@myisp.net webmaster: john, me@myisp.net admin: john, me@myisp.net abuse: john, me@myisp.net john: john, me@myisp.net information: william ------------------------------------------- Some of my main.cf file: ------------------------------------------- myhostname = mail.myserver.net alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = myserver.net, localhost, localhost.localdomain relayhost = ------------------------------------------- This is the exact setup I have on another server, but I don't get the loop back problem. Somehow postfix seems to be expanding the user john mail to include the 'mail.' in the address (john@mail.myserver.net). Not sure what is causing that. My DN points directly to my own DNS Server. Any suggestions? Thanks. |
This fixed it:
mydestination = myserver.net, localhost, mail.myserver.net Strange that it worked the other way in my other server. |
All times are GMT -5. The time now is 06:25 PM. |