Re: [Exim] Help with expansion variables

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Tony Earnshaw
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Help with expansion variables
On 19 Jan 2003, Tony Earnshaw wrote:

> What I'm trying to do, is to reject mail from senders who claim to be a
> local part in my domain.


A dangerous thing to do if there is any chance that

(a) One of your users may send out a message that gets forwarded back to
your MTA.

(b) You support roving users (with AUTH or whatever).

> A certain (very small up to now, but growing)
> amount of spam comes from these.


Sickening, isn't it.

>   # Trying to shut out people from outside who say they're us.
>   # Works partly :-)
>    deny condition = ${if and { \
>      {!eq {$sender_address_domain}{$domain}} \
>      {eq {$sender_address_local_part}{*@$domain}} \
>      } \
>      {true}{false} \
>      }


$sender_address_local_part can never be *@$domain, so your second test
is always false.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.