DIY Small Mail Servers. STLLUG 16 Oct DIY Mail Servers: STLLUG meeting, 16 Oct 2014; Ken Johnson



Similar documents
How to set up a multifunction device or application to send using Office 365

Collax Mail Server. Howto. This howto describes the setup of a Collax server as mail server.

Configuring -to-Feed in MangoApps

Tutorial Details Product Demonstrated: X-301 Estimated Completion Time: 15 minutes

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

Exim4U. Server Solution For Unix And Linux Systems

Configuring Your Gateman Server

Anti-spam filtering techniques

XGENPLUS SECURITY FEATURES...

. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Migration Manual (For Outlook Express 6)

ing from The E2 Shop System address Server Name Server Port, Encryption Protocol, Encryption Type, SMTP User ID SMTP Password

Management CSCU9B2 CSCU9B2 1

1 Accessing accounts on the Axxess Mail Server

Knowledge Base. Setup GoogleApps in Outlook Pages. Zeumic Pty Ltd. PO Box 44 Kew, VIC Australia 3101

Hosted CanIt. Roaring Penguin Software Inc. 26 April 2011

Domains Help Documentation This document was auto-created from web content and is subject to change at any time. Copyright (c) 2016 SmarterTools Inc.

Thanks for choosing sentora-paranoid for your sentora hosting environment security solution

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

SME- Mail to SMS & MMS Gateway with NowSMS Quick Start Guide

Migration Manual (For Outlook 2010)

SonicWALL Security Quick Start Guide. Version 4.6

Set up Outlook for your new student e mail with IMAP/POP3 settings

Panda Cloud Protection

Sending an Encrypted/Unencrypted Message. Let's Begin: Log In and Set Up Security Questions. Create Additional ProMailSource Accounts:

Marketing Glossary of Terms

Antispam Security Best Practices

How to move to your account with MAC Mail

Quick-Start Guide

