Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HELO name problem on roundcube

Discussion in 'E-mail Discussions' started by Masimo, May 25, 2017.

Tags:
  1. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    Roundcube doesn't show server hostname in HELO, i can confirm its OK on horde and just a problem on roundcube.
    How can fix this problem on roundcube?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,427
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Masimo likes this.
  3. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    Thank you very much.
    Your reply helped me to fix this issue.
     
    cPanelMichael likes this.
Loading...

Share This Page