--On 14 March 2011 12:08:48 +0000 ROGERS Richard <[email protected]> wrote:

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]

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/



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