Spamassassin on fresh install rocky linux

SYSTEM INFORMATION
OS type and version rocky linux 8
Webmin version 1.994
Virtualmin version 7.1
Related packages virtualmin

hello,
i have reinstalled my new server with rocky linux , as @Joe suggested
because there are some problems with almalinux 8

https://forum.virtualmin.com/t/virtualmin-install-on-almalinux-8-6-has-been-a-fiasco/115634/25

i would setup this new server as a mail server,
i check some related options and find on
webmin - servers - spamassassins mail filter
this error

Warning!  SpamAssassin does not appear to be set up in the system's Procmail configuration file /etc/procmailrc, so any configuration done using this module will have no effect unless users have it set up individually. 

i enabled this
[Allow mailbox users to create mail filters]

but never changed…

how can i setup spamassassin / procmail to works fine?

thank you

Hello,

This can be fixed by going to Webmin / Servers ⇾ SpamAssassin Mail Filter page, and clicking Setup Procmail For SpamAssassin iconed button, and setting this up from opened page.

@Joe don’t we want this to be configured automatically?

big thank you

:slight_smile:

You should not do this in a Virtualmin system, though!

No! Virtualmin manages procmail rules. That button in the SpamAssassin module is a generic catchall rule, incompatible with Virtualmin rules (at least, as far as I recall…). I think the module should even prevent you from doing that, because it breaks Virtualmin rules, right? I’m not sure what’s wrong in this case, but that’s not the solution.

@ale.ab can you post the contents of /etc/procmailrc from your system?

yes, here it is

DROPPRIVS=yes
:0fw
| /bin/spamassassin
:0
* ^X-Spam-Status: Yes
$HOME/spam
LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
DROPPRIVS=yes

of course i apply @Ilia suggestion

but now i’m checking and found this

after edit as @ilia suggested
i run on ssh
virtualmin check-config


Logrotate is installed
SpamAssassin and Procmail are installed and configured for use
ERROR: SpamAssassin is configured to be run from the global Procmail configuration /etc/procmailrc, which is not needed as Virtualmin will set it up on a per-domain basis

i would use spamassins standalone (so i can configure it per domain)

thank you

The regular Virtualmin default config should be like :

LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl --exitcode 73 $LOGNAME
EXITCODE=$?
:0
* ?/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT

thank you

now
virtualmin check-config

works fine :slight_smile:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.