How To Send Mail From A Macbook Access To A Pc Or Ipad With A Password Protected Address (Monroe Access) On A Pc (For Macbook) Or Ipa (For Ipa) On Pc Or Macbook (For

How to configure your client

Configuration Manual for Lime Domains

CipherMail Gateway Quick Setup Guide

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

After you've enabled POP/IMAP access in i.mail, you need to configure your client to download i.mail messages.

Android: Configure IMAP/POP/SMTP

POP3 Connector for Exchange - Configuration

How To Ensure Your Is Delivered

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

Hosted Managed by Specialists

You may use port 587 if port 25 is blocked by your internet provider. This does not apply to customers using PolarComm internet.

ConnectMail Mobile Configuration

How to set up your Secure in Outlook 2010*

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

Spam blocking methods and experiences

StarterPlus Mailbox Software Setup Guide

CSE/ISE 311: Systems Administra5on Administra5on

IRMACS Setup. Your IRMACS is available internally by the IMAP protocol. The server settings used are:

Mail Server Administration

WINDOWS MAIL VISTA ACCOUNT SETUP FOR USE WITH ELLIPSE ADVANCED SPAM FILTER

Security 1 / 43

How to make the s you Send from Outlook 2010 appear to Originate from different Addresses

. MIME is the protocol that was devised to allow non-ascii encoded content in an and attached files to an .

Marketing Do s and Don ts A Sprint Mail Whitepaper

Setting up and controlling

Linux Network Administration

How to make the s you Send from Outlook 2003 appear to Originate from different Addresses

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

SMTPSWITCH MAILER V6 FEATURES

Internet Security [1] VU Engin Kirda

Visendo Suite a reliable solution for SMBs

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

Why Spamhaus is Your Best Approach to Fighting Spam

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on Mail Tab.

FILTERING FAQ

SPAM ARREST WORKS! Quick Start Enterprise Administrators. Take Control of Your Inbox. Protecting mailboxes since 2001

SpamPanel Reseller Level Manual 1 Last update: September 26, 2014 SpamPanel

Architecture. The DMZ is a portion of a network that separates a purely internal network from an external network.

Troubleshooting IMAP Clients and ViewMail for Outlook in Cisco Unity Connection 8.x

Update Instructions

MTNL SMTP Relay User Guide

Articles Fighting SPAM in Lotus Domino

Migration Project Plan for Cisco Cloud Security

Create Mail Profiles for Gmail, Yahoo or Hotmail Accounts for Outlook Windows

Configuring Security for SMTP Traffic

Contents. Introduction. Creating a list. Growing your list. Managing unsubscribes. Handling spam complaints. Managing bounces

WineWeb Account Services

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

Ciphermail for BlackBerry Quick Start Guide

Mail agents. Introduction to Internet Mail. Message format (2) Authenticating senders

Deliverability Best Practices by Tamara Gielen

Deploying Layered Security. What is Layered Security?

NeoMail Guide. Neotel (Pty) Ltd

Configuring Outlook to send mail via your Exchange mailbox using an alternative address

Instructions Microsoft Outlook Express Page 1

Standard Mailbox Software Setup Guide

Barracuda Spam Firewall User s Guide

Setting up Microsoft Office 365

602LAN SUITE 5.0 Groupware

How to Pop to Outlook

Security Fort Mac

Guide for Alumni. Transferring Office365 s to a Personal Account

Open Thunderbird. To set up an account in Thunderbird, from the Tools menu select Account Settings; choose account; then click Next.

Instructions for Microsoft Outlook 2003

Setting up Microsoft Office 365

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

ETH Zürich - Mail Filtering Service

Instructions Android Smartphone & Tablet Page 1

Serial Deployment Quick Start Guide

Mozilla Mail. Created by Holly Robertson and Quinn Stewart Spring 2004 IT Lab, School of Information University of Texas at Austin

Transcription:

DIY Small Mail Servers STLLUG 16 Oct 2014

Helpful Hints for running a personal or small business mail server.

About Me I work as an independent consultant performing system and small network administration, and writing specialized technical documentation. I run a mail server for a client using Debian Linux, exim4, uw-imap, spamassassin, fail2ban, ipset, and iptables.

Job Description: Mailserver Admin Successful delivery of outgoing mail Intact receipt of desired* incoming mail

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

Definitions Mail Transfer Agent (MTA) uses SMTP to route mail to the destination MTA, or vice versa. Examples: Exim, Sendmail, Qmail, Postfix...

Definitions Mail Delivery Agent (MDA) uses POP or IMAP (usually) to get received mail to the recipient. Examples UW-imap, Dovcot, Courier

Definitions MUA uses SMTP to send outgoing mail to the 'local' MTA; uses POP or IMAP to fetch mail from the MDA. Examples Outlook, Thunderbird, Squirrelmail, Gmail

The road not taken, mostly Choosing or configuring an MTA exim4/postfix/qmail/... Choosing or configuring an MDA - uw-imap/dovecot/courier/... Choosing or configuring an MUA - Outlook/Thunderbird/webmail clients/...

'spam' a coarse definition Email you (and others!) do not want to receive Trying to sell you something drugs/stock/etc. Con Artists 419 email Phishing trying to steal passwords, then money

'spam' a coarse definition Email you (and others!) do not want to receive Botnet recruitment Extortion Ransomware (Crypto Locker) Stealing your time...

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

'spam' Rules Your World Volume On the server I administer, at least 90% of the sending IP addresses are hostile. (Can't count mail...) Bandwith Diskspace CPU Air conditioning Rack space...

'spam' Rules Your World Direct Damage to You User's time and annoyance Financial loss from Phishing Botnet recruitment Data destruction from Ransomware Restoring compromised systems...

'spam' Rules Your World Collateral Damage 'spam' costs and annoys large providers and companies so much they are willing to do almost anything to stop it. If you get caught in their defenses the cost to them is small, unpredictable, and probably unknown to them. The cost of 'spam' is large, predictable, and in their face every day. Who wins?

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

Don't look like a spammer Do the right things Don't do the wrong things Right and Wrong are measured by spamhaus, Barracuda, Google, and by the admins of the mailservers used by your customers, suppliers, and friends.

Do the right things Reverse IP lookup that matches your MX record. Or at least the domain matches. Use SPF records SPF (Sender Policy Framework) is defined in IETF RFC 7208. SPF is a tool to combat forged email headers Are you who you say you are?

Prevent the wrong things Require encrypted access to send and receive mail prevent easy password stealing from road warriors. (This is not end-to-end encryption!) Requires an SSL certificate you may want a real one, for reasons named later. Successful password thieves WILL use your mail server to send spam.

Prevent the wrong things Protect your mail server from brute-force attacks. Evil-doers will get a list of your users and try to brute-force their passwords. Fail2ban can stop them. Successful password crackers will probably use your mail server to send spam. (and other evil!)

Prevent the wrong things Use spamassassin on your outgoing mail, too. Think 'belt and suspenders' Possible protection from disgruntled employee, compromised PC, stolen passwords...

A small network

Prevent the wrong things A compromised PC behind the same NAT router as your server is a bushel basket of trouble. It can send spam directly. It can steal email addresses of your users. It can steal passwords of your users. http://www.spamhaus.org/lookup/

Prevent the wrong things A compromised PC behind the same NAT router as your server is a bushel basket of trouble. It can send spam through your email server. It can talk to a captured botnet C&C node. http://www.spamhaus.org/lookup/

Prevent the wrong things Enforce PC hygiene Use Data Execution Prevention All programs. Use AdBlock and FlashBlock. Use non-privileged accounts.

Prevent the wrong things Enforce PC hygiene Teach: Don't open mail from strangers. Use some sort of anti-virus (MSE?). Keep updated.

Prevent the wrong things Use packet filters on your router only your mailserver can send on port 25. More packet filters only allow DNS lookups to your designated DNS servers.

Prevent the wrong things Running a listserve through your mailserver? Require confirmed signup Make unsubscribe very easy. Process rejects as unsubscribe requests Get someone else to do it

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

Keeping Inboxes Clean Use spamassassin Use fail2ban to block hostile IP addresses They are most powerful working together! Use ipset/iptables if you can/should block geographic areas or areas where rule of law is weak http://data.worldjusticeproject.org/

Email user life cycle Current Forward Reject Blackhole and spamtrap Skip the first 3 steps for at least two usernames

spamassassin Uses a multi-test rating system Accept, Flag, and Reject categories Positive ratings are bad, negative good spamassassin can be beaten...

fail2ban fail2ban monitors log file for signs of hostile activity, blocks (using iptables) hostile IP addresses for a configurable period of time Protect MUAs and MDAs from brute-force password hacking Protect against spam (the first one gets thru)

spamassassin - suggestions Use blacklist_to for the spamtrap users Make sure automatic purge of saved spam is working Adjust the flag/reject settings if you need to

fail2ban suggested applications MTAs and MDAs block for 1-2 hours after 3 login failures Rejected spam block IP addr. for 6-10 hours Rejected spam block /24 net for 1-2 hours

fail2ban suggested applications Two flagged spam block IP address for 1-2 hours No reverse lookup block IP address for 6-10 hours Unrouteable block IP addr. for 6-10 hours

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

Email Client Issues Set up secure access, add certificate Gmail needs a real certificate Set up filtering and filing of flagged email

Roadmap for Mailserver DIY'ers 'spam' rules your world how and why Assuring delivery of outgoing mail, or, Don't look like a spammer Keeping inboxes clean Email client issues Alternatives

Alternatives to DIY Google Apps for Work ($50/user/year) Paid services at Outlook.com Yahoo small business services

DIY Small Mail Servers STLLUG 16 Oct 2014