Code Monkey home page Code Monkey logo

liveconfig-learn-spam's Introduction

LiveConfig Learn Spam

SpamAssassin learning script for LiveConfig enabled web-hosting systems

SpamAssassin

You are able to enable SpamAssassin when using a LiveConfig installation on your system. SpamAssassin is only running effectively when it gets "trained" with spam message. It will improve its detection algorithm and this will result in a higher detection rate.

To do so you may use the sa-learn command provided by SpamAssassin. To tell SpamAssassin to learn a single message (or even a whole folder) as spam (or as ham = no spam) you may provide a directory or pipe a message

sa-learn --spam /path/to/spam/directory or cat bad_message.eml | sa-learn --spam

To do the same with ham messages you can use the --ham argument instead of --spam.

LiveConfig

LiveConfig stores all messages of its users in /var/mail. The learning script just utilizes the find command to get the absolute paths of all .Spam and .Junk directories of all mail users. Those paths are passed to sa-learn to train SpamAssassin.

Setup

  1. Make sure SpamAssassin is fully enabled and working on your system.
  2. Place the spamassassin-learn script anywhere on your system (e.g. /usr/bin/adm/spamassassin-learn)
  3. Execute the script every day or even every few hours and pipe its output to /dev/null (using > /dev/null 2>&1)
  4. Profit.

liveconfig-learn-spam's People

Contributors

thannaske avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

liveconfig-learn-spam's Issues

Junk-Mails folder are more then ".Junk"

In particular, Outlook uses the name "Junk-E-Mail" as a spam folder. The search for "find / var / mail -type d -name '.Junk *'" also finds the spam mails from Outlook.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.