• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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