Postfix. by Rod Roark http://www.sunsetsystems.com/

Similar documents
Spam fighting with Postfix

Postfix Configuration and Administration

Configure a Mail Server

PostfixAdmin 3.0. Mailserver administration made easy. Christian Boltz

Postfix: Status Quo current development an overview

Enhanced Spam Defence

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

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

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

Ficha técnica de curso Código: IFCAD241

Postfix Anti-Spam Workshop

Table of Contents. Electronic mail. History of (2) History of (1) history. Basic concepts. Aka (or according to Knuth)

How To Write An On A Linux Computer (No Mail) (No ) (For Ahem) (Or Ahem, For Ahem). (For An ) Or Ahem.Org) (Ahem) Or An

SMTP Servers. Determine if an message should be sent to another machine and automatically send it to that machine using SMTP.

CS43: Computer Networks . Kevin Webb Swarthmore College September 24, 2015

Fighting Spam: Tools, Tips, and Techniques

Mail Avenger. David Mazières New York University

A Modular Architecture Using Open Source Components

The basic groups of components are described below. Fig X- 1 shows the relationship between components on a network.

debops.postfix documentation

Implementing a SPAM and virus scanning mail server using RedHat Linux 8.0

Linux Administrator (Advance)

Configuring Your Gateman Server

Implementing a SPAM and virus scanning mail server using RedHat Linux 8.0

Exim4U. Server Solution For Unix And Linux Systems

QMAIL & SMTP: A Secure Application for an Unsecure Protocol. Orr Dunkelman. orrd@vipe.technion.ac.il. January 27, 2004 SMTP and QMAIL Slide 1

Linux Network Administration

Mail Server Administration

Client configuration and migration Guide Setting up Thunderbird 3.1

Spamfilter Relay Mailserver

Table of Contents. Architecture. Organisation. Structure of the organisation. Structure. with sendmail and postfix.

Mailing System: The Intra Mail

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

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

Architecture. with sendmail and postfix. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. September 30, 2008

ENTERPRISE LINUX NETWORKING SERVICES

HOWTO Virtual Mail Hosting on CentOS 6.x Postfix MySQL Dovecot PostfixAdmin Amavisd-new Spamassassin Clamav

GL275 - ENTERPRISE LINUX NETWORKING SERVICES

CipherMail Gateway Quick Setup Guide

Filtering Mail with Milter. David F. Skoll Roaring Penguin Software Inc.

FTP: the file transfer protocol

security

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

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

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

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

THE DEFINITIVE GUIDE TO SETTING UP A LINUX RELAY SERVER FOR MICROSOFT EXCHANGE SERVER

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

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

Anti-spam filtering techniques

MailStore Server 5.0 Documentation

Chapter 2 Application Layer. Lecture 5 FTP, Mail. Computer Networking: A Top Down Approach

Networking Applications

Internet Technology 2/13/2013

Sonian Getting Started Guide October 2008

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

ENTERPRISE LINUX NETWORKING SERVICES

services. Anders Wiehe IT department Gjøvik University College

Firewall, Mail and File server solution

policyd-weight and some unorthodox approaches to eliminating spam

1 Accessing accounts on the Axxess Mail Server

SPAMfighter SMTP Anti Spam Server

Internet Security [1] VU Engin Kirda

Mail NIKHEF

Domain Name System (DNS)

OpenSMTPD : We deliver!

Controlling mail message flow by content analysis

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

CS615 - Aspects of System Administration

Integrated Migration Tool

CSCI-1680 SMTP Chen Avin

Objective This howto demonstrates and explains the different mechanisms for fending off unwanted spam .

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

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

How To Block Ndr Spam

Help for System Administrators

Quick-Start Guide

MailStore Server 7 Documentation

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

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

Spam DNA Filtering System

Emacs SMTP Library. An Emacs package for sending mail via SMTP. Simon Josefsson, Alex Schroeder

Introduction of the S25R anti-spam system

Articles Fighting SPAM in Lotus Domino

Electronic Mail

Renewal of the Services

Proxy IMAP/POP/SMTP securisé avec Perdition, Postfix et SASL

Deployment Guide. For the latest version of this document please go to:

. Daniel Zappala. CS 460 Computer Networking Brigham Young University

sendmail Cookbook Craig Hunt O'REILLY' Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

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

Simple Mail Transfer Protocol

Transcription:

Postfix by Rod Roark http://www.sunsetsystems.com/

Terminology MTA MDA MUA SMTP IMAP POP3 UCE

Mail Transfer Agent Receives mail from or sends mail to other computers Talks with other MTAs and certain other agents Analogous to post offices SMTP is the language of MTAs MTAs are security conscious Examples: Postfix, Sendmail, Exim SMTP: RFCs 821, 1123, 2821 Terminology: Client, Server

Mail Delivery Agent Deposits received mail on the local computer Common storage formats are Mbox and Maildir Analogous to a mail carrier Usually invoked by an MTA Examples: Maildrop, Procmail

POP3 Server Post Office Protocol Provides for temporary storage and retrieval of mail Mail is usually deleted after retrieval Supported by most mail clients RFC 1939 and others define POP3

