A Modular Email Architecture Using Open Source Components



Similar documents
Exim4U. Server Solution For Unix And Linux Systems

The Leading Security Suites

Scaling DBMail with MySQL

Mail Avenger. David Mazières New York University

Mail Services. Easy-to-manage Internet mail solutions featuring best-in-class open source technologies. Features

Softnix Messaging Server (SMS)

Firewall, Mail and File server solution

Advanced 100 GB storage space. Unlimited monthly bandwidth. Pro 150 GB storage space. Unlimited monthly bandwidth. Horde Squirrelmail Round Cube Mail

SuSE Solutions Based on

Post Genie TM WebMail Server 2400/2208R

How To Get The Most Out Of Your From Your Mail Server (For A Small Business)

Gateways Using MDaemon 6.0

Celframe - Easy Linux - Lesson 8 - Server

MailEnable Scalability White Paper Version 1.2

"Charting the Course... Enterprise Linux Networking Services Course Summary

Architecture of a scalable mail system. Joel Jaeggli for PACNOG2 June 2006

services. Anders Wiehe IT department Gjøvik University College

Discuss the new server architecture in Exchange Discuss the Client Access server role. Discuss the Mailbox server role

Web. Anti- Spam. Disk. Mail DNS. Server. Backup

Deployment Guides. Help Documentation

PrinterOn Enterprise Administration Support Guide

ISP Systems Design. ISP Workshops. Last updated 24 April 2013

Eiteasy s Enterprise Filter

GroupWise SMTP Infrastructure Design:

Reliable & Secure . Professional, Dependable, Complete Easy to Learn, Use and Grow

Zimbra Collaboration Suite Administrator s Guide. Release 6.0

Tools. David Hilley. David Hilley, March 5, 2008 L A T E X - p. 1

CipherMail Gateway Quick Setup Guide

MOC 5047B: Intro to Installing & Managing Microsoft Exchange Server 2007 SP1

Frequently Asked Questions

Lab Tasks 1. Configuring a Slave Name Server 2. Configure rndc for Secure named Control

BUILT FOR YOU. Contents. Cloudmore Exchange

INSTALLATION AND CONFIGURATION GUIDE (THIS DOCUMENT RELATES TO MDAEMON v ONWARDS)

IceWarp to IceWarp Server Migration

Implementing MDaemon as an Security Gateway to Exchange Server

GL-275: Red Hat Linux Network Services. Course Outline. Course Length: 5 days

Hosted Managed by Specialists

Transport server data paths

Content Scanning with Exim 4

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

Open-Xchange Server High availability Daniel Halbe, Holger Achtziger

bla bla OPEN-XCHANGE Open-Xchange Hardware Needs

Visendo Suite a reliable solution for SMBs

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 6.1 Document version: 1.0

Emergic. A Complete Messaging & Security Suite A COMPLETE MESSAGING AND SECURITY SUITE

Advanced Linux System Administration Knowledge GNU/LINUX Requirements

Personalised package Details

ECE Mail System Overview. Pablo J. Rebollo ECE Network Operations Center

Ficha técnica de curso Código: IFCAD241

Web Hosting. Hosting. Cloud File Hosting. The Genio Group (214)

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

How To Configure Multiburb Smt On A Sidewinder G2 In A Load Sharing Environment

70-662: Deploying Microsoft Exchange Server 2010

MDaemon Vs. Microsoft Exchange Server 2013 Standard

Lesson Plans Configuring Exchange Server 2007

spam filtering for the enterprise

English Translation of SecurityGateway for Exchange/SMTP Servers

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

ENTERPRISE LINUX NETWORKING SERVICES

Core Filtering Admin Guide

The Benefits of Verio Virtual Private Servers (VPS) Verio Virtual Private Server (VPS) CONTENTS

Filter. SurfControl Filter 5.0 for SMTP Getting Started Guide. The World s #1 Web & Filtering Company

Basic Messaging Services for Windows NT and Windows 2000

Certified Spam Assassin Professional VS-1114

Load Balancing & High Availability

EFFECTIVE SPAM FILTERING WITH MDAEMON

INSTALLATION AND CONFIGURATION GUIDE (THIS DOCUMENT RELATES TO MDAEMON v9.5.0 ONWARDS)

