Table of ContentsInstallation
Protecting daemon accounts
- Hostname is set to internal interface name: coffin.lan
- Will be serving mail for @example.com
- MX record for example.com is set to mx.example.com which is one of the names of external interface
- Mail should be delivered to mailboxes in Maildir format
Backup original mailer.conf. In my case it was sendmail.
# cd /etc/mail # cp mailer.conf mailer.conf.sendmail
# cd /usr/ports/mail/postfix # make install clean # rehash
Options for postfix:
- Check SASL2
- Check TLS
First stop sendmail:
# service sendmail stop
Add to rc.conf:
# Disable Sendmail sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # Enable Postfix postfix_enable="YES"
Disable Sendmail-specific periodic jobs, add to /etc/periodic.conf:
daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO"
# service postfix start
Postfix will create Maildir structure by itself when a user receives mail.