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.

How to stop receiving mails from a particular domain

Discussion in 'E-mail Discussions' started by crazyaboutlinux, Nov 27, 2015.

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    942
    Likes Received:
    0
    Trophy Points:
    66
    Hello,

    How do I stop receiving email from Spammers on my server?

    one of my customer getting daily 500+ spam mails from following ids
    Code:
    you@domain.com
    *@domain.com
    you@example.club
    *@example.club
    you@rouac.top
    *@rouac.top
    you@mydomain.xyz
    *@mydomain.xyz
    
    What i wan to to do is, I want block above domains or an entire .TLD to receive any more spam mails from them?
     
    #1 crazyaboutlinux, Nov 27, 2015
    Last edited by a moderator: Nov 27, 2015
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,445
    Likes Received:
    56
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Can you please try with the following steps, Create /etc/eximblacklist file and add your domain list.

    WHM >> Exim configuration editor >> Advanced Editor.

    Add the below lines in the first section.

    Code:
    domainlist exim_blacklist = lsearch;/etc/eximblacklist
    Now add inside the section under "ROUTERS CONFIGURATION "

    Code:
    reject_domains:
    
    driver = redirect
    # RBL Blacklist incoming hosts
    domains = +exim_blacklist
    allow_fail
    data = :fail: Connection rejected: SPAM source $domain is manually blacklisted
     
  3. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    942
    Likes Received:
    0
    Trophy Points:
    66
    Hi

    Thanks for giving me solutions

    I am unable to add lint "
    domainlist exim_blacklist = lsearch;/etc/eximblacklist"
    at
    WHM >> Exim configuration editor >> Advanced Editor.

    Can you please show me snap?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,678
    Likes Received:
    299
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Does this user have the "Default Address" setup properly in his cPanel?
     
  5. asmithjr

    asmithjr Well-Known Member

    Joined:
    Jun 13, 2003
    Messages:
    503
    Likes Received:
    4
    Trophy Points:
    168
    I found this Need to filter ALL email specifically the cpanel_exim_system_filter_custom file with rules very helpful. It may help you also.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,127
    Likes Received:
    1,366
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, the following thread should help answer this question:

    Need to filter ALL email

    Thank you.
     
  7. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    942
    Likes Received:
    0
    Trophy Points:
    66
    Of-course the current setting is

    "Current Setting::fail: No Such User Here" I guess it is the correct setting as suggested by cPanel in knowledgebase
     
  8. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    942
    Likes Received:
    0
    Trophy Points:
    66
    I can't believe this, our clients is getting too many spam emails from list below

    - Removed -
     
    #8 crazyaboutlinux, Dec 3, 2015
    Last edited by a moderator: Dec 3, 2015
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    15,678
    Likes Received:
    299
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    We don't need to know the email addresses of the spammers.
     
Loading...

Share This Page