Author Topic: roundcube 1.1.4 using unqualified hostname in SMTP HELO command - SOLVED  (Read 4095 times)

Offline bgene

  • Newbie
  • *
  • Posts: 2
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:

Code: [Select]
[28-Dec-2015 10:24:48 -0600]: <99b4de1d> SMTP Error: Failed to add recipient 'glb@Bomgardner.net'. 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

« Last Edit: December 28, 2015, 06:11:17 PM by bgene »

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: roundcube 1.1.4 using unqualified hostname in SMTP HELO command
« Reply #1 on: December 28, 2015, 03:55:23 PM »
Roundcube uses $_SERVER['SERVER_NAME'] variable or the value configured by smtp_helo_host option.

Offline bgene

  • Newbie
  • *
  • Posts: 2
Re: roundcube 1.1.4 using unqualified hostname in SMTP HELO command
« Reply #2 on: December 28, 2015, 06:08:45 PM »
Yup - smtp_helo_host did the trick.

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

Thanks a zillion.
Gene