Luca Bertoncello <[EMAIL PROTECTED]> (So 23 Sep 2007 20:32:39 CEST):
> Heiko Schlittermann <[EMAIL PROTECTED]> 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 -

Attachment: signature.asc
Description: Digital signature

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