Strip Apostrophe (or any character) in SMTP email address (Exchange 2003/2007)

From ben.goodacre.name/tech

Jump to: navigation, search

Contents

Background

As per RFC certain characters are not permissalbe in SMTP addresses. All versions of Exchange automatically strip/remove invalid characters. Apostrophes on the contrary are 'offically' allowed however it is general practice to not use them in smtp address as despite Exchange handling them OK; other systems such as Watchguard will block smtp sessions that contain an apostrophe.

Using the %r replacement string

The replacement string in a recipient policy (Exchange 2000/2003) or an email address policy (Exchange 2007) allow a character to be replaced/substituted for another or simply deleted when used BEFORE the replacement string where characters should be reaplced.

Syntax

%rxy

To replace character "x" with character "y"

%rxx
To strip/delete all occurances of "x"

%g.%r''%s@domain.com

Change configuration to affect all users

Exchange 2007

Exchange 2003

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox