Contribs.org

Please login or register.

Login with username, password and session length

News:

Remember SME Server is currently free to download and use. But it is not free to build. You can help by making a donation of time OR money from the links below.

Pages: [1]   Go Down

Author Topic: Installing SpamAssassin Coach to improve spamassassin results.  (Read 6463 times)

dadou

  • Not too shy to talk
  • *
  • Offline Offline
  • Posts: 40
    • Magelec
Installing SpamAssassin Coach to improve spamassassin results.
« 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
Logged

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #1 on: October 28, 2008, 10:06:50 AM »

Hi

please post here
Code: [Select]
config show spamassassin
config show qpsmtpd

instead of installing a plugin on your client, search the forum for "sa-learn"

HTH
Ciao
Stefano
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

dadou

  • Not too shy to talk
  • *
  • Offline Offline
  • Posts: 40
    • Magelec
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #2 on: October 28, 2008, 10:17:12 AM »

Hi,

Here it is :

Code: [Select]
[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
Logged

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #3 on: October 28, 2008, 10:25:44 AM »

Hi

try this:

Code: [Select]

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
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

dadou

  • Not too shy to talk
  • *
  • Offline Offline
  • Posts: 40
    • Magelec
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #4 on: October 28, 2008, 11:02:01 AM »

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
Logged

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #5 on: October 28, 2008, 11:15:59 AM »

I want to learn him the spam that goes through (with Spamassassin Coach).

sa-learn does exactly this

Quote
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
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

dadou

  • Not too shy to talk
  • *
  • Offline Offline
  • Posts: 40
    • Magelec
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #6 on: October 28, 2008, 12:43:07 PM »

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
Logged

judgej

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 375
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #7 on: November 01, 2008, 11:17:28 PM »

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
Logged
-- Jason

Mjohnson

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 172
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #8 on: November 01, 2008, 11:35:40 PM »

Quote
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
Logged
......

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #9 on: November 02, 2008, 09:06:11 AM »

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
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #10 on: November 02, 2008, 09:08:42 AM »

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
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

mmccarn

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 2,167
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #11 on: November 02, 2008, 06:53:45 PM »

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: I've also combined this at one site with 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:
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 or This wiki page (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
« Last Edit: November 02, 2008, 06:57:10 PM by mmccarn »
Logged

filippoc

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 114
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #12 on: November 25, 2008, 04:29:49 PM »

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
Logged

Stefano

  • Site Administrator
  • *
  • Offline Offline
  • Posts: 10,393
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing SpamAssassin Coach to improve spamassassin results.
« Reply #13 on: November 25, 2008, 07:23:28 PM »

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

Code: [Select]
config setprop spamassassin access public
signal-event remoteaccess-update

NOTE not tested!

Ciao
Stefano

edit: I missed point 2 :-)
Logged
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia
Pages: [1]   Go Up
 

Page created in 0.053 seconds with 24 queries.