Skip to main content

Exim Blacklist Domains Issue

Comments

5 comments

  • cPanelMichael
    but I don't see where I can add custom filters in the WHM. The only thing I can do is change the system filter, not add another filter.

    Hello :) It's suggesting you create those files via the command line in the following directory: /usr/local/cpanel/etc/exim/sysfilter/options/ There's also a document on this at: How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation Thank you.
    0
  • Shane3673
    Awesome, I get it now. The filters sections reads what is in this directory. Thanks.
    0
  • Shane3673
    If you could give me one more bit of input on this, since the code used here says contains, that means I should be able to do it at a domain or address level right, not just a TLD? So instead of ".*", I could do "*.*" or "*@*.*", obviously not using wildcards in the code but replacing them with what I want to block in exim.
    0
  • StoneyCreeker
    Yes you can if I understand your question. here is an example that might help:
    $h_from: contains "name@" or $h_from: contains "@domain.com"
    Both will work but are very powerful if not made very specific to your needs. You could block ALL messages from every "bill" or an entire domain like @aol.com. I suggest sending rule results to a test email account to monitor the results for a while. You can do that like this:
    #block email addresses if $h_from: contains "name@" or $h_from: contains "@domain.com" then deliver "SpamTest " seen finish endif
    Hope this helps.
    0
  • Shane3673
    Thanks, I thought so, but wanted to make sure. Don't at this point have a reason to do it, but might in the future.
    0

Please sign in to leave a comment.