![]() ![]() While testing, note that Gtube test email gives +1000 scores to spam. Note: The test email should be sent from a mailbox that is not located on the server. To test SpamAssassin, it is necessary to send a test email containing the following string of characters in the message body (in upper case and with no spaces or line breaks): XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X Where to see if the message is blocked by antivirus? Answer SpamAssassin Save your configuration and wait for WHM to refresh.How to test SpamAssassin or Kaspersky and Plesk Premium Antivirus antiviruses? and - add_header = X-989Spam-Status: No, score=$spam_score add_header = X-989Spam-Subject: ***SPAM*** $h_subjectĪdd_header = X-989Spam-Status: Yes, score=$spam_scoreĪdd_header = X-989Spam-Score: $spam_score_int Since the configuration file may change over time, make sure you are modifying only the add_header lines. Note that you're just changing X-Spam headers to X-989Spam headers (you can of course use any custom name you like as long as your custom-exim-system-filters match. Scroll down and change the spam header section to look like below. Log into WHM Main > Service Configuration > Exim Configuration Editor, and click Advanced Editor So the $h headers have both the headers received and headers added.Īdd custom spam filters into nf and then swap them out in cpanel_exim_filter log_message = "SpamAssassin as $ detected message as NOT spam ($spam_score)"įirst, copy your cpanel_exim_system filter: cp /etc/cpanel_exim_system_filter /etc/custom_exim_system_filter I realized that headers carry through, which might work headers add "X-Test-Spam-Bar: $h_X-Spam-Bar" So $spam_score_int is carried over along with $h_subject, but not spam_bar, which is vital X-Test-Spam-Subject: ***SPAM*** testīut. Headers add "X-Test-Spam-Report: $spam_report" Headers add "X-Test-Spam-Score-Int: $spam_score_int" Headers add "X-Test-Spam-Score:$spam_score" headers add "X-Test-Spam-Subject: ***SPAM*** $h_subject" I wonder if they carry over? Let's find out. So i find the section of nf that adds headers and see all the $spam variables. Add this to the end ofĬpanel_exim_filters # work out our acl variables! In cPanel, the system filter is /etc/cpanel_exim_system_filter and the acl_mX variables are different, so lets figure those out. Headers remove X-Spam-Score:X-Spam-Report:X-Spam-Checker-Version:X-Spam-Status:X-Spam-Level This will set ACL variables appropriately for the following processing in the system filter:Īdd into system filter: if first_delivery then Unfortunately, vfilter will use the very first match, which is the crux of this issue. Other systems may use X-Spam-Flag-Status or the Score to determine whether to save the message in the inbox, a spam folder, or delete it. X-Spam-Report: Spam detection software, running on the system "", hasīut because the exim vfilter rules read the first X-Spam headers, the email ends up in the user's inbox instead of in the spam folder.Įxim for cPanel uses vfilters stored in /etc/vfilters and relies on the X-Spam-Bar header. My SpamAssassin will add these headers to the message: X-Spam-Status: Yes, score=6.8 Identified this incoming email as possible spam. ![]() ![]() X-Ham-Report: Spam detection software, running on the system "", has ![]() Just to provide an example, a message will come in with headers like this: X-Spam-Status: No, score=1.3 I can run formail against a file containing the message to remove the headers, but I don't know how to make exim do that. However, the exim config by that user and by me are very different. Searching the net, the only similar instance I could find was from 2004. I want to strip out all SpamAssassin headers before it goes through spamassassin and then filtered into the inbox/spam folders. I've been noticing an issue where emails coming in with forged spamassassin headers bypassing some of the filtering. I have a server running cPanel/WHM with exim and SpamAssassin. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |