Re: [exim] Deny when from and to are the same

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andrew C Aitchison
Date:  
À: exim-users
Sujet: Re: [exim] Deny when from and to are the same
On Fri, 5 Apr 2019, AC via Exim-users wrote:

> I have two rules set up in acl_smtp_rcpt:
>
>  deny
>    hosts = ! +relay_from_hosts
>    condition = ${if eqi{$sender_address}{$local_part@$domain}}
>    log_message = Same sender and recipient address

>
>  deny
>    hosts = ! +relay_from_hosts
>    condition = ${if eqi{$reply_address}{$local_part@$domain}}
>    log_message = Same sender and reply address

>
> I'm trying to check when the From: address is the same as the To:
> address and the mail is coming from a host outside my accepted network.
>
> I just received a message where the addresses in From and To were the
> same but neither of these rules captured it.
>
> What am I missing to perform this check and deny spam messages like this?


acl_smtp_rcpt runs when processing the RCPT;
$reply_address cannot be set until the acl_smtp_data ACL.

-- 
Andrew C. Aitchison                    Cambridge, UK
             andrew@???