jamesoff.net




29
Jan
2007
0

Setting localparts in Exchange Recipient Policies

It’s taken me too long to find this.

(For the uninitiated, Exchange Recipient Policies tell Active Directory how to automatically generate email addresses for your users.)

If you want to tell a recipient policy in Exchange 2003 (and presumably 2007) how to generate the localpart other then just username, use these expanos:

%s : Surname (last name)

%g : Given name (first name)

%i : Middle initial

%d : Display name

%m : Exchange 2003 alias

%rxy : Replace all subsequent characters x with character y in username. If x = y, the character will be deleted.

There are other things you can do like chopping the string to a certain number of characters, see the full article for details.

No longer will I have to manually add first.last@domain.com to every user I create :D

http://support.microsoft.com/Default.aspx?kbid=822447





2
Aug
2005
3

Email address failures

I wonder, do services like Hotmail have an address rewriting rule that rewrites www.somename@hotmail.com to somename@hotmail.com, given the number of people who don’t understand the difference between a URL and an email address?





22
Jul
2005
0

BitDefender in Exim

After playing with BitDefender’s free ‘bdc’ command-line scanner for FreeBSD, I’ve set up the mailserver at work to scan with clamav and then BitDefender. Since I couldn’t find any canned examples online for how to do this, other than Exim’s documentation for wiring up a generic command-line scanner, I thought I’d share it. drop message = This message contains malware ($malware_name) [scanner2] set acl_m0 = cmdline:\ /usr/local/bdc/bdc –arc %s:\ infected:\ infected. (.+) malware = */defer_ok [scanner2] is for indicating to me which scanner spotted the virus (for stats and debugging). The set acl_m0 stuff is to do with using muliple virus scanners. In the first section of my Exim config I have av_scanner = $acl_m0. If you’re not using multiple scanners, then set av_scanner to cmdline:\ /usr/local/bdc/bdc --arc %s:\ infected:\ infected. (.+) and delete the set line from the ACL block.