Following is an email sent to me by Darrell May and posted here with his permission. It details the steps to activating Spamassassin on SME 6b3. If I find time, I'll formalize it into a howto:
Hello Greg/James,
I've just taken a look at your e-smith-spamassassin-0.0.2-1jp2.55.noarch.rpm. As you may be aware, SME6.0B3 includes components for Spamassassin that are installed however simply not enabled/configured. One intriguing rpm is sortspam-1.0.0-01.i386.rpm
I have taken a look at how easy it is to enable system wide SA under
SME6.0B3. Here is all that is required:
To enable/start SA: (e-smith-spamassassin-0.0.2-1jp2.55.noarch.rpm does this already)
# /sbin/e-smith/config set spamassassin service status enabled
# ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S85spamassassin # /etc/rc.d/init.d/spamassassin start
To enable Qmail to use SA (from SME6.0B3 sortspam-1.0.0-01.i386.rpm):
/sbin/e-smith/config setprop smtpfront-qmail InternalInterfacesFilter
"/var/qmail/bin/qmail-spamc"
/sbin/e-smith/config setprop smtpfront-qmail ExternalInterfacesFilter
"/var/qmail/bin/qmail-spamc"
/sbin/e-smith/signal-event email-update
This now sets the SA daemon /usr/bin/spamd scanning all
incoming/outgoing mail at the SMTP level. This is done via the
templated /etc/e-smith/templates/etc/tcprules/tcp.smtp/00qmailqueue
found in e-smith-mailfront-1.2.0-01. Instead of invoking
/var/qmail/bin/qmail-queue it now invokes /var/qmail/bin/qmail-spamc as
follows:
SMTP > Mailfront > qmail-spamc > qmail-queue
In addition the above works well with RAV/BitDefender AntiVirus scanning
and would be easy to back port to >=SME 5.5 simply by installing the
latest e-smith-mailfront-1.2.0-01 rpm.
In my personal case, I no longer use IMAP. I'm on a slow satellite
connection and IMAP is just too painful. So the whole
IMAP/procmail/user-manager is of no value to me anymore. I'm now
POP3/Outlook.
Moving SA to a system wide SMTP scanner has many benefits:
1) spam scanning may be performed both inbound and outbound
2) the HUGE overhead of per user procmail/sa is reduced to one running
system daemon
3) non-IMAP/POP3 users can benefit from SA tagging.
So, are you interested in updating your e-smith-spamassassin rpm to
incorporate the above suggestions? Do you require any assistance?
Comments are welcomed.
~~~
Darrell May
http://myezserver.com - a division of Tallgrass Ranch