filters

  1. C

    How to remove X-Ham-Report from message header

    I have an incoming message which contains a header I want to remove before passing it on to the addressee (using a Forwarding Rule). So I want to create a filter which recognises this is a message I need to fix. and which uses the "Pipe to a Program" option. I then have to provide a script...
  2. S

    SOLVED How to set up user filters correctly

    Hi all, Godaddy Linux cpanel email user filters (Exim) I have set up "user filters" Rules Subject contains Any Header contains Actions Discard Message On testing ...... Headers charset "UTF-8" Filtering did not set up a significant delivery. Normal delivery will occur. The spam...
  3. Alrissa

    Spam Assasin Spam filters "advanced users"

    I think I missed something in the last two updates. "Spam Assassin" is now "Spam Filters" and the additional configuration changes (blacklisting/whitelisting) are now moved somewhere else? Docs seems to indicate it's still there: Spam Filters - Version 74 Documentation - cPanel Documentation...
  4. V

    Make global filter under cPanel account?

    Hi, I'd like to make a global filter, to put all emails containing `****SPAM****` in the Junk folder. This works fine if I make an email filter, but then I need to make an individual filter for each email account: headers charset "UTF-8" if not first_delivery and error_message then finish...
  5. B

    limit email size?

    Is there a way to limit the size of email messages received/sent from a specific individual cPanel account or domain? I know that I can go into WHM, Exim Configuration Editor: message_size_limit = ***M however this applies the size limit across all cPanel accounts/domains on the server - I...
  6. S

    SOLVED UAPI store_filter - specify minimum spam score

    Hi, Using the UAPI function store_filter described here: UAPI Functions - Email::store_filter - Developer Documentation - cPanel Documentation does not mention a "part" parameter for spam score. However, in the old API Email::addfilter described here: cPanel API 1 Functions - Email::addfilter...
  7. J

    SOLVED SpamAssassin or other means of whitelisting by TO address?

    I'm an end-user with cPanel hosting on a shared server. There's a mailing list that I'm on which is constantly getting messages labeled as spam by SpamAssassin, and I can't figure out how to whitelist them. The mailing list is hosted by [removed], and for some reason the list admin has...
  8. F

    SOLVED Filter to discard some email?

    Hello, i need to filter a email for it to receive emails just from some email addresses and all others that are not in the filter to discard, i know how to do this with one email (receive from one email address only) but how do i do this to receive from more that one email address and discard...
  9. N

    Exim custom filtering of email

    Hi, My customer would like to block senders' email to reach certain domain names that sit within the same server. I had written the following codes to the exim filter. or ("$h_to:, $h_cc:" contains "@abc.com") or ("$h_to:, $h_cc:" contains "@erf.com") then fail text "This email address is no...
  10. D

    Exim Custom Filters don't work

    Hello, My exim sever and the SpamAssasin doesn't check all the spam.. I have seen that certains domains send all the time spam, so I create new rules to block them But this new rules they are not working... This morning I recieved a email where return-path: contains @a2hosting.com .. I create...
  11. A

    block any user sending to specific email address

    First off, a site on my server is sending out about 1000 emails per hour to a single address. It's been doing it for the past couple of days. (Fortunately they're bounced back, no mailbox there, so no one is actually getting them.) We're trying to find the problem but it's taking ages and in...
  12. F

    Stop .Jar attachments - Exim filter

    Hello, I copied the original "cpanel_exim_system_filter" and saved it with the name "cpanel_system_filter_new". I added the .jar extension for the attachments (see attached screenshot). I send mail with an .jar attachment and everything works well and I get the Mailer Daemon blocking message...
  13. M

    Restrict outgoing email to certain domains

    Hi, I'm trying to restrict emails from my account (mydomain.com) and only allow users email addresses at mydomain.com and myotherdomain.com, with the exception of users john and david .. I've tried the code below with no luck, all emails fail !? I'm new to this and this is my first attempt so...
  14. keat63

    trying to block tld with exim custom filter

    I created a custom filter in /usr/local/cpanel/etc/exim/sysfilter/options/ to block .date TLD's, but can't get it to work. if first_delivery and ("$h_to:, $h_cc:" contains ".date") or ("$h_from:" contains ".date") then seen finish endif Now go into WHM -> Exim Configuration Manager -> Basic...
  15. A

    custom exim filter for incoming mail

    I would like to add a custom exim filter files for incoming mail which has a link with "php?" then delivered it to spam folder or mark it as spam like give it a spam score I can't use the SpamAssassin for that becouse the SpamAssassin doesn't scan the mail which has a big size , no recommended...
  16. V

    Exclude Email Account from System Filter Rule

    Hi All, I have a system filter rule in /etc/cpanel_exim_system_filter_custom and it is currently working now. if ( $h_to: does not contain "our-domain.com" and $h_to: does not contain "allowed-domain1.com" and $h_to: does not contain "allowed-domain2.com" and $h_to: does not contain...
  17. V

    SOLVED Exim Deny All Except

    Hi All, I want outgoing messages for our domain (our-domain.com) blocked except for other other domains. I tried the suggested exim filter from cPanelMichael but it's not working. I want our-domain to blocked from all domains but still can send to our-domain.com, allowed1.com and allowed2.com...
  18. D

    Issue saving EXIM configuration

    It doesn't appear to be possible to create a global exim filter, only a .yaml one; otherwise I might be able to shift the filtering up to the account level. Re-entering 250K lines of exim filters into the cpanel GUI for account filtering...<shudder> I thought that the dovecot log files might...
  19. K

    SOLVED Debugging the attachments part of system filter file

    Hi, I recently noticed an email delivered with an attachment that is forbidden in the system filter file. Using /usr/lib/sendmail -bF /etc/cpanel_exim_system_filter -v <test-message I could see that the attachments lines were not matched, though the Content-Type and Content-Disposition...
  20. D

    FIltering Problems

    I have heard people say this filtering is "fantastic" so I must be missing something because is seems to me to be hopeless at stopping spam. If I have a hundred words or phrases I assume I have to enter each one as a separate rule and as the rules are case sensitive the combinations for the...