initial requirements for running postfix on freebsd

/etc/rc.d/sendmail stop

pkg install postfix
ln -s /usr/local/etc/rc.d/postfix /etc/rc.d/postfix

sysrc postfix_enable="YES"
sysrc sendmail_enable="NONE"

mv -i /etc/mail/mailer.conf /etc/mail/mailer.conf.dist
cp -pi /usr/local/share/postfix/mailer.conf.postfix /etc/mail/mailer.conf

vi /etc/periodic.conf

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

/etc/rc.d/postfix start

you can now proceed with postfix setup, where you will also need

pkg install procmail
pkg install dehydrated
pkg install postfix-policyd-spf-perl

ln -s /etc/mail /usr/local/etc/mail
pkg install opendkim
/usr/local/sbin/unbound-anchor
ls -lhF /usr/local/etc/unbound/root.key
echo milteropendkim_enable="YES" >> /etc/rc.conf
ln -s /usr/local/etc/rc.d/milter-opendkim /etc/rc.d/milter-opendkim

few more things

pkg install alpine

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun