BSDCan2016 - v1.1.24a

BSDCan 2016
The Technical BSD Conference

Aaron Poffenberger
Day Tutorials #2 - 9 June - 2016-06-09
Room DMS 1120
Start time 09:00
Duration 03:00
ID 691
Event type Workshop
Track Tutorial
Language used for presentation English

OpenSMTPD for the Real World

Mail Server Tutorial

This session is aimed at administrators who can't or won't use 3rd-party mail hosting (and who would?) but still need a reliable, spam- and virus-resistant mail server. A basic knowledge of BSD, smtp and dns is expected and required.

The session is a hands-on tutorial covering configuration and use of OpenSMTPD as the core of a spam- and virus-resistant mail server.

After this tutorial you will know how:

  • Configure smtpd as a Mail Transfer Agent (MTA) for single and multi-domain use;
  • Install a certificate and configure smtpd to provide or require TLS;
  • How to accept or reject mail based on criteria like recipient, source, sender and domain;
  • How to tag mail;
  • How to configure Spam Assassin;
  • How to configure ClamAV;
  • How to configure smtpd to work with Spam Assassin, ClamAV and Local-Mail-Transfer-Protocol (LMTP) services (in series or individually);
  • How to configure smtpd to deliver mail to Dovecot;
  • Know how to troubleshoot smtpd issues using smtpd's syntax checker, logs and by sending mail manually via telnet.

We'll also look at integration of OpenSMTPD with other spam-fighting services:

  • Simple pf configuration for spamd;
  • Adding blacklist sources to spamd.conf;
  • Updating spamd with OpenBGPD.

If there's time we'll also cover:

  • Configuring smtpd as a store-and-forward mail server;
  • Configuring smtpd as a backup mail server;
  • Using other features of smtpd to fold, spindle and mutilate unwanted mail.

Though they will be mentioned, DomainKeys and Sender Policy Framework (SPF) configuration will not be discussed in detail.

The instructor will conduct the tutorial on OpenBSD and will attempt to help students who want to use another BSD platform supported by OpenSMTPD.

The session is aimed primarily at single or low-mail-server-count environments but is open to anyone who wants to learn more about running OpenSMTPD for production mail services.

The session is meant to be hands on. To get the most out of it, please bring a laptop with OpenSMTPD, Spam Assassin and ClamAV installed.