How to block "on behalf of" spam messages

You can try those parammeters in yours and see if something happens, if doesnt work you can always go back to the previous config. You can use commas or spaces, postfix recognizes both, i’d stay with spaces since yours is like that.

1 Like

In your header after rules were set up if you don’t have lines like:
X-Spam-Hostname-Processed-On:
X-Spam-Ip-Sent-From:
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
X-Spam-Report:
X-Spam-Status: No, score=-2.4 required=8.0 tests=

you don’t have SpamAssassin configured to check incoming mail.

here is output from ps aux

root@domain:~# ps aux | grep spamd
root         767  0.0  3.5 187668 142836 ?       Ss   Apr14   0:07 /usr/bin/perl -T -w -I /etc/perl -I /usr/lib/x86_64-linux-gnu/perl5/5.36 -I /usr/share/perl5 -I /usr/lib/x86_64-linux-gnu/perl-base -I /usr/lib/x86_64-linux-gnu/perl/5.36 -I /usr/share/perl/5.36 /usr/sbin/spamd --pidfile=/run/spamd.pid --create-prefs --max-children 5 --helper-home-dir
root       33982  0.0  3.3 187668 131852 ?       S    06:47   0:00 spamd child
root       33983  0.0  3.3 187668 132140 ?       S    06:47   0:00 spamd child
root       89081  0.0  0.0   6332  2056 pts/0    S+   19:15   0:00 grep spamd

when i go to SpamAssassin version 4.0.0 page and click Apply i got this

Failed to restart spamassassin.service: Unit spamassassin.service not found.

settings in Spam and Virus Scanning

how to start/restart SpamAssasin?

Im using spamc here, uses less resource, see if it works. Also go to the webmin tab, look for postfix and reload its configuration since you changed the main.cf

1 Like

Since you have a Pro license maybe submit a ticket to get help to get SpamAssassin working. Maybe a Debian 12 has a naming thing with spamed. or maybe you now have a syntax problem in your config file. Did it install with Virtualmin script? Or did you install outside Virtualmin.

Clue in here:

I’ve been watching 12 since I’ll have to upgrade some day. So, I checked my 11 install. Added to my home box that is 12. Seems like a name change. Switches to spamd.service?
Version 11

root@main:~# locate sin.servi
/etc/systemd/system/multi-user.target.wants/spamassassin.service
/lib/systemd/system/spamassassin.service
/var/lib/systemd/deb-systemd-helper-enabled/spamassassin.service.dsh-also

Version 12

root@never:/etc/init.d# locate spamd.se
/etc/systemd/system/multi-user.target.wants/spamd.service
/run/systemd/propagate/spamd.service
/run/systemd/units/invocation:spamd.service
/usr/lib/systemd/system/spamd.service
/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/spamd.service
/var/lib/systemd/deb-systemd-helper-enabled/spamd.service.dsh-also