|
/Admin/email/postfix:
Receiving Mail for Multiple Domains
Since I have customized my postfix setup somewhat at this point, I am no longer sure what default behavior is. But in my current state, just adding domains to the mydestination line in /etc/postfix/main.cf was not sufficient. I kept getting the following error for any mail received for my just added domains:
mail for ckintl.biz loops back to myselfThe solution lies in my /etc/postfix/transport file (see Multi Relay). Domains for which I am handling e-mail must me directed to "local", ie:
langex.net local
ckintl.biz local
doesharleysuck.com local
otherwise the final
* smtp
line forces incoming e-mail for these domains to be sent out of the machine via smtp, where DNS just resolves back to the very same machine. Thus the "mail loops back to myself" wording of the error message.
Don't forget to add all local domain userids that don't already exist as an account on your mail server, and that you would like to receive mail for, to /etc/aliases. Then run
newaliases
/etc/init.d/postfix reload
posted at: 03:44 | path: /Admin/email/postfix | permanent link to this entry