Re: [Exim] bsmtp and suffixes options

Top Page
Delete this message
Reply to this message
Author: Paul Warren
Date:  
To: exim-users
Subject: Re: [Exim] bsmtp and suffixes options
I am still stuck on this issue:

I want a director to pass messages to a transport such that $local_part
contains a string corresponding to a local username and
$local_part_suffix corresponds to anything that was appended to the
username.

I want the transport to pass the message to a pipe that will then pass
it back to Exim using bsmtp *with the original envelope recipient in
tact*.

It seems that this is hard to do, because using the localuser director
with the suffix optional implicitly strips the suffix from the
"local_part".

Is there any way round this? Would the situation be better with Exim 4?

What I am actually trying to achieve is passing all incoming messages
through SpamAssassin, but with the recipient's username passed as a
parameter to SA so that it can read that user's config.

Paul

On Wed, 2003-05-21 at 17:59, Paul Warren wrote:
> 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
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##

--
Paul Warren, Client Services           DecisionSoft Limited
+44-1865-203192                        http://www.decisionsoft.com