Re: [exim] Changing Return-Path on SMTP relay

Top Pagina
Delete this message
Reply to this message
Auteur: ROGERS Richard
Datum:  
Aan: 'Bill Hayles', 'exim-users@exim.org'
Onderwerp: Re: [exim] Changing Return-Path on SMTP relay
Bill Hayles wrote:

> Hi, Steffen
>
> On Mon, 7 Mar 2011 18:08:45 +0100 in message number
> <00af01cbdcea$5175be40$f4613ac0$@???>, received here on
> 08/03/2011 10:56:38, "Steffen Heil" <lists@???> 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.