• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Spamassassin Body & Header Rules

BDMM

Basic Pleskian
Hi,
I am running spamassassin with amavis and clamav.

Can anyone point me in the right direction to add custom body rules, server wide, for spamassasin.
The rulesets need to not be overwritten after updates and using the plesk control panel.

I need to block those annoying Domain SEO spam emails and other text strings

body SEO_SPAM_RULE /Domain SEO/i
score SEO_SPAM_RULE 10
describe SEO_SPAM_RULE Seo Spam

Thanks
 
Hi BDMM,

pls. locate your "local.cf" file(s) on your server,

( mostly located at "/etc/mail/spamassassin/local.cf" or/and "/usr/share/spamassassin/local.cf" /or/and "/var/lib/spamassassin/X.XXXXXX/updates_spamassassin_org/local.cf" - depending to your own/unique used installation paths! )​

with a "locate" ( needs the "mlocate" - package to be installed on your server and requires then an updated "mlocate" - database, which should be updated on a regulary basis with the command "updatedb" over the command line, to get decent / actual search results! ) - command for example:
Code:
locate local.cf
... and insert your ( custom / additional ) rule sets there.


 
Back
Top