Roundcube & HELO command error 504

Renaud Hager rhager at parisgeo.cnrs.fr
Mon May 28 14:19:05 CEST 2007


Hi,
I installed roundcube version rc1. After having configured main.inc.php and
db.inc.php, I was unable to send any emails.
I had a problem with the postfix server, the error was : 504 5.5.2
<localhost: Helo command rejected: need fully-qualified hostname.

In order to solve this problem I modified the file
program/include/rcube_smtp.inc. I replaced the line 75 (  $helo_host =
!empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'localhost';)
with this :

 if ( !empty($CONFIG['helo_host']) ) {
  $helo_host = $CONFIG['helo_host'];
 }
 elseif ( !empty($_SERVER['server_name']) ){
  $helo_host = $_SERVER['server_name'];
 }
 else {
  $helo_host = 'localhost';
 }

Then in main.inc.php I added the line :

$rcmail_config['helo_host']= 'myhostname';

It finally worked for me! ;)

Hope this helps
-- 
________________________________________________

Renaud Hager 
Administrateur Système et Réseaux
UMR 8504 
13 rue du four 75006 Paris





More information about the users mailing list