Hello Todd. That was a lifesaver:
31945 expanding: $authenticated_id 31945 result: [email protected] 31945 expanding: ${domain:$authenticated_id} 31945 result: cliente.eximteste.xxxxxxx.pt Thanks ! -- Paulo Azevedo PTisp - Wherever internet can take you.. [email protected] tel : +351 249 739 099 | fax. +351 249 739 154 www.ptisp.pt ----- Original Message ----- From: "Todd Lyons" <[email protected]> To: "Paulo Azevedo" <[email protected]> Cc: "exim-users" <[email protected]> Sent: Wednesday, April 9, 2014 4:57:01 PM Subject: 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 <[email protected]> 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.. > > [email protected] > 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 -- ## 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/
