background preloader

SpamAssassin

Facebook Twitter

AntiSpam AntiVirus Gateway Email Server using Debian, Postfix, Amavisd-new, SpamAssassin, Razor, DCC, Pyzor and ClamAV. Debian Administration :: Secure Spam/Virus filtering system with Debian and MailScanner. Posted by ugob on Wed 29 Jun 2005 at 20:46 Despite the fact that I have more experience with RedHat, I configured a Spam/Virus filtering system on Debian recently and I thought I should share some knowledge with the community.

My package of choice is MailScanner (and its friends) and I thought I could offer some guidance to people who whish to configure a similar system. MailScanner is a very powerful, scalable and robust, open-source e-mail security package. It processes more than 500 million e-mail messages every day, and is used in more than 20,000 sites around the world. MailScanner scans all e-mail for viruses, spam and attacks against security vulnerabilities. I'll base this article on Sarge, as it was just released and include a rather recent version of the tools we need. The first thing to do is to make sure your system is up to date, using apt or aptitude. For the curious, this tells postfix to accept incoming mail and put it in the hold queue.

Is it finished yet? Not really. Ugo. The web-cyradm Project pages: Web-cyradm english. Vipul's Razor: home. The Postfix Home Page. Project Cyrus. Last bits of advice for IMAP4 on the cheap, Part 5 @ LINUXWORLD MAGAZINE. (LinuxWorld) -- This is the last in the series of articles on how to set up an SMTP/IMAP4 mail system with Procmail spam filtering, the Postfix mailer, and Cyrus IMAP server.

You can find the previous articles here: The latest version I began this series using Cyrus IMAP version 1.5.19. The latest version is 2.1.3, I later upgraded to version 2.1.3. By the way, the Cyrus download page hasn't been updated to point to the correct source file for 2.1.3 (the link still points to version 2.1.2, which no longer exists), so you'll need to download this version from the FTP server (see resources for the link). The most important difference between the versions is authentication.

It also means I don't have to take a laptop everywhere I go. Even if you choose to use a web client, you may still need to protect your IMAP server passwords from mischievous employees. Getting SASL working If you're going to go with SASL at all, I recommend avoiding PAM and going with an SASL database of some kind. . #! How to set up IMAP on the cheap, Part 4 @ LINUXWORLD MAGAZINE. (LinuxWorld) -- This is the fourth in a series of articles on how to setup Cyrus IMAP, Postfix, and Procmail to create a powerful mail system with spam filtering. If you really want powerful spam filtering, I recommend that you install the two programs Spam Assassin and Vipul's Razor in addition to the aforementioned programs.

These two programs work together with procmail to eliminate nearly all incoming spam. If you use the default packages for any reasonably well-designed distribution, Spam Assassin and Vipul's Razor should be easy to install and configure (in most cases, such as with Debian, no manual configuration is necessary at all). Regardless, it is beyond the scope of this series to cover these two additions in detail, so we'll only address one "gotcha" that you may encounter when you combine Spam Assassin with postfix and/or Cyrus IMAP. More on that later. Last week we touched briefly on the power of procmail and how to create a basic recipe file. Let's get to work. . :0 * ! How to set up IMAP on the cheap, Part 3 @ LINUXWORLD MAGAZINE. (LinuxWorld) -- If you've been following along with the series, you should now have Cyrus IMAP and Postfix SMTP mail servers installed.

There's one more piece to this puzzle called Procmail. Procmail is an extremely flexible tool. If we were setting up a standard Unix mail system, we could use Procmail to deliver our mail directly without the need for an external delivery program. But since we're using Cyrus IMAP, we'll use Procmail as a general purpose mail filter. Procmail will search the headers and contents of every mail message that passes through your system and deliver messages according to the results of the search criteria. The search criteria and consequent actions are called Procmail "recipes". Last week we configured Postfix to use Procmail as our message delivery agent, but technically speaking, we're actually going to use the Cyrus delivery program. There are three things you will need to do before you can implement Procmail as part of your email system. . :0 c | $BACKUP. How to set up IMAP on the cheap, Part 2 @ LINUXWORLD MAGAZINE.

(LinuxWorld) -- This is the second in a series of articles about how to install and configure the Cyrus IMAP mail server, Postfix SMTP, and Procmail for server-side mail filtering. Last week, we covered the installation and basic configuration for Cyrus IMAP. Assuming you have Cyrus configured properly, there's one more thing you may need to do to get the IMAP server running. You need to start the authenticating agent pwcheck and restart the inetd Internet super-server. This should be as easy as the following commands, or something like them (depending on your distribution): # /etc/init.d/pwcheck start # /etc/init.d/inetd restart All this does is start the Cyurs IMAP server. You still can't receive mail yet, because we haven't set up Postfix, which is the receiving agent for SMTP messages.

Creating accounts First, we'll assume that you set up your server to use the cyrus user account as the administrator. . # cyradm localhost It should ask you for your user id. Localhost.localdomain> . logout. How to set up IMAP on the cheap, Part 1 @ LINUXWORLD MAGAZINE.