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

Top Page
Delete this message
Reply to this message
Author: Ian Eiloart
Date:  
To: ROGERS Richard, 'Bill Hayles', 'exim-users@exim.org'
Subject: Re: [exim] Changing Return-Path on SMTP relay


--On 14 March 2011 12:08:48 +0000 ROGERS Richard
<Richard.Rogers@???> wrote:

> 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]


Actually, you shouldn't need them. We haven't accepted email where the
sender is in our domain for several years now, except where the email gets
either an SPF or DKIM pass. Actually, we don't use either SPF or DKIM in
the implementation, but we would if implementing now.

> !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.




--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/