Koozali.org: home of the SME Server

Spamassassin header lines?

Offline allsorts

  • *
  • 38
  • +0/-0
Spamassassin header lines?
« on: January 30, 2008, 02:39:31 PM »
Dumb question: Does Spamassassin put anything into the header of emails it processes?

Spamassassin should be running on my server but when my ISPs spam filter failed yesterday spam started landing in my inbox without any hint that it had been looked at on my server. I see the "X-Virus-Checked: Checked by ClamAV on..." but nothing from Spamassassin.  B-(
Cheers
Dave.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Spamassassin header lines?
« Reply #1 on: January 30, 2008, 11:23:02 PM »
Dumb question: Does Spamassassin put anything into the header of emails it processes?

Spamassassin should be running on my server but when my ISPs spam filter failed yesterday spam started landing in my inbox without any hint that it had been looked at on my server. I see the "X-Virus-Checked: Checked by ClamAV on..." but nothing from Spamassassin.  B-(


It does here. Do you have it Enabled?

X-Virus-Checked: Checked by ClamAV on magicwilly.info
X-Spam-Status: No, hits=1.0 required=4.0 tests=SPF_FAIL
X-Spam-Check-By: magicwilly.info
Regards,
William

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

Offline allsorts

  • *
  • 38
  • +0/-0
Re: Spamassassin header lines?
« Reply #2 on: January 31, 2008, 12:59:38 AM »
It does here. Do you have it Enabled?

I'm running SME 7.3, upgraded from 7.2 if that is relevant.

The web interface said it was but:

[root@srv1 etc]# config getprop spamassassin status
disabled
[root@srv1 etc]# config getprop spamd status
enabled

I then toggled the setting in the web page to "disabled" saved, then back to "enabled" saved and now have:

[root@srv1 etc]# config getprop spamassassin status
enabled
[root@srv1 etc]# config getprop spamd status
enabled

I then used the web interface "reconfigure" option in the reboot/shutdown and let that complete and reboot etc. I'm still not seeing any tag lines in email headers. Logged in at the command line a ps -xa shows spamd running and a couple of spamd children.

I assume that qpsmtpd is what calls spamassassin and ClamAV the latter is working (at least a tag line is there) but not anything from SA. Where would qpsmtpd be looking to know to call SA?
Cheers
Dave.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Spamassassin header lines?
« Reply #3 on: January 31, 2008, 01:04:21 AM »
The default was only external email got scanned for spam.

It looks like you have reached the point where it is not working "out of the box".

Time for a bug report.
Regards,
William

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

Offline allsorts

  • *
  • 38
  • +0/-0
Re: Spamassassin header lines?
« Reply #4 on: February 01, 2008, 11:41:31 AM »
More digging and better reading of the logs it appears that there has been a change to the configuration in the upgrade from 7.2 to 7.3. Spamassassin isn't called for local connections anymore, this is a problem when using the maildrop method of mail collection as qpsmtpd is called as a local connection from fetchmail...

A bug report has been filed:  http://bugs.contribs.org/show_bug.cgi?id=3849
Cheers
Dave.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Spamassassin header lines?
« Reply #5 on: February 01, 2008, 03:25:44 PM »
This also occurred with the fetchmail contrib.

http://bugs.contribs.org/show_bug.cgi?id=2226

And the base system.

http://bugs.contribs.org/show_bug.cgi?id=2223
« Last Edit: February 01, 2008, 03:32:11 PM by william_syd »
Regards,
William

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

Offline allsorts

  • *
  • 38
  • +0/-0
Re: Spamassassin header lines?
« Reply #6 on: February 01, 2008, 04:38:27 PM »
Thanks for those, I'll add them to the bug I filed for information.

The resolution of  Bug 2223 should have fixed it so why has it come back with the upgrade to 7.3?

My qpsmtpd logs show connections coming from 127.0.0.1 not 127.0.0.200 as the fix should be...

Digs ha ha the 127.0.0.200 is hardcoded into the template.... I have a custom template for  /etc/fetchmail that is still hardcoded "localhost".

Right off to check & test then close the bug!
« Last Edit: February 01, 2008, 04:40:28 PM by allsorts »
Cheers
Dave.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Spamassassin header lines?
« Reply #7 on: February 01, 2008, 08:41:09 PM »
More digging and better reading of the logs it appears that there has been a change to the configuration in the upgrade from 7.2 to 7.3. Spamassassin isn't called for local connections anymore, this is a problem when using the maildrop method of mail collection as qpsmtpd is called as a local connection from fetchmail...

Not so if you have kept your system updated. Do you have a custom template?