Koozali.org: home of the SME Server

Fetchmail & Spamassassin

Offline smitti

  • **
  • 27
  • +0/-0
    • http://smitti.mine.nu
Fetchmail & Spamassassin
« on: October 26, 2005, 03:17:33 PM »
hello,

I am using fetchmail to catch 1 pop account and works great.This account is full with spam......
All this mail is send to one local user.

I also have spamassassin running an works great for the local accounts, but the mail from fetchmail doesn't get scanned.

Does anyone have an idea what the sollution is for this problem?

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Fetchmail & Spamassassin
« Reply #1 on: October 27, 2005, 04:31:40 PM »
Does not get scanned at all?
Are you looking at the headers? Does it get tagged SPAM?
What version of SME are you using?

Offline smitti

  • **
  • 27
  • +0/-0
    • http://smitti.mine.nu
Fetchmail & Spamassassin
« Reply #2 on: October 27, 2005, 04:48:12 PM »
I am using SME 6.5rc1

And no the mails are not scanned, the antivirus scan does scan it all.
And if i get 20 mails the antivirus says "scanned : 20" but the spamfilter says "scanned : 3"

those 3 are mails sent directly to me and the missing 17 are from fetchmail. (16 of them spam)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Fetchmail & Spamassassin
« Reply #3 on: October 27, 2005, 05:42:16 PM »
Sorry but in that case, what version of Fetchmail are you using?
The latest version is 1.3.4-06
I also have a 6.5 running which we can compare.

Offline smitti

  • **
  • 27
  • +0/-0
    • http://smitti.mine.nu
Fetchmail & Spamassassin
« Reply #4 on: October 27, 2005, 06:18:59 PM »
I do use Fetchmail version 1.3.4-06 and the spam assassin contrib from Swerd Kundsen.

Could it be the way they were installed? As I remember i first installed spamassasin and then fetchmail.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Fetchmail & Spamassassin
« Reply #5 on: October 28, 2005, 05:57:09 AM »
Where's Vincent?!
 :hammer:
I installed fetchmail first.
I'm thinking that in your case fetchmail is bypassing the Queue for Spamassassin and falling straight into the Maildir.

Offline svangool

  • ****
  • 73
  • +0/-0
Fetchmail & Spamassassin
« Reply #6 on: October 30, 2005, 11:31:18 AM »
Sometimes this happens to me too (most of the time when I change something in the clamav or spam settings) check your settings (login as root and substitute user/domain by your own settings):
Code: [Select]
[root@domain user]# cd /
[root@domain /]# /sbin/e-smith/config show smtpfront-qmail
    smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    Proxy=enabled
    access=public
    status=enabled
[root@domain /]# /sbin/e-smith/config show spamassassin
    spamassassin=service
    status=enabled
[root@domain /]# /sbin/e-smith/config show amavis-ng
    amavis-ng=service
    MailAdmin=user@domain.nl
    Notifiers=Admin
    qmail-queue=/var/qmail/bin/qmail-spamc
    status=enabled


At my place, normally the "InternalInterfacesFilter" setting is gone.
Fix it by:

Code: [Select]
[root@domain /]# /sbin/e-smith/db configuration setprop smtpfront-qmail InternalInterfacesFilter /usr/bin/qmail-queue.amavis
[root@domain /]# /sbin/e-smith/signal-event email-update


Sjef.
......

Offline smitti

  • **
  • 27
  • +0/-0
    • http://smitti.mine.nu
Fetchmail & Spamassassin
« Reply #7 on: October 30, 2005, 05:01:18 PM »
thanks Sjef,

I tried what you said and got this output:

root@domain user# cd /
[root@domain /]# /sbin/e-smith/config show smtpfront-qmail
    smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Patterns=disabled
    PatternsFile=/var/qmail/control/patterns.default
    Proxy=enabled
    RBLList=dsn.rfc-ignorant.org:sbl-xbl.spamhaus.org
    TCPPort=25
    status=enabled
[root@domain /]# /sbin/e-smith/config show spamassassin
    spamassassin=service
    status=enabled
[root@domain /]# /sbin/e-smith/config show amavis-ng
    amavis-ng=service
    amavis-ng=service
    Notifiers=Admin
    qmail-queue=/var/qmail/bin/qmail-spamc
    status=enabled

so I don't know if there is anything wrong here?
I also tried your solution... no luck
I even deinstalled spamassassin and reinstalled it.

I still have no clue about this

Peter

egerards

Fetchmail & Spamassassin
« Reply #8 on: October 31, 2005, 02:13:09 PM »
This sounds very familiar. It appears that you also have clamav antivirus installed. Just set "Scan outgoing e-mail" to "Yes" and you will see that mails fetched by fetchmail will be scanned with by clamav as well as spamassassin.

This is because "incoming e-mail" is defined as mail which is offered on the external network interface. Mail fetched by Fetchmail is offered to 127.0.0.1 and not treated as mail coming from outside.

Just check /etc/tcprules/tcp.smtp before and after the adjustment.

Offline smitti

  • **
  • 27
  • +0/-0
    • http://smitti.mine.nu
Fetchmail & Spamassassin
« Reply #9 on: October 31, 2005, 07:22:42 PM »
Quote from: "egerards"

Just check /etc/tcprules/tcp.smtp before and after the adjustment.


I do have the outgoing mail set to "yes".

and somehowe I can't find the file tcp.smtp!

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Fetchmail & Spamassassin
« Reply #10 on: November 02, 2005, 05:16:26 PM »
I don't have the file neither (/etc/tcprules/tcp.smtp), and both incoming and fetched mail gets scanned...

About the output that Sjef mentions, mine is just the same as smitti.

 :hammer: