![]() |
Postfix relaying mail to internal mail server
All,
I have an Exchange server running inside our network, exchange.mydomain.local at 192.168.168.3 I am trying to set up Postfix to accept mail bound for mydomain.com and relay / forward it to the exchange server. It will accept mydomain.com email but it tries to deliver it locally. I added "mydomain.com smtp:[192.168.168.3]" to /etc/postfix/transport and ran postmap transport. I cant seem to figure out what changes to main.cf I need to stop mydomain.com mail from being delivered locally on the Postfix box. Any suggestions? Thanks, Chris |
Hmm, according to my Postfix book you should just need:
an entry in /etc/postfix/transport mydomain.com smtp:192.168.168.3 entry in /etc/postfix/main.cf transport_maps = hash:/etc/postfix/transport then I believe you need to run postmap /etc/postfix/transport One other thing I came across, you may want to set default_transport = smtp which should force Postfix to try SMTP delivery for anything not defined explicitly (this should defeat implicit local delivery). WARNING: I have NOT tested ANY of the above. I'm just interpreting information from Postfix by Richard Blum, published by Sams. |
Thanks chort......adding the
transport_maps = hash:/etc/postfix/transport fixed the issue. Thanks for your quick reply. --Chris |
| All times are GMT -5. The time now is 12:02 AM. |