I recently enabled rspam on my server, that is managed using Virtualmin. While I can not seem to disable spamassassin at all (because of the virus scanning dependency), I added spam checking including the rspamc client program into the global /etc/procmailrc.
However, now virtualmin seems to confuse rspamc with spamc. When triggering "Re-Check Configuration", virtualmin complains:
"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."
This is my /etc/procmailrc:
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl --exitcode 73 $LOGNAME
* ?/usr/bin/test "$EXITCODE" = "73"
* ?/usr/bin/test "$VIRTUALMIN" != ""
| /usr/bin/rspamc --mime
* ^X-Spam: Yes
(besides this, it would be great if virtualmin would support both Spamassassin and rspam and let the admin choose :)