Koozali.org: home of the SME Server

Filter / reject spam messages based on subject

Offline Gaetan

  • ****
  • 104
  • +0/-0
Filter / reject spam messages based on subject
« on: November 04, 2011, 11:09:55 AM »
Hi,
Is there a way to filter messages based on the subject.
We get a lot of spam messages that are indeed flagged as spam ... unfortunately, it looks like we can only reject messages based on the sender address ... not the message subject.
Can someone clarify please ?
Thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Filter / reject spam messages based on subject
« Reply #1 on: November 04, 2011, 11:44:07 AM »
I suggest you to enable RHSBL and DNSBL on your server..

are you using fetchmail?

please post the result of
Code: [Select]
config show qpsmtpd

Offline Gaetan

  • ****
  • 104
  • +0/-0
Re: Filter / reject spam messages based on subject
« Reply #2 on: November 07, 2011, 03:24:12 PM »
Hi,
Sorry for late reply.

Here the requested info:

config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=8
    MaxScannerSize=25000000
    RBLList=whois.rfc-ignorant.org:dnsbl.njabl.org:zen.spamhaus.org
    RHSBL=enabled
    RequireResolvableFromHost=yes
    SBLList=dsn.rfc-ignorant.org
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled



Gaëtan

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Filter / reject spam messages based on subject
« Reply #3 on: November 07, 2011, 03:31:01 PM »
I would add some list to RBLList and SBLList

Code: [Select]
[root@srvsrv ~]# config show qpsmtpd
qpsmtpd=service
    Authentication=enabled
    BadCountries=RU
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    GeoIP=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=bl.spamcop.net:combined.njabl.org:dnsbl.ahbl.org:list.dsbl.org:multihop.dsbl.org:zen.spamhaus.org
    RHSBL=enabled
    RequireResolvableFromHost=yes
    SBLList=bogusmx.rfc-ignorant.org:multi.surbl.org:black.uribl.com:rhsbl.sorbs.net:bulk.rhs.mailpolice.com:fraud.rhs.mailpolice.com:porn.rhs.mailpolice.com:adult.rhs.mailpolice.com:ex.dnsbl.org
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled

actually, we have almost no spam

Offline Gaetan

  • ****
  • 104
  • +0/-0
Re: Filter / reject spam messages based on subject
« Reply #4 on: November 07, 2011, 03:34:29 PM »
Hi,
Thanks. I will try to add those lists.

I have actually install the contrib "E-mail WBL".
In "Black Lists: REJECT",  there are 2 sections:
qpsmtpd badhelo
qmail badmailfrom    


How do you use them ?
Gaëtan

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Filter / reject spam messages based on subject
« Reply #5 on: November 08, 2011, 01:14:02 PM »
Hi,
Is there a way to filter messages based on the subject.
We get a lot of spam messages that are indeed flagged as spam ... unfortunately, it looks like we can only reject messages based on the sender address ... not the message subject.
Can someone clarify please ?
Thanks
If you are trying to automatically delete email that has been tagged as spam by your SME server, you may want to check the spamassassin settings for 'Sensitivity', 'TagLevel', 'RejectLevel' and 'SortSpam'.

All of these can be set in server-manage under E-mail:Change e-mail filtering settings:
Spam filtering Enabled    
Spam sensitivity Custom (I believe this must be set to 'Custom' to enable the next two settings)
Custom spam tagging level <tag email with a score greater than or equal to this number>    
Custom spam rejection level <reject email with a score greater than or equal to this number, but less than the tagging level>
Sort spam into junkmail folder enabled (move 'tagged' spam directly into junkmail)

If you don't already have it enabled, I also recommend enabling Bayesian auto-learning.