I was wondering if anyone knew of a good source to refer to for writing body_check rules for Postfix. I am having an issue with a few rules that I have written to block spam, but I am blocking legitimate mail as well - the legitamate mail does not seem to meet the rule's criteria.
Here is an example of my rule:
/NMXC/ REJECT Spam Rule Number 88
I want to block the word or stock id "NMXC" but it is blocking emails that do not contain "NMXC".
I am sure that it is the rule that is being triggered. I list my rule responses as "Spam Rule" and then a line number so that I can keep up with which rules are causing the rejection.
I have disabled most of my Spam Rules for body_checks because I was getting so many false positives.
Jan 15 04:10:10 Macintosh postfix/cleanup[19746]: B5CB910512D3: reject: body HZeppHyAgMCRMAW3A7j/AFYaKEC9RlCAMW6gAh2YgNw0gCsoQCByACDAwQAQAQqwAASwSlcSSjMB from 125.red-213-96-130.staticip.rima-tde.net[213.96.130.125]; from=<ant@suncap.sun.com> to=<classifieds@seminoleherald.com> proto=SMTP helo=<125.Red-213-96-130.staticIP.rima-tde.net>: Spam Rule Number 85
I don't know if this is true junk or not. The log is so old. I had several people who had legitimate mail rejected and when I asked their sender to let me know if it contain the phrase or word that was rejected by Spam Rule Number 85 the response was always no.
Perhaps I need to place a space between my slashes...would that help? In other words make the filter look like this:
/ word
toreject / Spam Rule Number 85.
It is probably an attachment (in base64) which is triggering the rule. The filter acts purely on the text content and that includes encoded attachments and any other text content (html etc). I note that the postfix docs themselves recommend against this type of general anti-spam filtering both due to their limitations and the potential impact on processing...
http://www.postfix.org/BUILTINFILTERREADME.html
Probably better to spend the time keeping spamassasin rules uptodate (there is a rule for stock market spam) and just accept you will never be 100% effective. The stock market rule is at this site...
http://www.rulesemporium.com/ If you use any of their rules, read the docs. Also, search in this forum for "rulesemporium" and you will see other info on subject.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
Help with writing body_checks rules
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.