Koozali.org: home of the SME Server

Spamassassin How-to for E-smith 6.0

Arjan Vroege

Spamassassin How-to for E-smith 6.0
« on: October 20, 2003, 03:02:58 AM »
Is there a good how-to for Spamassassin for E-smith 6?
Is there a good version available for e-smith 6?

Thanks

Greetz,

Arjan

John Lewis

Re: Spamassassin How-to for E-smith 6.0
« Reply #1 on: October 20, 2003, 02:49:09 PM »
I'm also very interested in this.  This is the only thing holding me back from moving forward on testing 6.0...

Peter@northwestlinux.co.

Re: Spamassassin How-to for E-smith 6.0
« Reply #2 on: October 20, 2003, 05:20:50 PM »
Hi
Go to www.dungog.net He has an e-mail filter which can also use Spamassin. A small charge but Stephens software is good & will run directly with SME 5.6/6

Peter

Dan Brown

Re: Spamassassin How-to for E-smith 6.0
« Reply #3 on: October 20, 2003, 05:30:58 PM »
...or just use the spamassassin contrib from contribs.org for 5.6; seems to work fine on my installation of 6.0beta.

Arjan Vroege

Re: Spamassassin How-to for E-smith 6.0
« Reply #4 on: October 21, 2003, 01:48:43 PM »
it seems that it's working with the contrib of contribs.org
The only problem is that he have not installed python.2.2., because he missed lib.... . But everything seems to work fine.

Any suggestings?

Greg Zartman

Re: Spamassassin How-to for E-smith 6.0
« Reply #5 on: October 21, 2003, 07:38:35 PM »
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

Lloyd Keen

Re: Spamassassin How-to for E-smith 6.0
« Reply #6 on: October 28, 2003, 02:45:05 PM »
Can smtpfront-qmail have multiple InternalInterfacesFilter's. I notice that Amavis uses this same setup. ie would Amavis and Spamassassin be able to coexist using this setup? I currently have Amavis setup but if I ran this db command would it hose my A/V setup?

Greg Zartman

Re: Spamassassin How-to for E-smith 6.0
« Reply #7 on: October 28, 2003, 06:27:04 PM »
> Can smtpfront-qmail have multiple InternalInterfacesFilter's.
> I notice that Amavis uses this same setup. ie would Amavis
> and Spamassassin be able to coexist using this setup? I
> currently have Amavis setup but if I ran this db command
> would it hose my A/V setup?

Use ExternalInterfacesFilter for spamassassin in your case.

Regards

Greg

Lloyd Keen

Re: Spamassassin How-to for E-smith 6.0
« Reply #8 on: October 28, 2003, 09:01:24 PM »
I used to have /usr/bin/qmail-queue.amavis set as my ExternalInterfacesFilter but after running the command /sbin/e-smith/config setprop smtpfront-qmail ExternalInterfacesFilter it has changed it from /usr/bin/qmail-queue.amavis to /var/qmail/bin/qmail-spamc So it appears that you can either amavis OR qmail-spamc but not both. Is this correct or am I doing something wrong.

Greg Zartman

Re: Spamassassin How-to for E-smith 6.0
« Reply #9 on: October 28, 2003, 10:01:31 PM »
Yes, I see your point.  I just noticed that there is a difference between my SME serverlink box and my SME 6b3 development machine with respect to this subject.

I'm not sure where the GPL line here is, so I better defer this to Mitel for comment.  Post your question on the devinfo mailing list.  Simply ask how the External and Internal smtpfront-qmail filters are used and how to propagate their settings to mailfront.

Good luck.

Greg

Mark Lenan

Re: Spamassassin How-to for E-smith 6.0
« Reply #10 on: November 04, 2003, 01:44:19 PM »
Lloyd Keen wrote :
So it appears that you can either amavis OR qmail-spamc but not both. Is this correct or am I doing something wrong.

Greg Zartman wrote:
Post your question on the devinfo mailing list. Simply ask how the External and Internal smtpfront-qmail filters are used and how to propagate their settings to mailfront.

Did any one go and ask this question. If not I will, but I can't guarantee I will understand  the answer. I have gone and read the mailfront docs but this is a level above my current Linux understanding :-(

I am very interested in getting amavis and spam assassin working together as system level scanners on sme6b3.

Regards, Mark Leman

Thor Anthrax

Re: Spamassassin How-to for E-smith 6.0
« Reply #11 on: November 06, 2003, 02:14:13 AM »
What is the best way if I choose not to use spamassassin anymore (after I user Greg's instruction to enable it)

Michael Herger

Re: Spamassassin How-to for E-smith 6.0
« Reply #12 on: November 12, 2003, 03:51:20 PM »
I've successfully installed SA on my test machine. It's correctly tagging my mails. But I still have two questions:

- I've read in the spamd documentation that I can use personal user_prefs using the --user-config parameter. I've put one in /home/e-smith/files/user/admin/.spamassassin/ but it's ignored. Where do I have to put them?

- What's the easiest/standard way to filter junk automatically into the junk-folder? As I've understood the current configuration only tags mails but does not move them.

Thanks in advance for any hint! Regards,

Michael

Ray Mitchell

Re: Spamassassin How-to for E-smith 6.0
« Reply #13 on: November 25, 2003, 07:30:39 AM »
For completeness here, this thread appears to have the answer on how to get both Spamassassin & Clamavis working together on v6.0b3

http://www.e-smith.org/bboard//read.php?f=1&i=34384&t=34382

You need to edit your "amavis.conf" and change line 56 ( or there abouts) to read

qmail-queue = /var/qmail/bin/qmail-spamc

This will allow the message to be virus scanned then handed to SA.

Regs
Ray