Postfix - jonatello/lab-musing GitHub Wiki

This guide is for configuring Postfix, a Message Transport Agent (MTA), to send mail using the Simple Mail Transfer Protocol (SMTP).

A good guide to reference is https://www.freebsddiary.org/postfix.php

DNS

The first thing necessary is to configure DNS properly. Ideally, we have three DNS records to configure:

  • An A record pointing to the public IP
  • MX record(s) telling other mail servers where to deliver messages
  • Reverse record (PTR) pointing the IP to the domain name

Configure

Install Postfix via pkg

pkg install postfix