AX Series with Microsoft Exchange Server 2010

Feature Comparison Guide

GL275 - ENTERPRISE LINUX NETWORKING SERVICES

Quick Start Guide Managing Your Domain

Firewall Audit Techniques. K.S.Narayanan HCL Technologies Limited

AX Series with Microsoft Exchange Server 2010

Access Webmail, Collaboration Tools, and Sync Mobile Devices from Anywhere

Mail system components. Electronic Mail MRA MUA MSA MAA. David Byers

5053A: Designing a Messaging Infrastructure Using Microsoft Exchange Server 2007

The GlobalCerts TM Secur Gateway TM

How to Configure edgebox as an Server

SMTPSWITCH MAILER V6 FEATURES

M1000, M2000, M3000. eprism User Guide

Postfix. by Rod Roark

Mindwire Pty Ltd Office Lyons Street, Bungalow Cairns, Queensland 4870 Australia

Web Hosting. CMS Development. Domain registrations. DNS Pointing. Website Publishing. SMB Starter Package. Static Website Development

suitability for groupware, and performance on powerful hardware. Axigen Mail Server

EZblue BusinessServer The All - In - One Server For Your Home And Business

Solution Brief FortiMail for Service Providers. Nathalie Rivat

If your response to any of the questions above was Yes, then SmarterMail Enterprise Edition may be right for you.

VMware Zimbra Collaboration Server Administrator s Guide

1 Accessing accounts on the Axxess Mail Server

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

Exchanging Exchange Server

SonicWALL Security Quick Start Guide. Version 4.6

XGENPLUS SECURITY FEATURES...

Secure at all times. Protection systems are continuously updated so you have complete peace of mind.

Open Source in the Data Centre. John Ferlito Bulletproof Networks

IMPLEMENTATION OF INTELLIGENT FIREWALL TO CHECK INTERNET HACKERS THREAT

LGfL Managed Exchange Staff Service (StaffMail) Service Description

Hosted CanIt. Roaring Penguin Software Inc. 26 April 2011

How To Manage Your Own Server On Microsoft Exchange

COURCE TITLE DURATION LPI-202 Advanced Linux Professional Institute 40 H.

Transcription:

A Modular Email Architecture Using Open Source Components Presented to MVMRUG April 22, 2005 Scott Courtney Sine Nomine Associates

Functional Goals SMTP inbound and outbound mail POP3 and IMAP4 mailbox delivery Webmail Spam blocking Virus scanning and blocking Multiple virtual domains Scalable to 500K users

Architectural Goals of System Centralized user authentication, profiles Virtual user accounts (no shell accounts) Modular deployment from server templates Horizontally scaling Near-instantaneous failover where practical Centralized backup Centralized logging Deploy on low-cost Intel hardware or VM/Linux, or mix platforms

Design Overview Inet Webmail SMTP out SMTP in Bounces Clients (users) POP/IMAP proxy mbox mbox Arrows show direction of service request, not necessarily data flow "SMTP in" is actually three layers Webmail behaves like a user client, conceptually "outside the box" DNS and LDAP connect to everything (not all shown here) mbox Admin and backup servers omitted for clarity DNS LDAP

Network Overview User (Client) Hosts Public Internet FW/Router (Details of network architecture are not part of this presentation.) FW / Router Modular Email System

SMTP Inbound -- Details RBL (SMTP out) Spam Filter Virus Filter mbox mbox Inbound connections distributed by simple round-robin DNS Filters can go offline for scheduled maintenance after letting queue drain Philosophy: Block before scan Scan before route LDAP mbox No spam, virus bounce Early or late lookup of valid destination

Virus and Spam Removal Method 1: Direct Daemon SpamAssassin, ClamAV, or similar tools listen on TCP ports May be on dedicated server separate from MTA Simpler configuration and less points of failure than with amavisd-new Scanning closely coupled to MTA configuration Method 2: amavisd-new amavisd-new listens on TCP port, runs spam and/or virus scan from exec() call or API function call, or shells out amavisd-new may be on separate server, but scanner(s) local to amavisdnew host Can change or add new scanners w/o touching MTA configuration MTA Virus and/or Spam Scan MTA amavisd -new Virus and/or Spam Scan

