Re: [exim] Block HELO with IPs

Góra strony
Delete this message
Reply to this message
Autor: Heiko Schlittermann
Data:  
Dla: exim-users
Temat: Re: [exim] Block HELO with IPs
Luca Bertoncello <lucabert@???> (So 23 Sep 2007 20:32:39 CEST):
> Heiko Schlittermann <hs@???> schrieb:
>
> > "isip" checks if the argument is an IP. "[84.79.58.33]" isn't an IP.
> OK! Could you suggest me a RegExp I can use to test these HELOs?


You might use "sg" to remove [ and ] from any helo and test then.
Or just refuse all HELOs containing [ or ]. (But I'm not sure if
these brackes only appear on IP addresses or if they're allowed with
hostnames too. The RFCs will be your friends.

Just for testing:
exim4 -be '${if isip{${sg{[1.1.1.1]}{[\\[\\]]}{}}}}'

    Best regards from Dresden
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann HS12-RIPE -----------------------------------------
 gnupg encrypted messages are welcome - key ID: 48D0359B ---------------
 gnupg fingerprint: 3061 CFBF 2D88 F034 E8D2  7E92 EE4E AC98 48D0 359B -