• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

spamassassin stopped working.

ProWebS

Regular Pleskian
Hello,

I faced the above error:
Message cannot be delivered, and there is an error "Unable to stat entry '/usr/local/psa/handlers/info/10-spam-0gemCa/executable' or it is not link: No such file or directory in maillog"

So I did follow the instructions here : http://kb.parallels.com/6410

I did try everything from this article.

After that I recieve loads of spam and when I check the log file for spam I get 0
# cat /usr/local/psa/var/log/maillog | grep spam
and I used to receive 20 emails marked as SPAM every day in 1 email account only.

I check the services and they are running but..not working:

[root@plesk9 /]# /etc/init.d/spamassassin status
spamd (pid 20036) is running...
[root@plesk9 /]# /etc/init.d/psa-spamassassin status
is running

what can I do ?
 
yes, several times, no result :(

I did re-run this now and it ended in a milisecond..

[root@plesk9 ~]# # /usr/local/psa/admin/sbin/mchk --with-spam
[root@plesk9 ~]#
 
That didn't help much.

I did try to restart the service:

[root@plesk9 ~]# /etc/init.d/psa-spamassassin stop
Shutting down psa-spamassassin service: [ OK ]
[root@plesk9 ~]# /etc/init.d/psa-spamassassin start
Starting psa-spamassassin service: [ OK ]

the result on the log file was absolutely normal:
/usr/local/psa/var/log/maillog:
Feb 16 10:29:09 plesk9 spamd[7446]: spamd: server killed by SIGTERM, shutting down
Feb 16 10:29:12 plesk9 spamd[24281]: logger: removing stderr method
Feb 16 10:29:13 plesk9 spamd[24282]: spamd: server started on UNIX domain socket /tmp/spamd_full.sock (running version 3.2.5)
Feb 16 10:29:13 plesk9 spamd[24282]: spamd: server pid: 24282
Feb 16 10:29:13 plesk9 spamd[24282]: spamd: server successfully spawned child process, pid 24283
Feb 16 10:29:13 plesk9 spamd[24282]: prefork: child states: I

also I checked the config files from the article:

config files:

/etc/mail/spamassassin/

All the files are here ( I did compare this with another server)
[root@plesk9 spamassassin]# ls -lah
total 44K
drwxr-xr-x 3 root root 4.0K Feb 16 10:31 .
drwxr-xr-x 3 root root 4.0K Sep 14 13:28 ..
-rw-r--r-- 1 root root 1.3K Jun 17 2008 init.pre
-rw-r--r-- 1 root root 101 Feb 15 12:44 local.cf
drwx------ 2 root root 4.0K Sep 15 05:06 sa-update-keys
-rw-r--r-- 1 root root 62 Jun 17 2008 spamassassin-default.rc
-rwxr-xr-x 1 root root 35 Jun 17 2008 spamassassin-helper.sh
-rw-r--r-- 1 root root 55 Jun 17 2008 spamassassin-spamc.rc
-rw-r--r-- 1 root root 2.6K Jun 17 2008 v310.pre
-rw-r--r-- 1 root root 1.2K Jun 17 2008 v312.pre
-rw-r--r-- 1 root root 2.4K Jun 17 2008 v320.pre



This looks normal:
/etc/mail/spamassassin/local.cf

[root@plesk9 spamassassin]# more local.cf
report_safe 0
rewrite_header subject *****SPAM******
score FH_DATE_PAST_20XX 0.0
required_score 7.00



I did check this for a specific user:
/var/qmail/mailnames/%d/%l/.spamassassin

[root@plesk9 .spamassassin]# more user_prefs
required_score 4
rewrite_header subject *****SPAM*****
score FH_DATE_PAST_20XX 0.0

the preferences are correct and the same as they used to be.


Can't find any clue.

If I uninstall and re-install spamassasin would that help ?
If yes, how can I do that ?
 
Just in case that everybody else is interested the solution that worked for me was:

1. remove spamassassin:
yum remove psa-spamassassin.i586 spamassassin.i386
2.install it again
/usr/local/psa/admin/bin/autoinstaller
3.Disable and Enable again Spamassasin from Plesk
Settings -> Mail - Spamfilter Settings

I also did change qmail to postfix but I dont think that was the reason it got fixed.
 
Back
Top