one million mails a day: open source software to deal with it Charly Kühnast Municipal Datacenter for the Lower Rhine Area Moers, Germany



Similar documents
Fighting Spam with open source software

Hosted CanIt. Roaring Penguin Software Inc. 26 April 2011

FortiMail Filtering Course 221-v2.2 Course Overview

Exim4U. Server Solution For Unix And Linux Systems

FortiMail Filtering Course 221-v2.0. Course Overview. Course Objectives

Eiteasy s Enterprise Filter

Analysis of Spam Filter Methods on SMTP Servers Category: Trends in Anti-Spam Development

ETH Zürich - Mail Filtering Service

escan Anti-Spam White Paper

Spam blocking methods and experiences

How To Configure Forefront Threat Management Gateway (Forefront) For An Server

Spam Filtering at CERN Emmanuel Ormancey - 23 October 2002

Blocking Spam Sessions with Greylisting and Block Listing based on Client Behavior

Content Scanning with Exim 4

Avira Managed Security AMES FAQ.

Collateral Damage. Consequences of Spam and Virus Filtering for the System. Peter Eisentraut 22C3. credativ GmbH.

Technical Note. FORTIMAIL Configuration For Enterprise Deployment. Rev 2.1

AntiSpam QuickStart Guide

Comprehensive Anti-Spam Service

ContentCatcher. Voyant Strategies. Best Practice for Gateway Security and Enterprise-class Spam Filtering

Anti Spam Best Practices

policyd-weight and some unorthodox approaches to eliminating spam

ESET Mail Security 4. User Guide. for Microsoft Exchange Server. Microsoft Windows 2000 / 2003 / 2008

eprism Security Appliance 6.0 Intercept Anti-Spam Quick Start Guide

Do you need to... Do you need to...

A D M I N I S T R A T O R V 1. 0

Security. Help Documentation

Fighting Spam: Tools, Tips, and Techniques

Comprehensive Filtering. Whitepaper

How To Block Ndr Spam

How To Protect Your From Spam On A Barracuda Spam And Virus Firewall

Configuring MDaemon for Centralized Spam Blocking and Filtering

Avira Managed Security (AMES) User Guide

ASAV Configuration Advanced Spam Filtering

The Open Source Stack: One approach to spam filtering

Postfix: Status Quo current development an overview

English Translation of SecurityGateway for Exchange/SMTP Servers

Government of Canada Managed Security Service (GCMSS) Annex A-5: Statement of Work - Antispam

Mail Avenger. David Mazières New York University

security

Stop Spam Now! By John Buckman. John Buckman is President of Lyris Technologies, Inc. and programming architect behind Lyris list server.

Introduction. SonicWALL Security

CipherMail Gateway Quick Setup Guide

D3 TECHNOLOGIES SPAM FILTER

The Leading Security Suites

Manual Prepared by GalaxyVisions Customer Care Team

TRU - SPAM FILTERING GATEWAY CASE STUDY

ScavengerEXA. An open source program To fight spam at the source. Thomas Mangin Exa Networks UKNOF /02/13

MailFoundry User Manual. Page 1 of 86. Revision: MF Copyright 2007, Solinus Inc. All Rights Reserved. Page 1 of 86

1 Accessing accounts on the Axxess Mail Server

Libra Esva. Whitepaper. Glossary. How Really Works. Security Virtual Appliance. May, It's So Simple...or Is It?

Quick Start Policy Patrol Mail Security 10

FortiMail Filtering. Course for FortiMail v4.0. Course Overview

An Overview of Spam Blocking Techniques

COMBATING SPAM. Best Practices OVERVIEW. White Paper. March 2007

Quick Start Policy Patrol Mail Security 9

Articles Fighting SPAM in Lotus Domino

Spam, Spam and More Spam. Spammers: Cost to send

Mailwall Remote Features Tour Datasheet

Configuring Security for SMTP Traffic

MailFoundry Users Manual. MailFoundry User Manual Revision: MF Copyright 2005, Solinus Inc. All Rights Reserved

FortiMail Filtering. Course 221 (for FortiMail v4.2) Course Overview

Guardian Digital Secure Mail Suite Quick Start Guide

eprism Security Appliance 6.0 Release Notes What's New in 6.0

Advanced Settings. Help Documentation

About this documentation

FortiMail Filtering. Course 221 (for FortiMail v5.0) Course Overview

Enhanced Spam Defence

EMB. Basics. Goals of this lab: Prerequisites: LXB, NET, DNS

Solution Brief FortiMail for Service Providers. Nathalie Rivat

Anti-Spam Measures Survey Pascal Manzano ENISA

IP Reputation Exchange security research

Security 7.4 Administrator s Guide

Visendo Suite a reliable solution for SMBs

IBM Express Managed Security Services for Security. Anti-Spam Administrator s Guide. Version 5.32

Anti-Spam White Paper

Avira Managed Security (AMES) User Guide

Why Content Filters Can t Eradicate spam

Barracuda Spam Firewall User s Guide

SECURITY S INSIDER SECRETS

Technical Note. ISP Protection against BlackListing. FORTIMAIL Deployment for Outbound Spam Filtering. Rev 2.2

SpamPanel Level Manual Version 1 Last update: March 21, 2014 SpamPanel

A Modular Architecture Using Open Source Components

