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!

How can I rebuild the "Trusted Hosts" list in Greylisting

Discussion in 'E-mail Discussion' started by Kent Brockman, Jun 29, 2016.

Tags:
  1. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,189
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello guys. I have this server where after activating Greylisting, it has no entries in the Trusted Hosts list. Only the current host IP range is added to the whitelist.

    I've seen in the past that the list in charge of it is located at /etc/greylist_trusted_netblocks. In my other servers the list is complete with the built-in list of IP ranges from well known ESP as it is shipped with cPanel. But the same file in this server hasn't.

    I've tried copying the contents of one wortking file to this one with the issue, but after restarting Exim, it is reset and emptied again.

    Is there any command I can run to have it working back to normal?

    Thanks in advance!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    983
    Likes Received:
    387
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hi Kent,

    Look in your Common Mail Providers in Home » Email » Greylisting

    I think you will see the list of Mail Providers that are trusted and the auto-update options that trigger each upcp run.

    I have to assume that the fact that one cannot see the IP's of the Mail Providers in the Trusted Hosts section any more is by design, although this was certainly disconcerting when I first noticed it, one hopes that they are actually downloaded and used :confused:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 rpvw, Jun 30, 2016
    Last edited by a moderator: Jul 6, 2016
  3. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,189
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's weird at least. In all my other servers the Trusted Hosts list is correctly populated with the IP ranges of those ESP present in the Common Mail Providers list.

    I cannot keep enabled the Greylisting feature if it will constantly defer everything. I need a solution asap.

    Anybody from cPanel?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    983
    Likes Received:
    387
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I ran a series of tests using various hosts, and all the mail sent from hosts listed and enabled in Common Mail providers that I was able to test; was delivered immediately, whilst all the others were seen to be added to the greylisting queue.

    I am quite happy in my own mind that the Common Mail Providers IP listings are being respected, even if they are not being shown in the Trusted Hosts page.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is the server in question using a different version of cPanel compared to the other servers?

    As of cPanel 58, the common mail provider IP list associated with the Greylisting feature is stored in the following file:

    /etc/greylist_common_mail_providers

    The "Trusted Hosts" list is separate, and designed for IP addresses you choose to manually trust.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,189
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    No. All servers are using the same cPanel version, cPanel stable 56.
    Still didn't find a solution. Is there any command or something to repopulate this list?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Here's an example of how the interface looks in cPanel version 56.0.28:

    greylisting.png

    As you can see, the "Common Mail Providers" tab includes the trusted hosts, and the "Trusted Hosts" tab is for IP addresses you manually add to the interface. Are you seeing something different?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Kent Brockman

    Kent Brockman Well-Known Member

    Joined:
    Jan 20, 2008
    Messages:
    1,189
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for your answers Michael. The support buddies told me that this behaviour I observed is due to the new way in which the Greylisting will handle Trusted Zones. In the old method you was able to see exactly what were the IP ranges of every Common Provider, maybe making some obnoxious to read the list of Trusted Zones. But now they are hidden to allow a more comprehensive view of what YOU have manually whitelisted.

    So, it was not a bug; it was indeed a feature :)
    Thanks and good bye
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm happy to see your question was answered. Thanks for updating us with the outcome.
     
    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