Re: [exim] Tweak username in transport for dspam

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Jan-Piet Mens
CC: exim-users
Betreff: Re: [exim] Tweak username in transport for dspam
On Wed, 15 Jun 2005, Jan-Piet Mens wrote:
> On Wed Jun 15 2005 at 15:53:17 CEST, Tony Finch wrote:
> > On Wed, 15 Jun 2005, Jan-Piet Mens wrote:
> >
> > > How can I ensure that the command in the transport is called with the userid as
> > > retrieved from LDAP (i.e. I always want the userid, even if the message was
> > > sent to alias@domain) ?
> >
> > Make the dspam router run after the address has passed through the alias
> > router.
>
> I can't because the final mail drop for most of these users is not this Exim
> server, but a Lotus Domino server.


Either add a router before the dspam router which does email alias
resolution via LDAP, or alter the dspam router so that it sets
address_data to be the actual username and use that in the dspam transport
instead of $local_part.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}