Re: [Exim] exim HELO ack

Pàgina inicial
Delete this message
Reply to this message
Autor: Russell King
Data:  
A: Wakko Warner
CC: Randy Bush, exim users
Assumpte: Re: [Exim] exim HELO ack
On Tue, Aug 26, 2003 at 08:56:44PM -0400, Wakko Warner wrote:
> I use this:
>     drop    message = HELO doesn't look like a hostname
>         log_message = Not a hostname
>         condition = ${if match{$sender_helo_name} \
>                       {\N^[^.].*\.[^.]+$\N} \
>                  {no}{yes} \
>                  }

>
> This means: Drop the HELO unless it contains a . somewhere in the HELO
> string, but may not begin or end with a . (imposed minimum length is 3
> chars). basically x.x is ok, but .x. is not


Note that:
- at least some Windows machines seem not to send a fqdn in their
HELO string (despite being told both their host and domain names.)

- "IP literal" will not have '.'s in if you're accepting IPv6
connections - you need to check for either '.'s or ':'s.

So you actually want something like:

        condition = ${if match{$sender_helo_name} \
                      {\N^[^.:].*[.:][^.:]+$\N} \
                 {no}{yes} \
                 }


--
Russell King (rmk@???)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html