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.

What is the best way to block inbound spam emails?

Discussion in 'E-mail Discussions' started by lewis-teck, Apr 28, 2016.

Tags:
  1. lewis-teck

    lewis-teck Member

    Joined:
    Apr 28, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi,

    I logged in to an email account on a website that I manage, to find a bunch of spam emails. There can be anywhere from 0 to 10+ being sent in a day, which isn't ideal especially since the emails in this account get forwarded directly to the client (a family member).

    I do not wish to receive such emails anywhere on my server, so what would be the best way to block the domains or originating IP's of those emails, server-wide?

    Boxtrapper, Spamassassin and similar tools are great but not suitable nor apply everywhere.

    Thanks!
     
  2. Ameya Barwe

    Ameya Barwe Well-Known Member

    Joined:
    Jan 1, 2016
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Nashik
    cPanel Access Level:
    Root Administrator
  3. lewis-teck

    lewis-teck Member

    Joined:
    Apr 28, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thank you for your reply. Surprisingly, I never knew of the RBL's feature. I have enabled the two lists and hope that this will have a positive impact, especially as it is server-wide.

    However, for the emails that do get through, is there any way that I can manually list IP's of emails to block? I'm aware that I can report spam directly to the RBL providers however surely there is some way to ultimately remain in control?

    Thanks!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad you were able to learn about the RBLs you can enable in Exim Configuration Manager. To answer your additional question, yes, you can block emails from specific IP addresses. This is handled through the Access Lists tab in "WMH >> Exim Configuration Manager":

    Exim Configuration Manager - Basic Editor - Documentation - cPanel Documentation

    Choose the Access Lists tab, and utilize the Blacklisted SMTP IP addresses option to block emails from specific IP addresses.

    I hope this helps.

    Thanks!
     
  5. Ameya Barwe

    Ameya Barwe Well-Known Member

    Joined:
    Jan 1, 2016
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Nashik
    cPanel Access Level:
    Root Administrator
    There is one more option that you should think to enable :-

    "WHM >> Exim Configuration Manager" under the "ACL Options" tab to help prevent these types of emails:

    "Reject SPF failures"
     
  6. lewis-teck

    lewis-teck Member

    Joined:
    Apr 28, 2016
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thank you for your suggestions, however it appears that all of the options discussed in those last two posts above relate to SMTP - which of course, is outgoing mail. Even the access lists are named "Blacklisted SMTP IP addresses" or something. I am only looking to block certain IP's of incoming mail.

    Thanks
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I suggest blocking the IP using a firewall management utility such as CSF:

    ConfigServer Security & Firewall

    Thank you.
     
Loading...

Share This Page