Koozali.org: home of the SME Server

Using SpamAssassin locally

Offline dpearceMN

  • *
  • 8
  • +0/-0
Using SpamAssassin locally
« 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.

Offline dpearceMN

  • *
  • 8
  • +0/-0
Re: Using SpamAssassin locally
« Reply #1 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.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
« Last Edit: February 06, 2008, 11:12:54 PM by william_syd »
Regards,
William

IF I give advise.. It's only if it was me....

Offline dpearceMN

  • *
  • 8
  • +0/-0
Re: Using SpamAssassin locally
« Reply #3 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

Offline dpearceMN

  • *
  • 8
  • +0/-0
Re: Using SpamAssassin locally
« Reply #4 on: February 06, 2008, 11:20:34 PM »
OK, that did it.

Thanks.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Using SpamAssassin locally
« Reply #5 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



Regards,
William

IF I give advise.. It's only if it was me....