Thomas Gelf wrote:
> Amavisd-new seems to use localhost_name for it's own EHLO,
> but is using $myheloname for it's own SMTP greeting banner
> (and 250 reply to HELO). I'm curious to find out why this
> variable is defined as follows:
>
>    my($myheloname);
> # $myheloname = c('myhostname');
> # $myheloname = 'localhost';
> # $myheloname = '[127.0.0.1]';
>    $myheloname = '[' . $conn->socket_ip . ']';
>
> IMO c('myhostname') would be the better choice, isn't it?
>   

if it helos with myhostname and this happens to be the hostname of the 
MTA, then the MTA will reject the connection. localhost is safer.

note that as a proxy, amavisd-new has two sides: an smtp server and an 
smtp client. the hostname is for the server, and helo is only for the 
client side. there is no reason to make these sides "match".



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to