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!

2 sender hostnames used in alerts from Contact Manager

Discussion in 'E-mail Discussion' started by ottdev, Feb 22, 2018.

  1. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    115
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Some monitoring emails are going out FROM wrong hostname which is not a FQDN.
    Instead of city.hostname.tld for example, it's truncated to just city.

    /etc/hostname has the correct full name.
    Compare these 2:

    Code:
    018-02-21 21:32:43 1eoggd-0003N4-Ce <= cpanel@city.hostname.tld H=(localhost.localdomain) [127.0.0.1]:35106 P=esmtp S=39831 id=1519266763.1Q1xu26NCJv1gr4@city.hostname.tld T="[city.hostname.tld] New account: jimbob (sumdomain.tld)" for ouradminaddy@ourdom.tld
    2
    018-02-21 23:26:14 1eoiSU-0005Hh-2D <= cpanel@city H=(localhost.localdomain) [127.0.0.1]:56522 P=esmtp S=38094 id=1519273574.p1CXONGxEuT0Upaa@city T="[city] DISKWARN blocks \342\232\240: Mount Point \342\200\234/\342\200\235 (76.74.137.145): 63.78\302\240GB/132.8\302\240GB - 81.664352%" for ouradminaddy@ourdom.tld
    
    Where is cPanel pulling the hostname from for each of these two alerts?
    - Account creation and Disk usage warnings
    The latter messages are of course never reaching us because the sender address is not a FQDN and doesn't resolve. It's detected as spam.
     
    #1 ottdev, Feb 22, 2018
    Last edited: Feb 22, 2018
  2. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    115
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    It appears to be just disk warning and disk critical messaging picking up the wrong hostame.
    Where is this script ?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Haw you checked the account's contact email address to make sure its added properly?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    115
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    What account? This is not for an inidividual website cpanel.
    It's the server disk usage. And it's not the recipient address at fault - it's the FROM
    These are the alerts to the server admin from the WHM "Contact Manager".

    Specifically the ones for disk usage.
    I already checked /etc/hostname - it's correct.
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    My apologies.

    You've checked these as well I assume?
    Home »Server Configuration »Basic WebHost Manager® Setup
    Home »Server Contacts »Edit System Mail Preferences
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. ottdev

    ottdev Well-Known Member

    Joined:
    Oct 1, 2013
    Messages:
    115
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    There is no where here on those 2 pages you directed me to to specify the server's hostname which is then used for sending the alerts. Again, it is not a problem whatsoever with the recipient email addresses. They are correct. All other alerts appear to be addressed "FROM" the FQDN completed hostname of the server.

    These DISK alerts are addressed FROM the shorthostname.

    Where is script locate which sends the DISK alerts ? I tried but have been unable to find it. Or if someone can tell me where it is pulling the incorrect hostname from?
    /etc/hostname is correct
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,350
    Likes Received:
    404
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is it Friday yet? I'm no help at all here. :confused:

    You might try updating the hostname using this tool to see if it helps.

    The set_hostname Utility - Version 68 Documentation - cPanel Documentation


     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice