Re: [exim] Rewrite rule in Exim4

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] Rewrite rule in Exim4
On 29/08/16 09:40, rolandcg@??? wrote:
> I have a problem about a rewrite rule I configured.
> Basically, I want to rewrite all emails from my stage-environment to be
> sent to a particular mailbox.
> So this is what I did for rewriting:
>
> ^.*\$ "${if match {$header_From:}{.*@stage.domain.tld}
> {user@???}}" tT


The first field says to rewrite all source patterns,
the second gives an empty result if its built-in condition
does not apply.

>
> It works as planned, but I get nasty errors in my paniclog for all other
> mails:
>
> 2016-08-29 09:48:10 XXX Rewrite of other-user@??? yielded
> unparseable address: empty address in address
>
> What can I do to get rid of this message?


Personally I think that routing should be done in routers, not
using rewrites.
--
Cheers,
Jeremy