I have postfix installed on a standalone centos 5.6 box which hosts mysite.com the email for mysite.com SHOULD be delivered to my exchange server - which is setup properly and if you sent an email from the outside world to mysite.com if would come to my exchange server. My problem is that this server does not want to deliver email it generates for mysite.com to anything other than itself. On my centos 5.6 box I have postfix running and have aliased 'root' to [email protected] (www.mysite.com runs on this server) We have one email address configured on exchange for the site and it's: [email protected] In Postfix there is also a support mailbox that is aliases to root (by default) postfix delivers email to all other domains properly but it think it should be delivering all email from mysite.com addressed to mysite.com to itself. when an email is generated on the site that supposed to be sent to [email protected] I get this error in maillog Mar 21 14:23:21 mysite postfix/local[3999]: 772443260005: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.19, delays=0.09/0/0/0.1, dsn=5.4.6, status=bounced (alias database loop for root) How do I get postfix to recognize that email for mysite.com is not being hosted on this server and to deliver it outside the server through smtp?
thanks this info along with http://www.ithowto.ro/2008/10/howto-add-custom-transport-routes-maps-in-postfix/ allowed me to fix the problem!