Roundcube Community Forum

 

roundcube 1.1.4 using unqualified hostname in SMTP HELO command - SOLVED

Started by bgene, December 28, 2015, 12:48:13 PM

Previous topic - Next topic

bgene

Hi - I'm new to Roundcube. Got it set up ok - it overlays dovecot and postfix. It reads email just fine, but when attempting to send mail via SMTP,
it does not use the fqdn in the HELO command sent to post fix. The fqdn for the host is 'brightstar.xxxxx.net'. What it is sending is just 'brightstar' producing the following error:

[28-Dec-2015 10:24:48 -0600]: <99b4de1d> SMTP Error: Failed to add recipient '[email protected]'. 5.7.1 <brightstar>: Helo command rejected: Host not found (Code: 556) in /usr/local/www/apache24/data/rmail/program/lib/Roundcube/rcube.php on line 1712 (POST /rmail/?_task=mail&_unlock=loading1451319884772&_lang=en_US&_framed=1?_task=mail&_action=send)
brightstar#


Commenting out 'reject_unknown_hostname' in postfix's main.cf allows it to work, but disables an important tool in spam rejection. I need to figure out just what's going on here and how to fix it.

Any ideas are greatly appreciated.

Thanks,
Gene


alec

Roundcube uses $_SERVER['SERVER_NAME'] variable or the value configured by smtp_helo_host option.

bgene

Yup - smtp_helo_host did the trick.

$_SERVER['SERVER_NAME'] returns an empty string.

Thanks a zillion.
Gene