|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: virtual_alias_maps: rewriting outbound
From: /dev/rob0 (rob0
gmx.co.uk)
Date: Sun Jul 02 2006 - 05:33:50 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday 02 July 2006 05:19, Magnus Bäck wrote:
> Chris McKeever <techjedi
gmail.com> wrote:
> > I have a virtual_alias_maps setup to handle legacy emails names:
> > first.last
example.com -> flast
example.com
> >
> > /(.)[^\.]*\.(.*)
(.*)$/ $1$2
$3
snip
> But that won't solve your problem. I suggest you avoid the .* domain
> wildcard and instead explicitly list the domains that you want
> rewritten.
>
> /(.)[^\.]*\.(.*)
example\.com$/ $1$2
example.com
> /(.)[^\.]*\.(.*)
example\.org$/ $1$2
example.org
> /(.)[^\.]*\.(.*)
example\.net$/ $1$2
example.net
I was thinking this would be a good case for an IF/ENDIF condition:
if /
(example\.(com|net|org)|domain\.invalid)$/
/(.)[^\.]*\.(.*)
(.*)$/ $1$2
$3
endif
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]