At 04:48 PM 6/1/2011, you wrote: >On 2011-06-01 Shawn Heisey wrote: >> On 6/1/2011 12:57 PM, Ansgar Wiechers wrote: >>> I'm aware of two ways to verify recipients when relaying mail to >>> upstream Exchange servers: >>> >>> - Export recipient addresses from AD and use that list as >>> $relay_recipient_maps. >>> - Use an LDAP query in $relay_recipient_maps. >>> >>> I seem to recall that there was a third option where Postfix would >>> probe the nexthop before accepting the mail, but was unable to find >>> it in the list archive. Can someone refresh my memory? Or did I mis- >>> remember that? >> >> I do the first option by running a script on the exchange server every >> 15 minutes, then grabbing the result five minutes later from the mail >> relays. It does some sanity checks before replacing relay_recipients >> and postmapping it. >> >> The Windows side (Exchange 2010 on 2008R2) of the process consists of >> VBScript to grab the info from AD, which then runs a perl script to >> clean up the file. > >What for? You can easily do all the cleaning with VBScript.
I've been using this one for a couple years: <http://www-personal.umich.edu/~malth/gaptuning/postfix/getadsmtp.pl>http://www-personal.umich.edu/~malth/gaptuning/postfix/getadsmtp.pl awk to format it to a two-field ";" delimited file, and then mysqlimport Len