Re: [Exim] redirect router issue with aliases

Page principale
Supprimer ce message
Répondre à ce message
Auteur: David Woodhouse
Date:  
À: Bruce Cornett
CC: exim-users
Sujet: Re: [Exim] redirect router issue with aliases
On Mon, 2004-01-26 at 11:24 -0500, Bruce Cornett wrote:
> Hello
>
> I am attempting to use a redirect router to send UCE to a specific mailbox
> for each user and send a copy back to the sender.


Don't send a copy back to whatever you happen to _think_ the sender is.
More often than not it'll be faked, and you're just causing collateral
damage.

> I have managed to make
> it work more or less as expected by rewriting the recipient as
> pex.$original_local_part@$original_domain (I have not yet tested what
> happens with multiple recipients).
>
> However, whenever the recipient is in the local /etc/aliases it fails.


When the recipient is in the local /etc/aliases, since there's no
'redirect_router' option specified for your system_aliases router, it
starts again at the beginning of your routers. It'll encounter the
'scan_redirect' router again, and that'll get invoked again since the
X-Redirect-To: header is still there... I think Exim gets bored and
declares the address is unroutable after a certain number of times round
the loop.

Why is 'headers_remove = X-Redirect-To:' commented out? I'm not entirely
sure that it would _work_ even if it wasn't, since the other routers may
see the _original_ message not the edited one. Best to test it and find
out.

--
dwmw2