Windows Exchange Server

Gary Pentland gary at sgluk.com
Tue Jun 3 11:11:57 IST 2008


I've been doing this for years, it's slightly off topic and there is stuff about this in the MailScanner wiki but as people tend to forget about that:-)

I have attached some old perl, based on something I found on the net years ago.  It dumps list of Exchange recipients from an AD, use as basis for sendmail virtusers map or valid users map, run every 10 mins or so.  Obviously change the passwords, domain controller names and baseDN.

Simplest in sendmail is to configure is to define a virtual domain, default recipient is "user does not exist type error", every other recipient becomes user at exchange.domain... Then chuck in a mailertable entry or an MX for exchange.domain pointing at a hub transport (2007) or a front-end (2003) and use a script based on the attached perl to make the virtusers map.

Alternatively, if you know you will only ever need to send to Exchange and nowhere else you could use something like the M4 fragment attached.  This is old so will probably need some tweaking for your site but it will give you an idea.

I'll leave it to Ronny here to help with postfix if you choose that route.

Hope that helps,

Gary

mailscanner-bounces at lists.mailscanner.info wrote:
>> I have numerous clients doing it this way and it just works.  If you
>> are using sendmail as your MailScanner MTA I can provide complete
>> help on how to make this work with MailScanner and exchange (all
>> versions).
>
> And I can help with postfix (+ Active Directory / LDAP)!
>
>
> As for the inter-Exchange traffic: this really should be "trusted"
> internal traffic, between internal servers, on an strictly internal
> network. If it is NOT then it should not be allowed to flow freely
> between servers directly.
>
> In any case you should run a mail scanning virus scanner on
> your Exchange servers so internal viruses can not propagate.
>
>
> Cheers,
> Ronny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap_get_recips.pl
Type: application/octet-stream
Size: 3127 bytes
Desc: ldap_get_recips.pl
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080603/4a6eabce/ldap_get_recips-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sendmail example.m4
Type: application/octet-stream
Size: 1085 bytes
Desc: sendmail example.m4
Url : http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080603/4a6eabce/sendmailexample-0001.obj


More information about the MailScanner mailing list