Koozali.org: home of the SME Server

Spamassassin/Procmail problem

Offline dunni

  • *
  • 10
  • +0/-0
Spamassassin/Procmail problem
« on: June 03, 2005, 11:09:03 AM »
I'm using SME 6.0 and my Spamassasin was recently updated automatically by the USA contrib. SA then stopped working but I fixed it after installing the updates manually and figuring out what was stopping them installing properlly. It all worked fine for about a day, then it stopped working again.

Spamassassin seems to be running but it just doesn't get to see any of the emails. There are also no messages about incoming emails being added to the maillog file anymore.

I think I've figured out the problem but I don't know how to fix it. As far as I can tell there should be a couple of lines in the .procmailrc file something like this:

Code: [Select]

:0fw
| /usr/bin/spamc


These should pass the messages on to spamassasin. But  there not in my .procmailrc file anymore at all. I'm not sure why. I can't just add them because it would all be regenerated from the templates and I'm not sure how to add to the templates. I know where the templates are and I attempted to add it but it didn't work.

Not sure if this is relevant but I updated ClamAV around the same time.

Any advice?[/code]

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
Spamassassin/Procmail problem
« Reply #1 on: June 03, 2005, 11:13:30 PM »
I'd start by checking a couple of configuration things first:

#/sbin/e-smith/config show smtpfront-qmail

This should give you output similar to this:


smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    MaxMessageSize=11000000
    Proxy=enabled
    RBLList=bl.spamcop.net:list.dsbl.org:sbl-xbl.spamhaus.org
    access=public
    authentication=disabled
    status=enabled


Then check:

#/sbin/e-smith/config show spamassassin

spamassassin=service
    status=enabled

Come back with the results
--
Nick......

Offline raem

  • *
  • 3,972
  • +4/-0
Spamassassin/Procmail problem
« Reply #2 on: June 04, 2005, 09:05:26 AM »
and also:
/sbin/e-smith/config show amavis-ng

amavis-ng=service
    MailFrom=antivirus@******.***.***
    Notifiers=Admin
    qmail-queue=/var/qmail/bin/qmail-spamc
    status=enabled
...

Offline dunni

  • *
  • 10
  • +0/-0
Spamassassin/Procmail problem
« Reply #3 on: June 06, 2005, 10:22:37 AM »
Thanks for replying. Here's the results I get:

#/sbin/e-smith/config show smtpfront-qmail
ExernalInterfacesFilter=/usr/bin/qmail-queue.amavis
ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
Instances=40
InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
Proxy=enabled
access=public
status=enabled

#/sbin/e-smith/config show spamassassin
spamassassin=service
status=enabled

#/sbin/e-smith/config show amavis-ng
amavis-ng=service
Notifiers=Admin
status=enabled

Offline raem

  • *
  • 3,972
  • +4/-0
Spamassassin/Procmail problem
« Reply #4 on: June 06, 2005, 11:19:48 AM »
dunni

You have an extra line in the smtpfront-qmail entry for ExernalInterfacesFilter (spelled incorrectly) which can be removed:

ExernalInterfacesFilter=/usr/bin/qmail-queue.amavis

and you do not have a line in the amavis-ng entry that is needed for spam filtering to work correctly

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


You need to have:

smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Patterns=enabled
    PatternsFile=/var/qmail/control/patterns.default
    Proxy=enabled
    RBLList=dnsbl.sorbs.net:whois.rfc-ignorant.org:relays.ordb.org:sbl-xbl.spamhaus.org
    access=public
    status=enabled

amavis-ng=service
    MailFrom=antivirus@********.***
    Notifiers=Admin
    qmail-queue=/var/qmail/bin/qmail-spamc
    status=enabled
...

Offline dunni

  • *
  • 10
  • +0/-0
Spamassassin/Procmail problem
« Reply #5 on: June 06, 2005, 12:17:56 PM »
I'm not sure where to edit these lines.

However I assume the amavis one is in:
/etc/amavis-ng/amavis.conf
If so then it currently has the following line in the Qmail section:
qmail-queue = /var/qmail/bin/qmail-queue
Should i just alter this to the one you mentioned?

I have no idea where to remove the smtpfront-qmail line from though.

Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
Spamassassin/Procmail problem
« Reply #6 on: June 07, 2005, 09:30:43 AM »
dunni

> I'm not sure where to edit these lines.

The Spam Filter install should have set this correctly for you, have you actually enabled spam filtering in the server manager panel ?

Otherwise  do
/sbin/e-smith/db configuration setprop amavis-ng qmail-queue /var/qmail/bin/qmail-spamc
/sbin/e-smith/signal-event email-update

and to fix the incorrect entry in the configuration database for smtpfront-qmail, which I can only assume must have been incorrectly typed or altered when you have been "playing" with your system do,

cp /home/e-smith/configuration /home/e-smith/configuration.save

pico /home/e-smith/configuration
scroll down to section for smtpfront-qmail that has the entry
|ExernalInterfacesFilter|/usr/bin/qmail-queue.amavis
and remove that part only
Then save Ctrl o
and exit Ctrl x
...

Offline dunni

  • *
  • 10
  • +0/-0
Spamassassin/Procmail problem
« Reply #7 on: June 07, 2005, 10:59:13 AM »
Excellent, thank you very much. It all seems to work now.

Offline raem

  • *
  • 3,972
  • +4/-0
Spamassassin/Procmail problem
« Reply #8 on: June 07, 2005, 12:19:01 PM »
dunni

> It all seems to work now

Good, worth the effort !
...