Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

SpamAssassin Rules We All NEED

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
32 posts
  • 1
  • 2
  • 3
  • 4
  • Next
SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

SpamAssassin Rules We All NEED
  • Quote

Post by SS88 » Tue Apr 26, 2016 1:03 am

Hello VestaCP Community!

I have now merged this topic to GitHub. I am reluctant to keep it updated on VestaCP forums - but it will forever stay updated on GitHub.

https://github.com/SS88UK/SpamAssassinRules

Once you have installed the rules and restarted SpamAssassin the rules will help reduce spam on your server.
Last edited by SS88 on Thu May 11, 2017 1:15 pm, edited 5 times in total.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: SpamAssassin Rules We All NEED
  • Quote

Post by pandabb » Tue Apr 26, 2016 1:41 am

Thanks will try this in future.
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: SpamAssassin Rules We All NEED
  • Quote

Post by Sanity » Tue Apr 26, 2016 10:18 am

testing...
thank you!
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: SpamAssassin Rules We All NEED
  • Quote

Post by SS88 » Tue Apr 26, 2016 10:40 am

I have added these to it too:

Code: Select all

score   URIBL_DBL_SPAM          5.0
score   RCVD_IN_PSBL            5.0
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: SpamAssassin Rules We All NEED
  • Quote

Post by Sanity » Tue Apr 26, 2016 3:09 pm

in the spamassassin you have to change something to read the file?
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: SpamAssassin Rules We All NEED
  • Quote

Post by SS88 » Tue Apr 26, 2016 3:15 pm

Sanity wrote:in the spamassassin you have to change something to read the file?
Nope SA reads ".cf" files.
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: SpamAssassin Rules We All NEED
  • Quote

Post by Sanity » Tue Apr 26, 2016 5:00 pm

I imagined but to confirm it. thank you very much! :)
Top

Sanity
Posts: 167
Joined: Tue Apr 08, 2014 9:10 am
Contact:
Contact Sanity
Website

Os: Ubuntu 15x
Web: apache + nginx
Re: SpamAssassin Rules We All NEED
  • Quote

Post by Sanity » Fri Apr 29, 2016 7:11 am

Hello, I'm getting a lot of spam. but thank you very much!
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: SpamAssassin Rules We All NEED
  • Quote

Post by SS88 » Fri Apr 29, 2016 11:32 am

Sanity wrote:Hello, I'm getting a lot of spam. but thank you very much!
Has it reduced or not?

You could view the headers of the email to see the SpamAssassin tests performed.
Top

SS88
Posts: 336
Joined: Thu Nov 19, 2015 12:40 pm

Re: SpamAssassin Rules We All NEED
  • Quote

Post by SS88 » Wed May 11, 2016 12:51 pm

As of today, the first post has been updated as it was showing errors in my logs.

All SA rules must all be on one line, otherwise those rules are ignored.

This has been changed/added (if statements added):

Code: Select all

ifplugin Mail::SpamAssassin::Plugin::Shortcircuit

meta SC_HAM (USER_IN_WHITELIST||USER_IN_DEF_WHITELIST||USER_IN_ALL_SPAM_TO||NO_RELAYS||ALL_TRUSTED)
priority SC_HAM -1000
shortcircuit SC_HAM ham
score SC_HAM -20

endif
and this has been modified so more weight 3.0 to 5.0 is added if the sender is on multiple blacklists

Code: Select all

meta       CUSTOM_RCVD_IN_MANY (( RCVD_IN_BL_SPAMCOP_NET + RCVD_IN_SBL + RCVD_IN_XBL + RCVD_IN_SORBS_DUL + RCVD_IN_SORBS_SMTP + RCVD_IN_NJABL_RELAY + RCVD_IN_DSBL + RCVD_IN_NJABL_SPAM + RCVD_IN_NJABL_PROXY + RCVD_IN_SORBS_HTTP + RCVD_IN_SORBS_BLOCK + RCVD_IN_PSBL + URIBL_DBL_SPAM) > 2)
describe   CUSTOM_RCVD_IN_MANY   Message received in more than 2 RBLs
score      CUSTOM_RCVD_IN_MANY 5.0
Other fixes have been made, please update the rules in the first post.
Top


Post Reply
  • Print view

32 posts
  • 1
  • 2
  • 3
  • 4
  • Next

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password