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!

Block Emails Exim Filter

Discussion in 'E-mail Discussion' started by diracuser, Jun 7, 2018.

  1. diracuser

    diracuser Active Member

    Joined:
    Oct 22, 2014
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,
    I want to block all the email send by a specific website, because all is spam..
    The email is like userInCpanel@MainNamehost.com
    I make the following filter: Exim Configuration Manager--> Filters:


    Code:
    if first_delivery
    and ("$h_from:" contains "userInCpanel@MainNamehost.com")
    then
    headers add "Old-Subject: $h_subject:"
    headers remove "Subject"
    headers add "Subject: SpamRule: EXIM FILTER userInCpane Block Unwanted Domains (was: $h_old-subject:)"
    headers remove "Old-Subject"
    deliver "spam@Mainhost.com"
    endif
    
    But it's not working ... Emails already are sended ...

    How can I check the custom filters are working correcty ??

    Thank you
     
    #1 diracuser, Jun 7, 2018
    Last edited by a moderator: Jun 7, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    1,350
    Likes Received:
    90
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @diracuser

    Is this mail being sent from your server? Ultimately the best course of action, if that's the case, is to resolve the spam issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. diracuser

    diracuser Active Member

    Joined:
    Oct 22, 2014
    Messages:
    38
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi @cPanelLauren , yes the email is sent by my server ...
    I created a custom global filter, but it seems that is not working correcty and I don't know why ...

    Any Ideas ?

    Thank you
     
  4. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    967
    Likes Received:
    37
    Trophy Points:
    28
    cPanel Access Level:
    Root Administrator
    How many emails is the domain sending?

    Maybe until you find an answer to your rule, you could slow him down.

    Change 'Maximum Hourly Email by Domain Relayed' in Modify Account
     
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