Re: [exim] no ehlo possible when sender IP has no hostname

Top Page
Delete this message
Reply to this message
Author: Roman Khassraf
Date:  
To: exim-users
Subject: Re: [exim] no ehlo possible when sender IP has no hostname

hi fred,

thanks for your response

i have an acl_smtp_helo ACL :

  accept hosts = :
  accept hosts = +relay_from_hosts
  drop condition = ${if match{$sender_helo_name}{MY_IP}{yes}{no} }
       message   = "Dropped spammer pretending to be us"
  drop condition = ${if match{$sender_helo_name}{^[0-9]\.[0-9]\.[0-9]\.[0-9]}
{yes}{no} }
       message   = "Dropped IP-only or IP-starting helo"
  accept


i tested it with telnet, sending a helo/ehlo with the servers IP address or
any IP address drops the connection.

but at hosts without a resolved hostname even sending "ehlo" without any
arguments causes error 502 instead of error 501 Syntactically invalid EHLO
argument(s)


thanks
roman



Am Samstag, 23. Juli 2005 17:49 schrieb Fred Viles:
> On 22 Jul 2005 at 7:01, Roman Khassraf wrote about
>
>     "[exim] no ehlo possible when sender":
> |...
> | when the IP address of the user has no ptr and the hostname of the IP
> | can´t be resolved, the server responds to ehlo command with status code
> | 502, only helo is possible, so no auth advertise and no authentication is
> | possible
> |
> | i can´t find the option that makes this happen

>
> host_lookup won't cause that. Do you have an acl_smtp_helo ACL?
> What does it look like?
>
> - Fred