IMAP Server Internet Message Access Protocol Provides temporary and long term storage and retrieval of mail More sophisticated than POP3 Provides folders for organizing and archiving Supported by most mail clients Examples: Qmail, Courier IMAP RFC 3501 defines IMAP4rev1

Mail User Agent Mail Client your tool for composing, reading, searching, archiving, etc. Commonly understands SMTP, POP3, IMAP and local storage formats Examples: Mutt, KMail, Evolution, Pine, Mozilla Thunderbird, MS Outlook

SMTP Conversation $ telnet localhost 25 helo somewhere.org mail from: me@somewhere.org rcpt to: rod@dapper.livepenguin.com data From: Me To: Rod Subject: Test Hi, are you there? Regards, Me. quit

Message Content Headers Body Attachments

Postfix Features High performance, small footprint Sendmail compatible but easier to administer and more secure Virtual domains Extensive junk mail controls Authentication and encryption Flexible database support Powerful support for plugins Address manipulation Maildir or mailbox delivery

Postfix Processes master smtpd smtp qmgr cleanup local Others: anvil, bounce, defer, trace, flush, proxymap, scache, showq, spawn, tlsmgr, verify

Postfix Utilities postfix postmap postsuper postqueue sendmail, newaliases others

Basic Configuration dpkg reconfigure postfix (Debian) main.cf master.cf aliases

main.cf Basics myhostname relayhost inet_interfaces mynetworks_style, mynetworks alias_maps, alias_database

Virtual Domains Alias other domains to local recipients virtual_alias_domains virtual_alias_maps /etc/postfix/virtual

Lookup Tables Used extensively in Postfix configuration E.g. alias_maps, header_checks Referenced as type:table Tables store key/value pairs Types: btree, cdb, cidr, dbm, environ, hash, ldap, mysql, netinfo, nis, nisplus, pcre, pgsql, proxy, regexp, sdbm, static, tcp, unix (passwd, group)

Postgres Lookup Table main.cf: virtual_mailbox_maps = pgsql:/etc/postfix/vm.pgsql.cf /etc/postfix/vm.pgsql.cf: hosts = localhost user = rod password = secret dbname = refercare query = SELECT userid '/' FROM users WHERE userid = '%u' AND 'refercare.org' = '%d' AND password IS NOT NULL

What is Spam? Unsolicited Sent in bulk

Not Protected Speech UNITED STATES SUPREME COURT "We therefore categorically reject the argument that a vendor has a right under the Constitution or otherwise to send unwanted material into the home of another. If this prohibition operates to impede the flow of even valid ideas, the answer is that no one has a right to press even 'good' ideas on an unwilling recipient. That we are often 'captives' outside the sanctuary of the home and subject to objectionable speech and other sound does not mean we must be captives everywhere. See Public Utilities Comm. of District of Columbia v. Pollak, 343 U.S. 451 (1952). The asserted right of a mailer, we repeat, stops at the outer boundary of every person's domain." ROWAN v. U. S. POST OFFICE DEPT., 397 U.S. 728 (1970)

Right to Fight Spam UNITED STATES CONGRESS TITLE II SPAMMING SEC. 201. SENSE OF THE CONGRESS. October 2, 1998 "It is the responsibility of the private sector to adopt, implement, and enforce measures to deter and prevent the improper use of unsolicited commercial electronic mail."

Restriction Stages In the order applied, they are: smtpd_client_restrictions smtpd_helo_restrictions smtpd_sender_restrictions smtpd_recipient_restrictions smtpd_data_restrictions Each stage may contain restrictions evaluating to OK, REJECT or DUNNO.

Client Restrictions check_client_access permit_mynetworks reject_rbl_client reject_unknown_client reject_unauth_pipelining others

HELO Restrictions check_helo_access reject_invalid_hostname reject_non_fqdn_hostname reject_unknown_hostname others

Sender Restrictions check_sender_access reject_non_fqdn_sender reject_rhsbl_sender others

Recipient Restrictions check_recipient_access reject_non_fqdn_recipient reject_unauth_destination others

Data Restrictions reject_unauth_pipelining others

Global Restrictions header_checks body_checks (show example) smtpd_helo_required strict_rfc821_envelopes smtpd_reject_unlisted_sender smtpd_reject_unlisted_recipient before queue content checking others

Content Inspection Before Queueing After Queueing Problems with each

DNS based Blacklists...Client host [69.81.114.241] blocked using bl.spamcop.net; $ nslookup sil 241.114.81.69.bl.spamcop.net... Name: 241.114.81.69.bl.spamcop.net Address: 127.0.0.2 $ nslookup sil 136.54.218.66.bl.spamcop.net... ** server can't find 136.54.218.66.bl.spamcop.net: NXDOMAIN

Spamhaus DNS /etc/bind/named.conf: zone "spamhaus.org" IN { type forward; forwarders { 216.168.28.44; 204.69.234.1; 204.74.101.1; 204.152.184.186; }; };

Other Useful Software Courier IMAP excellent standalone IMAP/POP3 server Postgrey Greylisting agent Amavisd new hosts plug in spamfighting tools ClamAV free virus scanner with automated updates SpamAssassin extremely versatile content inspection TLS(SSL) encryption of SMTP traffic SquirrelMail easy and popular IMAP Web mail client Other clients: KMail, Evolution, Mutt, Thunderbird