Re: [Exim] Exim 4 manualroute bug/feature

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Russell Wilton
CC: exim-users
Subject: Re: [Exim] Exim 4 manualroute bug/feature
On Tue, 8 Jul 2003, Russell Wilton wrote:

> This works as expected except for one thing: when it ships a message off to
> another host, it sends it to $local_part@mailhost. Unfortunately $local_part
> has had the suffix stripped at that point, so mail for 'list-admin' gets sent to
> 'list', causing mail loops and other general havoc.


This is something that has come up before. Now, what was the answer....

> Is there any option to either the router or the transport that will make it use
> the original local_part instead of the truncated version? Or is there a better
> way to do this? Any help greatly appreciated.


The previous discussion resulted in a Wish List item:

(161) 27-May-03 S Don't strip affixes for RCPT commands

(An generic transport option for this is the suggestion.)

In the current release, we concluded that if you want to have the
original local part in an outoing message, you should avoid using
local_part_suffix (or prefix) in the router. Instead, you can use a
regular expression. For example, instead of

local_part_suffix = -foobar

you could have

local_parts = ^.*-foobar

Or use a "condition" condition that does something similar. It's a bit
tedious, but there's probably some way to hack it.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book