On Tue, 2003-05-20 at 14:39, Paul Warren wrote:
> I am trying to pass email addressed to local users (optional with a
> suffix) to a bsmtp transport. I set up a director:
>
> spam_check_director:
> driver = localuser
> transport = spam_check_transport
> suffix = -*
> suffix_optional
>
> and a transport:
>
> spam_check_transport:
> driver = pipe
> bsmtp = one
> pipe = /some/command -u ${local_part}
>
> The problem is that an address such as pdw-foo@??? seems to
> get rewritten to pdw@??? when passed to the bsmtp pipe.
OK, digging further I see from directors/README:
On entry, the "local_part" field of the address points to the
local part we are dealing with, with any prefix and/or suffix
removed.
So this is at least the intended behaviour. So, I wondered if I could
rewrite the recipients back to how they should be. I then see from
http://www.scit.wlv.ac.uk/appdocs/exim/spec_34.html:
it is not possible to rewrite envelope recipients at transport
time.
So I'm stuck, it would appear. Any workarounds?
Paul