Quote:
Originally Posted by bjquinn Great! You deserve a dozen chocolate chip cookies for that!
A couple of questions real quick ---
Do you really have to use the IP address, it would be sad to hard code that... is that just to avoid unnecessary DNS traffic? |
Actually you need to if your external MX record points to your postfix MTA. If you did not use the ip (and the enclosing brackets) postfix will try to resolve the domain with DNS to know where to send the mail. Since the resolved address would be the postifx box and not the final destination you would get into an infinite mail loop.
Quote:
Originally Posted by bjquinn And I guess you haven't figured out the "recipient lookups against AD" yet? If not, and you're not going to try to do it immediately, maybe I'll get started on this project soon enough and be able to offer some help. So far I've just been researching out whether it's possible or not. |
I
have with the use of the PERL script. However I would like to see if the snippet I got from the postfix board works. I have relay_recipients working but my Exchange admin wants me to let all traffic pass into the Exchange box and let it bounce themails back out. He wants to only be able to look at one machine for logs and what not.
If I have not elaborated what the perls script does is log into the AD server and get a list of valid email recipients. It then updates a file for that domain say example_relay_recipients. It has the form
email1@example.com OK
email2@example.com OK ... and so on
After it writes the file it runs postmap on to create a hash.
In your main.cf you need to add a value to the relay_recipient_maps parameter like so:
relay_recipient_maps=hash:/opt/zimbra/postfix/conf/example_relay_recipients
Now Postfix will reject all mail for example.com that does not have a valid recipient.
Good luck!