On Mon, Jun 21, 2010 at 02:38:37PM +0300, Nikita Koshikov wrote: > Hello exim experts, > > I need exim to rewrite addresses like: <u...@domain*admin> to the form > <u...@domain>. > > Here is the rule I made for this: > > \N^(.*)\*admin(.*)?$\N $1$2 S > > This is working on smtp-time MAIL FROM stage as I needed, but headers doesn't > touched by it. > Adding one more rule without S flag didn't help and body headers From, > Sender, etc list unrewritten data. > > What's wrong and how can I fix this ?
Well on my box, rewriting aside, # exim4 -brw '[email protected]*admin' Syntax error in [email protected]*admin Malformed address: *admin may not follow [email protected] Since [email protected]*admin isn't a valid address (on account of "*" not being allowed in domain names), it looks to me like you're going to have a really hard time making it work. -- Dave Evans http://djce.org.uk/ http://djce.org.uk/pgpkey
signature.asc
Description: Digital signature
-- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
