07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

# Unfiltered addresses<br />

postmaster@falcot.com permissive<br />

support@falcot.com permissive<br />

sales-asia@falcot.com permissive<br />

# Aggressive filtering for some privileged users<br />

joe@falcot.com<br />

aggressive<br />

# Special rule for the mailing-list manager<br />

sympa@falcot.com<br />

reject_unverified_sender<br />

# Greylisting by default<br />

falcot.com<br />

greylisting<br />

Example 11.14<br />

The /etc/postfix/recipient_access file<br />

11.1.6. Integrating an Antivirus<br />

The many viruses circulating as attachments to emails make it important to set up an antivirus<br />

at the entry point of the company network, since despite an awareness campaign, some users<br />

will still open attachments from obviously shady messages.<br />

The Falcot administrators selected clamav for their free antivirus. The main package is clamav,<br />

but they also installed a few extra packages such as arj, unzoo, unrar and lha, since they are<br />

required for the antivirus to analyze attachments archived in one of these formats.<br />

The task of interfacing between antivirus and the email server goes to clamav-milter. A milter<br />

(short for mail filter) is a filtering program specially designed to interface with email servers.<br />

A milter uses a standard application programming interface (A<strong>PI</strong>) that provides much better<br />

performance than filters external to the email servers. Milters were initially introduced by<br />

Sendmail, but Postfix soon followed suit.<br />

QUICK LOOK<br />

A milter for Spamassassin<br />

The spamass-milter package provides a milter based on SpamAssassin, the famous<br />

unsolicited email detector. It can be used to flag messages as probable<br />

spams (by adding an extra header) and/or to reject the messages altogether if<br />

their “spamminess” score goes beyond a given threshold.<br />

Once the clamav-milter is installed, the /etc/default/clamav-milter file must be edited, so<br />

that the milter is configured to run on a TCP port rather than on the default named socket:<br />

SOCKET=inet:10002@127.0.0.1<br />

Chapter 11 — Network Services: Postfix, Apache, NFS, Samba, Squid, LDAP<br />

265

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!