SOLVED HELO name problem on roundcube

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello @Masimo,

There's an internal case open (FB-185645) regarding this topic. I'll update this thread with any updates on this case, but in the meantime, could you try making a change to the /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php file and let us know if it addresses the issue? You'd change the following entry:

Code:
// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$config['smtp_helo_host'] = '';
To:

Code:
// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$config['smtp_helo_host'] = 'localhost';
If this helps, you'd want to setup a post cPanel update hook to ensure the value is not overwritten using the commands below:

Code:
mkdir -p /root/custom/
touch /root/custom/postupcp.sh
chmod 0755 /root/custom/postupcp.sh
vi /root/custom/postupcp.sh
When editing this file, add a line such as this:

Code:
replace "$config['smtp_helo_host'] = '';" "$config['smtp_helo_host'] = 'localhost';" -- /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php
Then, to have this script execute automatically after each cPanel update, run this command:

Code:
/usr/local/cpanel/bin/manage_hooks add script /root/custom/postupcp.sh --manual --category System --event upcp --stage post
This will ensure the custom value is preserved through cPanel updates. Once a resolution is published to fix this issue, you'd use the following commands to remove this hook:

Code:
rm /root/custom/postupcp.sh
/usr/local/cpanel/bin/manage_hooks delete script /root/custom/postupcp.sh --manual --category System --event upcp --stage post
Thank you.
 
  • Like
Reactions: Masimo

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

To update, this is fixed as part of internal case CPANEL-17772 in cPanel version 70:

Fixed case CPANEL-17772: Update cpanel-roundcubemail to 1.3.3-2.cp1164.

This will ensure Roundcube uses the hostname for the HELO name.

Thank you.