SMTP Outbound -- Details Mail between local users Webmail All mail from local users SMTP out Mailbox Servers Clients Bounces for "user not found", "account disabled", etc. (but not spam) Spam Filters All user-originated messages pass through virus and spam filters Outbound servers have local spam, virus filter Philosophy: Outbound << Inbound Nothing nasty out! No spam, virus bounce Decouple outbound queuing

POP3/IMAP4 Service Webmail Internet POP/IMAP proxies SMTP in Clients (users) LDAP mbox mbox mbox Mailbox servers are just POP3/IMAP4, nothing else Routing to mailbox host based on LDAP attribute No direct connection to mailbox servers from untrusted hosts POP/IMAP proxy looks up mailbox location in LDAP, emulates (then passes through) authentication No user data whatsoever on proxy server -- admin is trivially simple

Webmail Service Users Webmail Servers Webmail authentication is through IMAP, not LDAP Sessions must be in MySQL, not Apache or PHP or Horde native, so load balancing will work correctly MySQL server stores only session data and [optionally] webmail user preferences. MySQL server can be replicated for warm-failover MySQL Server (session data) IMAP Proxy Servers

LDAP (My Diagrams vs. Reality) My Diagrams One big LDAP server If LDAP goes down, the world comes to a grinding halt Reality One master LDAP server Any other server that needs LDAP lookups has its own replicant locally Master server down? No user profile changes but things keep working for all that matters.

Software Selection: MTA Selected: Exim http://exim.org/ Other Candidates Sendmail QMail Why? Extremely configurable Sophisticated and readable config syntax Config localized to one file (manageability) Secure, fast, reliable Integrates smoothly with external data sources Superb documentation

Software Selection: POP/IMAP Selected: Courier http://www.courier-mta.org/imap/ Other Candidates WU-imapd (numerous others) Why? Extremely configurable Modular authentication Widely supported Secure, fast, reliable Integrates smoothly with external data sources

Software Selection: IMAP/POP Proxy Selected: Perdition www.vergenet.net/linux/perdition Why? Does what is needed See "Other Candidates" Other Candidates None, really

Software Selection: Webmail Selected: Horde www.horde.org (Plus IMP and Turba plugins) Other Candidates Squirrel Mail EMU Webmail Courier Webmail etc. Why? Extremely configurable Modular design with other "groupware" components available Addressbook/contacts Calendar Mainstream and widely supported Integrates smoothly with external data sources

Adding z/vm Linux to the Mix Great on z/vm Linux Mailbox Servers +++ POP/IMAP Proxy Servers Webmail Servers MySQL Server(s) Master LDAP (?) Inbound SMTP route (spin off from spam scan) Outbound SMTP -- but, spin off virus/spam scan to Intel Maybe Stay on Intel Virus Scanning Spam Scanning Outbound SMTP if you keep virus/spam scan local to these hosts Note that the servers that don't make sense on z/vm Linux are also the servers that store no important data!

Performance in the Real World Configuration Intel P4-class hardware ~2.0 GHz Uniprocessor except virus, spam scan and master LDAP 2 GB RAM per host 100 Mb Ethernet ~40K users > 30K inbound/hour not counting deleted spam, virus Performance Virus + spam >= 2X actual inbound mail About 8K~10K users per mbox 2 servers at each other pipeline stage can handle full load (3 used by choice to allow scheduled outages) In production ~2 years with no large outages

Remaining Challenges Mailbox servers are "single point of failure" to the specific users of a given server Using z/vm Linux largely eliminates this problem Can use tools like "heartbeat" for hot failover Spam and viruses are absolutely rampant on the Internet -- even state-of-the-art filtering isn't good enough yet Sender Policy Framework (SPF) CRM114, Bayesian filter -- good but complex Authenticated SMTP (supported by this design!)

Conclusion System is horizontally and vertically scalable Platform-neutral, and most pieces work just fine on z/vm Linux All pieces work fine on z/vm Linux if you have a small number of users Load balancing accomplished with simple roundrobin DNS and built-in replication features of OpenLDAP and MySQL Servers can go offline easily for scheduled maintenance Servers can be cloned from server-type templates

Contact Information Scott Courtney, Senior Engineer Sine Nomine Associates scourtney@sinenomine.net 330.353.0403 http://sinenomine.net/