Bill Hayles wrote:

> Hi, Steffen
>
> On Mon, 7 Mar 2011 18:08:45 +0100 in message number
> <[email protected]>, received here on
> 08/03/2011 10:56:38, "Steffen Heil" <[email protected]> said:
>
> > Most recipients will drop mails that are FOR
> > and FROM them... This is a classical spam approach.
>
> Is there any way of doing this in Exim? It would be useful.

Bill,

You could do something like this:

warn
       condition = ${if eq {${lc:$sender_address}}{${lc:$local_part@$domain}} }
       sender_domains = +relay_to_domains
       !hosts = +relay_from_hosts : *.paypal.com [or any other exemptions you 
need]
       !local_parts = [put your exemptions here]
       set ACL_STATUS = SameAddr

Then do what you want with the ACL_STATUS flag (or just write it as a "deny" if 
you don't need any more flexibility).

Note the exemptions - you will almost certainly need some for genuine purposes.

Regards

Richard


The information in this email is confidential and is intended solely for the 
addressee.  Access to this email by anyone else is unauthorised.

If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, except for the 
purpose of delivery to the addressee, is prohibited and may be unlawful.  
Kindly notify the sender and delete the message and any attachment from your 
computer.

-- 
## List details at http://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/

Reply via email to