Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: dpearceMN on February 06, 2008, 03:20:40 PM

Title: Using SpamAssassin locally
Post by: dpearceMN on February 06, 2008, 03:20:40 PM
I'm trying to help a friend diagnose a SpamAssassin issue but spamd is setup to ignore local network messages. How to I change this behavior?

Thanks.
Title: Re: Using SpamAssassin locally
Post by: dpearceMN on February 06, 2008, 10:49:47 PM
Maybe I'm not clear enough.   :???:

SpamAssassin as implemented in SME doesn't rate email messages coming from local network (i.e. within my internal netmask). Where in the SpamAssassin config files can I change it so all email the SME server receives is passed through SpamAssasssin?

Thanks.
Title: Re: Using SpamAssassin locally
Post by: william_syd on February 06, 2008, 11:09:26 PM
Maybe I'm not clear enough.   :???:

http://bugs.contribs.org/show_bug.cgi?id=2223#c8

http://forums.contribs.org/index.php?topic=36168.msg159943#msg159943
Title: Re: Using SpamAssassin locally
Post by: dpearceMN on February 06, 2008, 11:17:32 PM
Well, if I read the bug report correctly, this bug is for fetchmail, which I am not using.

I'm trying to send an email via BLAT to my test SME server. When I do this, the SME server virus scans it (according to the email's headers), but the X-Spam header and it's information does not get inserted. My understanding is that locally received emails are not run through SpamAssassin.

Since trusted_networks in SA's local.cf file lists only the SME server's IP address (and not the rest of the network), perhaps SA isn't even being called?

Thanks for the help.

Dave
Title: Re: Using SpamAssassin locally
Post by: dpearceMN on February 06, 2008, 11:20:34 PM
OK, that did it.

Thanks.
Title: Re: Using SpamAssassin locally
Post by: william_syd on February 06, 2008, 11:24:59 PM
Well, if I read the bug report correctly, this bug is for fetchmail, which I am not using.
Dave

The particular comment I directed you to is a workaround to have all mail spam checked, including local mail.

mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local

ln -s /etc/e-smith/templates/var/service/qpsmtpd/config/plugins/70spamassassin \
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/70spamassassin

expand-template /var/service/qpsmtpd/config/peers/local

signal-event email-update