Re: [Exim] Router conditional Statement for spamassassin

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Owen Creger
Υ/ο: 'exim-users@exim.org'
Αντικείμενο: Re: [Exim] Router conditional Statement for spamassassin
On Tue, 3 Dec 2002, Owen Creger wrote:

> I would {!eq {$sender_host_address}{10.0.0.0/8}} cover all the 10 addresses?


No. "eq" does a straight text comparison. It is not magic; it doesn't
know you are dealing with IP addresses here.

However, there *is* some magic that can help you. Check out the "mask"
expansion operator. That will enable you to turn the contents of
$sender_host_address into a masked value such that eq can compare it.

Hint: "exim -be" is your friend for testing expansions.

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