Cloud Firewall. 1. Introduction. a. What is Spam?

Frequently Asked Questions for New Electric Mail Administrators 1 Domain Setup/Administration

Administrator Manual v3.0

escan SBS 2008 Installation Guide

Security Management Mail abuse prevented by Origin-based Anti Spam measures Getting started

Cannot send Autosupport , error message: Unknown User

Configure a Mail Server

Quick Start Policy Patrol Spam Filter 9

POP3 Connector for Exchange - Configuration

Effective Open-Source Spam Filtering

Top 10 Features: Clearswift SECURE Gateway

SPAMfighter SMTP Anti Spam Server

Mail Proxy Anti-Spam & Anti-Virus Feature Guide

Copyright 2011 Sophos Ltd. Copyright strictly reserved. These materials are not to be reproduced, either in whole or in part, without permissions.

Mail Sentinel. Feature Guide. Mail Sentinel Anti-Spam & Mail Sentinel Anti-Virus

. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Transcription:

one million mails a day: open source software to deal with it Charly Kühnast Municipal Datacenter for the Lower Rhine Area Moers, Germany

Internet many years ago... mail server mail client Seite: 2

today, however... Seite: 3

Part 1: spam filters Seite: 4

Spamfilters: First Contact Your Spamfilters should be the first to make contact with incoming SMTP connections. A well-configured spam filter will reduce 1,000,000 SMTP connections to 200,000. Seite: 5

Sicherheit von Internet-Anwendungen Spam Filter Header Checks RBLs Sender / Recipient Address Verification SMTPd PolicyD SpamAssassin to anti-virus server Seite: 6

Why should the spam filter be the first to receive new SMTP connections? Why not the anti-virus server or a mailrouting engine? Mar 15 12:12:23 spamfilter2 postfix/smtpd[22703]: connect from 82-142-adsl.vntc.ru[89.107.82.142] Mar 15 12:12:24 spamfilter2 postfix/smtpd[22703]: NOQUEUE: reject: RCPT from 82-142-adsl.vntc.ru[89.107.82.142]: 554 Service unavailable; Client host [89.107.82.142] blocked using cbl.abuseat.org Seite: 7

There are Real-Time Block Lists (RBLs) for - IP addresses and ranges known for sending spam - open mail relays - open proxies allowing the CONNECT method to SMTP - RfC ignorant servers -... Seite: 8

RBLs always a good thing? You have to trust other people's judgement about what is evil and what isn't When an RBL stops working, it might affect your mail transport On the other hand, the results are impressive. Seite: 9

Seite: 10 one million e-mails a day

Sender / Recipient Address Verification As soon as the SMTP dialogue reaches the rcpt to: stage, the spam filter checks with the originating server if the sender's address is actually valid. and / or with the destiantion server if the recipient's address is actually valid. Seite: 11

Sender / Recipient Address Verification Things that can go wrong: Catch-all configuration renders the verification useless When the probe connection is greylisted on the destination server, things usually go downhill. Seite: 12

policyd policyd integrates into your mail MTA and gives you White- Black- and Greylisting several Checks based on HELO data rate limiting Seite: 13

Greylisting Greylisting is still a sharp weapon when fighting spam (not as sharp as two years ago, though). However, Greylisting slows down mail delivery, so you're annoying both spammers and customers. Seite: 14

HELO, I'm a spammer policyd analyzes the HELO string and rejects the connection if your own hostname appears in the HELO string checks if an MTA rotates its HELO string with every mail it sends Seite: 15

Rate limiting many MTAs or, failing that, policyd can limit the rate of mails from a certain sender oder to a certain recipient within a given time frame. Seite: 16

SpamAssassin based on a ruleset, SpamAssassin assigns a Score to every Mail it processes. The Score can then be used to let the mail pass let the mail pass, but attach a warning tag (**spam?**) move the mail into a quarantine directory or drop it Seite: 17

Use OCR to get rid of image spam Spammers often conceal their offerings in pictures to evade anti-spam techniques. Tools like fuzzyocr, which integrates into SpamAssassin, extract the text from the images. Seite: 18

Part II: anti-virus server with AmavisD-new AmavisD-new is a Daemon written in Perl. It easily integrates in most MTAs. It is most commonly used to trigger anti-virus software and / or SpamAssassin MTA AmavisD-new Seite: 19

Scanning e-mail attachments for viruses is very time-consuming and likely to be the bottleneck in your mail transport chain. - use daemonized virus scanners - use very fast disk arrays or, even better, a SAN - let AmavisD use tmpfs! - configure syslog for asynchronous writing Seite: 20

Concurrency limits MTAs usually have reasonable concurrency limits to avoid overwhelming other mail servers. However, if your spam filter talks to you anti-virus server, the concurrency limit is likely to bog them down. Seite: 21

Part 3: Monitoring Of course you want to know what is going on on your mail servers. There are several nifty tools to visualize mail traffic, queues etc. Seite: 22

A classic: MRTG MRTG shows you the load on your mail server's network interface Seite: 23

Mailgraph mailgraph shows you how many mails were sent and received by this server Seite: 24

Mailgraph mailgraph also gives you statistics about bounced and rejected mails, as well as the amount of spam and viruses. Seite: 25

queuegraph Queuegraph tells you how many mails are in the active / deferred queue Seite: 26