Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: dadou on October 28, 2008, 10:02:54 AM
-
Hi !
I'm using SME with spamassassin, but I've lot of spam still going through. As I'm using outlook clients I want to install SpamAssassin Coach (outlook plugin) to declare my spam to the spamassassin server on my SME.
When you install Coach, it ask you for Hostname of the server and the port for the connexion (783). I checked on the server, port 783 is listening. But when I declare a spam it seems not to be recorder (I make a tail -f on the log of the spamd, but I don't see the spam I declare going through). How can I know it's working ? Does someone has already configured it for his system ?
Thanks !!
David
-
Hi
please post here
config show spamassassin
config show qpsmtpd
instead of installing a plugin on your client, search the forum for "sa-learn"
HTH
Ciao
Stefano
-
Hi,
Here it is :
[root@web spamd]# config show spamassassin
spamassassin=service
DNSAvailable=yes
MessageRetentionTime=30
OkLanguages=all
OkLocales=all
RejectLevel=0
ReportSafe=0
Sensitivity=medium
SkipRBLChecks=0
SortSpam=enabled
Subject=[SPAM]
SubjectTag=enabled
TagLevel=5
UseBayes=0
status=enabled
[root@web spamd]# config show qpsmtpd
qpsmtpd=service
Bcc=disabled
BccMode=cc
BccUser=maillog
DNSBL=disabled
LogLevel=8
MaxScannerSize=25000000
RBLList=whois.rfc-ignorant.org:dnsbl.njabl.org:zen.spamhaus.org
RHSBL=disabled
RequireResolvableFromHost=no
SBLList=dsn.rfc-ignorant.org
access=public
qplogsumm=disabled
status=enabled
I suppose it's because the spamd deamon doesn't accept remote connexion but I don't know which option it is to activate it.
Thanks
-
Hi
try this:
config setprop spamassassin UseBayes 1
config setprop qpsmtpd DNSBL enabled
config setprop qpsmtpd RHSBL enabled
expand-template /etc/email/spamassassin/local.cf
signal-event email-update
these settings should make your spamassassin (and your server) more "aggressive" towards spam
HTH
Ciao
Stefano
-
Thanks Stefano,
But I don't want my spamassassin to get stronger by himself, I want to learn him the spam that goes through (with Spamassassin Coach). You're right it is "sa-learn" but I just want to know how to configure it so it accept remote connections for spam declaration.
I'll try your config but I'm a bit worried it put me too many real mails in spam.
David
-
I want to learn him the spam that goes through (with Spamassassin Coach).
sa-learn does exactly this
I'll try your config but I'm a bit worried it put me too many real mails in spam.
you move the spam to junkmail folder, then check it manually.. and use it to intstruct your bayesian filter..
Ciao
Stefano
-
Hi,
I see that for making work the module we need to have spamd running with the "-l, --allow-tell" switch where can it be specified so it run at startup ?
Thanks,
David
-
Isn't there any utility run on the server that can simply look at what e-mails your e-mail client drops into the spambox and learn from that, rather than having to work through additional ports?
-- JJ
-
you move the spam to junkmail folder, then check it manually.. and use it to intstruct your bayesian filter
How do you "check it manually"?? I don't understand.
Thanks.
MJ
-
Isn't there any utility run on the server that can simply look at what e-mails your e-mail client drops into the spambox and learn from that, rather than having to work through additional ports?
-- JJ
yes.. search the forums for "learnasspam" or "sa-learn"
Ciao
Stefano
-
How do you "check it manually"?? I don't understand.
Thanks.
MJ
if you enable "move to junkmail", all "SPAM" tagged messages will be moved to junkmail folder.. there could be false positives, so you'd better check your spam mails..
Ciao
Stefano
-
Here is a concise description describing how to setup your SME to learn SPAM and HAM from IMAP folders named 'LearnAsSpam' and 'LearnAsHam'. I use this on several systems with good results:
- http://bugs.contribs.org/show_bug.cgi?id=1701#c24
- http://bugs.contribs.org/show_bug.cgi?id=1701#c25
I've also combined this at one site with ImapSync (http://wiki.contribs.org/Imapsync) so that Exchange users need only drag spam and ham to 'LearnAsSpam' or 'LearnAsHam' in the public folders on their Exchange server...
Here's a contrib that is based on the LearnAsSpam and LearnAsHam scripts mentioned above. I've never used this contrib and don't know if/how well it works: - http://wiki.contribs.org/Learn
To get Spamassassin Coach to work, you need to modify the command that starts the clamd daemon - by default, clamd only allows connections from 127.0.0.1. To modify the clamd command, you would need to edit /var/service/clamd/run. Since this file is not templated, your changes would potentially disappear each time you install SME updates.
So, to get Spamassassin Coach to work, need to - enable bayesian learning as described in Bug 1701 Comment 25 (http://bugs.contribs.org/show_bug.cgi?id=1701#c25) or This wiki page (http://wiki.contribs.org/Email#Setup_Blacklists_.26_Bayesian_Autolearning) (these two methods are equivalent, as far as I can tell)
- edit /var/service/spamd/run to include the --listen-ip and --allowed-ips
- customize the firewall settings for spamd to allow inbound traffic on port 783 from reasonable hosts. Specifically, I'm sure you don't want to allow remote spamd connections from the whole planet (which could happen if you aren't careful)
- If you choose to allow clamd connections from off-site, you need to decide if/whether/how to use SSL
Read more about spamd options here: http://spamassassin.apache.org/full/3.0.x/dist/doc/spamd.html
-
Using SpamAssassin Coach has several advantages over the "periodic sa-learn over two folders" approach.
1. Effects are nearly immediate, not delayed until sa-learn run
2. SA Coach reports spam to Razor, Pyzor and SpamCop, so all smeserver users will benefit from training
3. The use of a button to learn spam is a well known operation for the user
-
Using SpamAssassin Coach has several advantages over the "periodic sa-learn over two folders" approach.
1. Effects are nearly immediate, not delayed until sa-learn run
2. SA Coach reports spam to Razor, Pyzor and SpamCop, so all smeserver users will benefit from training
3. The use of a button to learn spam is a well known operation for the user
Hi Filippo
my question is: SME use global bayes files.. does SpamAssassin Coach work on user bases or on server?
I have no possibility to test ATM, but maybe OP could try something like
config setprop spamassassin access public
signal-event remoteaccess-update
NOTE not tested!
Ciao
Stefano
edit: I missed point 2 :-)