dimanche 30 novembre 2014

Bad HELO - Host impersonating domain name when http://hostname/roundcube/

Hello,





That was noticed that webmails uses: localhost:587 as an address to connect to SMTP server. And when we work with http://domain.com/roundcube/ and http://hostname/roundcube/ we get an error:






Code:



2014-11-30 08:38:32 H=localhost (hostname) [::1] rejected EHLO or HELO hostname: Bad HELO - Host impersonating hostname [hostname]

2014-11-30 08:38:32 H=localhost (hostname) [::1] rejected EHLO or HELO hostname: Bad HELO - Host impersonating hostname [hostname]





The exim.conf does not differentiate on what port is a connection made to: 25 or 587. And it does not differentiate whether or not a connection is made from an authenticated user. As a temporary solution we changed






Code:



$config['smtp_server'] = ''localhost';




to






Code:



$config['smtp_server'] = '%n';




in roundcube config.





and






Code:



$smtpServerAddress = 'localhost';




to






Code:



$smtpServerAddress = $_SERVER['SERVER_NAME'];




for Squirrelmail.





Is there any better solution?






Code:



# SpamBlockerTechnology* powered exim.conf, Version 4.3.0,

# alpha-3

# September 9, 2014 03:03 (-0700)








Bad HELO - Host impersonating domain name when http://hostname/roundcube/

Aucun commentaire:

Enregistrer un commentaire