Koozali.org: home of the SME Server

[RESOLVED] Problem Getting X-Spam to work with multi-drop/fetchmail

Offline PeteAUK

  • **
  • 23
  • +0/-0
I've upgraded SME to version 8.1 from 7.6 and got that running really well, no problems or hiccups and everything is running as if nothing has changed.

I'm currently trying to get Spam Assassin to add the X-Spam headers onto e-mails - and before anybody jumps and points me to the Wiki, I've followed those instructions already.

To all intent and purposes, everything is configured correctly.  I've added in some custom templates for the local.cf file for SA.  I've followed the instructions for the spam level in headers from the wiki and I've configured the tag level to be both zero and -999.  I've disabled DNSBL because the server is sat behind a firewall.  E-mail is retrieved via multi-drop and has a sort method of 'Deliver-To:' (to remove the envelope error).  The server does have dungog installed and global email delivery set to maildrop.

Nothing works, I don't get any X-Spam headers at all.  I do have a ClamAV header.

My local.cf outputs as follows:
Code: [Select]
dns_available yes
internal_networks *.*.*.*
lock_method flock

ok_locales all
bayes_path /var/spool/spamd/.spamassassin/bayes
bayes_file_mode 750
report_safe 0
required_score -999
rewrite_header Subject [SPAM]: _SCORE_
skip_rbl_checks 0
clear_trusted_networks
trusted_networks *.*.*.*

use_bayes 0
use_razor2 1
#use_dcc 1
use_pyzor 1
bayes_auto_learn 1

#add_header all DCC _DCCB_: _DCCR_
add_header all Pyzor _PYZOR_
add_header all RBL _RBL_
add_header all Report _REPORT_


whitelist_from *informit.com
whitelist_from *gfi.com

Any suggestions?

Pete
« Last Edit: June 13, 2014, 03:14:00 PM by PeteAUK »

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Problem Getting X-Spam to work
« Reply #1 on: June 13, 2014, 02:10:44 PM »
Can you tell us any more about  your multi-drop configuration?

(Are you using SME's built-in fetchmail service? a contrib? If you're using a contrib or other setup, how was it installed?)

By default, the X-Spam headers are added by qpsmtpd plugin 'spamassassin'; your multi-drop may be bypassing qpsmtpd.

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Problem Getting X-Spam to work
« Reply #2 on: June 13, 2014, 02:18:35 PM »
You might solve your problem with a custom template fragment to force spamassasin checks on local connections (since fetchmail would appear as a local source to qpsmtpd).

These commands will force your local qpsmtpd config for spamassassin to use the same settings as the WAN config:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local
cp /etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/70spamassassin .
signal-event email-update

These commands will un-do the changes above:
Code: [Select]
'rm' -f /etc/e-smith/templates-custom/var/service/qpsmtpd/config/peers/local/70spamassassin
signal-event email-update

Offline PeteAUK

  • **
  • 23
  • +0/-0
Re: Problem Getting X-Spam to work
« Reply #3 on: June 13, 2014, 03:04:29 PM »
That's worked!  Thank you :D

Offline mmccarn

  • *
  • 2,653
  • +10/-0
Re: Problem Getting X-Spam to work
« Reply #4 on: June 13, 2014, 03:07:43 PM »
You're welcome.

Can you change the subject of this topic to "[Resolved] Problem getting X-Spam to work with multi-drop/fetchmail"?

Offline PeteAUK

  • **
  • 23
  • +0/-0
Re: Problem Getting X-Spam to work
« Reply #5 on: June 13, 2014, 03:14:09 PM »
You're welcome.

Can you change the subject of this topic to "[Resolved] Problem getting X-Spam to work with multi-drop/fetchmail"?

Done