On Tue, Mar 17, 2009 at 12:01:13PM CET, Charles Marcus <[email protected]> said: > On 3/17/2009 6:47 AM, LuKreme wrote: > > I rewrite [email protected] to [email protected] > > > > virtaul.pcre: > > /^(.*)_(.*)@example.com$/ ${1}[email protected] > > > > virtual_alias_maps = > > hash:$config_directory/virtual > > pcre:$config_directory/virtual.pcre, > > mysql:$config_directory/mysql_virtual_alias_maps.cf > > > > your line would look like > > /^(.*)@(.*)\.example.com$/ ${1}[email protected] > > > > In fact, I like that idea, I might implement it. > > I like this idea, since I have encountered some sites that don't allow > plus addressing when signing up for things... > > The only obvious issue is to make sure you don't have any users with > underscores as part of their local username.
I would fear it breaks recipient validation, accepting mail for eavery address with a _ as valid. -- Erwan
