Install spamassassin debian
Installing Spamassassin Testing the spamfilter Moving spam to the Junk folder automatically Automatically subscribe users to the special IMAP folders Sieve Create the actual filter Automatically delete spam after 30 days.
For this project I used Spamassassin. Note that spamfiltering is done in two phases: 1. Spam is identified upon entering the system. These phases are separate things. Create a user for spamc. Spamc has extremely low overhead in loading, so it should be much faster to load than the whole spamassassin program. Have Spamassassin update its rules automatically every night.
The defaults are ok. After the filter has had a chance to learn what is spam and what is not say, after two weeks of use add. This will have Spamassassin actually use Bayesian the rules it learned.
Note that the line beginning with -o must start with one more whitespaces. My Syntax Highlighter seems to be stripping them off. Again, countless hours of fun. What I did wrong was I added the line not under. Adding tls makes things even more complicated. However you should always use tls if available so that your login is sent encrypted. I'm going to describe a setup that should work in most cases when you are sending mail using a single account to a single smarthost.
Select one of the smarthost options when running dpkg-reconfigure exim4-config. When specifying the smarthost, include both the smarthost server name and the port it wants you to use e.
Note the double colons. Exim uses a helper tool, which you will need to install In order to truly blacklist the spammers, just change 'warn' by 'deny' in the following block:. In either case, you could then use sieve filtering, config tricks or your email client to apply delivery rules. User authentication Adding user authentication is possible using tools like Dovecot or sasl2-bin. Spam scanning There are several ways to detect spam.
Exim has default configuration for spamassassin exim4-daemon-heavy required. You do not need to set this if you are using the default, which is shown in this commented example. This is the ACL in which you can test a message's headers or body, and in particular, this is where you can invoke external virus or spam scanners. See the exim docs and the exim wiki for more suitable examples. Some mail servers, in particular the Debian mailing-list server, simply drop such non-conformant emails.
See also Debian bug For more information about configuring spam filters, see the exim documentation. Exim access control lists ACLs Exim provides flexible way to set access control list. SpamAssassin Configuration in Debian. SpamAssassin is a mail filter to identify spam. It is an intelligent email filter which uses a diverse range of tests to identify unsolicited bulk email, more commonly known as Spam. These tests are applied to email headers and content to classify email using advanced statistical methods.
In addition, SpamAssassin has a modular architecture that allows other technologies to be quickly wielded against spam and is designed for easy integration into virtually any email system.
Install Debian's spamassassin package : apt-get install spamassassin Debian's spamassassin package is clever enough to install all the required dependencies and includes the spamd binaries see bellow. Spamassassin is installed. Let's make some tweaks. Next, we set the spam threshold value and rewrite subject variable. Replace the contents of the local. Save and exit from the file.
0コメント