Re: [exim] Whilelisting a single IP

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Whilelisting a single IP
On Mon, 21 Nov 2005, Roberto Salvatierra wrote:
> condition = ${if match{${mask:$sender_host_address/32}{200.91.77.43/32}{no}{yes}}


Apart from the syntax error, that's one of the worst mis-uses of string
expansions I've seen in a long time. (Admittedly, I have been away from
Exim for 10 days, but still...)

Remember: never use the condition condition without checking for a more
readable alternative first. (I think this is rule 1 of good Exim style.)

In this case you should write:
    ! hosts = 200.91.77.43


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}