Re: [exim] SMTP-time rewriting

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Dave Evans
Datum:  
To: exim-users
Betreff: Re: [exim] SMTP-time rewriting
On Mon, Jun 21, 2010 at 02:38:37PM +0300, Nikita Koshikov wrote:
> Hello exim experts,
>
> I need exim to rewrite addresses like: <user@domain*admin> to the form <user@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 'user@???*admin'
Syntax error in user@???*admin
Malformed address: *admin may not follow user@???

Since user@???*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