• 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

Adding.cf files for Spam Assassin

Did you get this figured out?

I am trying very simple rules to no affect. I restart spamassassin and nothing. I go to a debian box without plesk and my same exact rule works fine.

plesk1:/etc/spamassassin# more custom_rule.cf
body DEMO /test/i
score DEMO 9

plesk1:/etc/spamassassin# /etc/init.d/psa-spamassassin restart
Shutting down psa-spamassassin service: done
Starting psa-spamassassin service: done


Any emails coming in with test in the body should get tagged. I've tried all sorts of different ways and it won't tag them and in the email headers, it doesn't say the rule is being used.

Yet, I take this exact rule, copy and paste it into a debian machine NOT running plesk and it works great. (even without restarting spamassassin)

Any ideas?
 
plesk1:/etc/spamassassin# more custom_rule.cf
body DEMO /test/i
score DEMO 9

plesk1:/etc/spamassassin# /etc/init.d/psa stopall
Stopping domain name service: named.
Stopping MySQL database server: mysqld.
/etc/init.d/psa start
qmail-remote: no process killed
qmail-remote: no process killed
Stopping Courier-IMAP server:
Stopping imap done
Stopping imap-ssl done
Stopping pop3 done
Stopping pop3-ssl done

Stopping PostgreSQL database server: postmaster.
Shutting down psa-spamassassin service: done
Stopping web server: Apache2.
plesk1:/etc/spamassassin# /etc/init.d/psa start
Starting internet superserver: inetd.
Starting domain name service: named.
Starting MySQL database server: mysqld.
Checking for crashed MySQL tables in the background.
Starting qmail: done
Starting Courier-IMAP server:
Starting imapd done
Starting imap-ssl done
Starting pop3 done
Starting pop3-ssl done

Starting PostgreSQL database server: postmaster.
Starting psa-spamassassin service: done
Processing config directory: /opt/psa/admin/conf/httpsd.*.include
/opt/psa/admin/bin/httpsdctl start: httpd started
Starting Plesk: done



No, score=6.6 required=7.0 tests=AWL,DEMO,RCVD_BY_IP autolearn=no version=3.0.3

My email had:
test
fsdatest
ldsjfltest
testdsafsdfd

in the body

I just don't get it...
 
Back
Top