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:

> I'm using Exim 4.44 with Dspam 3.5.0. Messages addressed to my users can
> be of the form user@domain or alias@domain, where alias is normally a
> fullname (jane.doe). The dspam router checks availability
> of a service attribute via LDAP for that user to determine if the user
> has opted in for Dspam.
>
> Unfortunately, at the point of the transport, the value of `%u' can either be
> `userid' or `alias', depending on the $local_part of the message's address.
>
> 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.

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}}