MTA/Perl script for relaying only to Exchange-users

Brian McKerr bmckerr at
Mon Nov 26 01:40:37 GMT 2012

Correct me if I'm wrong, but thing you have to consider with the
'milterahead' approach is that if the downstream exchange server is
unavailable for some reason, you will not be able to receive any mail and
emails will bounce with invalid user or some such error ?

I have a shell script sitting in front of my zimbra server, this script is
run from cron and currently it runs every hour primarily because I rarely
add new email addresses or domains. It uses ldapsearch against the zimbra
server and could easily be adopted to suit AD/Exchange. It generates
postfix map files for virtual_mailbox and virtual_domains.

Happy to share if anyone wants to help me debug it  ;)

On Sat, Nov 24, 2012 at 8:05 AM, Peter Bonivart <bonivart at>wrote:

> On Fri, Nov 23, 2012 at 10:17 PM, Chris Stone <axisml at> wrote:
> > But, that would mean though that any changes to accounts on the Exchange
> > server(s) would not be reflected until the next time the script runs.
> Yes, but it also means it will be more robust.
> /peter
> --
> MailScanner mailing list
> mailscanner at
> Before posting, read
> Support MailScanner development - buy the book off the website!
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list