Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: smitti 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?
-
Does not get scanned at all?
Are you looking at the headers? Does it get tagged SPAM?
What version of SME are you using?
-
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)
-
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.
-
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.
-
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.
-
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):
[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:
[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.
-
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
-
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.
-
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!
-
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: