Re: [exim] Using the autenticator domain in filter

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Todd Lyons
Data:  
Para: Paulo Azevedo
CC: exim-users
Asunto: Re: [exim] Using the autenticator domain in filter
I believe what you're looking for is $authenticated_id. You can
extract the domain by doing:

${domain:$authenticated_id}

...Todd


On Tue, Apr 1, 2014 at 10:47 AM, Paulo Azevedo <pazevedo@???> wrote:
> Hello all.
>
> I have an Exim rule (router) that goes like:
>
> (...)
> condition = ${if exists {/etc/senderlist}{${lookup{$sender_address_domain}lsearch{/etc/senderlist}{0}{1}}}{}}
>
> This works fine as long as the sender doesn't use an alternate "mail from" header because $sender_address_domain will follow that instead of the true user domain (i.e., if the joe(at)domain.dom configures his email software to send mail as johndoe(at)yahoo.com , even if domain.dom is listed at /etc/senderlist the condition won't match because $sender_address_domain will be yahoo.com )
>
> The question is: as the email is sent through Exim using authentication, what is the variable that holds the true user domain and that can be used in that rule ?
>
> Regards,
>
> --
>
> Paulo Azevedo
> PTisp - Wherever internet can take you..
>
> pazevedo@???
> tel : +351 249 739 099 | fax. +351 249 739 154
> www.ptisp.pt
>
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/




--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine