You are here: Home Tech Set Up a Postfix Submission Service on FreeBSD

Set Up a Postfix Submission Service on FreeBSD

by Reed O'Brien last modified Nov 16, 2008 09:49 PM
Instructions to set up a Postfix submission service on FreeBSD

I already have sasl setup so this assumes that to be true.

In main.cf add:

## For the submission port
submission_recipient_restrictions = permit_sasl_authenticated, reject

and in master.cf:

submission inet n       -       n       -       -   submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_enforce_tls=yes
  -o smtpd_sasl_type=dovecot
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_recipient_resrictions=$submission_recipient_restrictions

Then make a link to smtpd to submission so smtpd is called but submission is logged:

# ln -s /usr/local/libexec/postfix/smtpd /usr/local/libexec/postfix/submission

And restart:

# /usr/local/etc/rc.d/postfix restart

Don't forget to allow the port in your firewall. For me this is pf:

submission_services = "{ 587 }"
pass in on $nic inet proto tcp from any to $nic \
    port $submission_services

And reload the pf rules:

pfctl -f /etc/pf.conf
Share this: