Created attachment 232146 [details] git-diff for mail/spampd The out-of-box installation of mail/spampd fails with: Feb 27 20:33:55 xxxxxx spampd[3876]: CONFIG ERROR! Option --auto-whitelist is deprecated with SpamAssassin v3.0+. Use SA configuration file instead. I've added a patch to fix this, as well as changing the port-values to use values as suggested by the project at https://github.com/mpaperno/spampd/blob/master/spampd.pod#postfix-specific-notes
Created attachment 232234 [details] rc-diff to work out-of-box Updated spampd flags to use directory writable by spamd/spamd, and remove obsoleted "--tagall"
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=adbaba0606ebeb620dc7425d43b8fe83a6eff08f commit adbaba0606ebeb620dc7425d43b8fe83a6eff08f Author: Jonathan Chen <jonc@chen.org.nz> AuthorDate: 2022-04-09 17:58:22 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2022-04-09 17:58:22 +0000 mail/spampd: Unbreak with spamassassin 3.4+ PR: 262235 mail/spampd/Makefile | 2 +- mail/spampd/files/spampd.in | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=318255d4921caaf82c3c48d90bd9135d0ff41453 commit 318255d4921caaf82c3c48d90bd9135d0ff41453 Author: Jonathan Chen <jonc@chen.org.nz> AuthorDate: 2022-04-09 17:58:22 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2022-04-09 18:01:23 +0000 mail/spampd: Unbreak with spamassassin 3.4+ PR: 262235 (cherry picked from commit adbaba0606ebeb620dc7425d43b8fe83a6eff08f) mail/spampd/Makefile | 2 +- mail/spampd/files/spampd.in | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
@Jonathan Thanks for providing the patch. One thing I noticed while testing: If AWL is enabled in spamassassin (in v310.pre), `/var/spool/spamd/auto-whitelist` is created as owned by root:spamd (0600) when starting spampd, which means that spampd probably can't write to it. This can be fixed by manually running chmod on the file (this stays stable on restart).