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:
    938
    Likes Received:
    0
    Trophy Points:
    16
    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,146
    Likes Received:
    34
    Trophy Points:
    48
    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:
    938
    Likes Received:
    0
    Trophy Points:
    16
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    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:
    475
    Likes Received:
    1
    Trophy Points:
    18
    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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  7. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    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:
    938
    Likes Received:
    0
    Trophy Points:
    16
    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:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    We don't need to know the email addresses of the spammers.
     
Loading...

Share This Page