Up: how-to-articles Previous: nginx+php
Absolutely not. I like postfix its simple enough, I understand the configs, and it has yet to let me down. So I will need this on all the servers to send mail and logs for various services. FreeBSD ships with sendmail so we will need to stop that as well.
cd /usr/ports/mail/postfix-current make install cleanMake sure we select the options we need here like SSL and SASL.
Then we need to stop sendmail
Now we need to make some changes to /etc/rc.conf so that the system uses postfix instead of sendmail.
echo 'sendmail_enable="NONE"' >> /etc/rc.conf echo 'postfix_enable="YES"' >> /etc/rc.conf
And then some other configs to let the system know we are not using sendmail.
echo "NO_SENDMAIL=true" >> /etc/make.conf echo 'daily_clean_hoststat_enable="NO"' >> /etc/periodic.conf echo 'daily_status_mail_rejects_enable="NO"' >> /etc/periodic.conf echo 'daily_status_include_submit_mailq="NO"' >> /etc/periodic.conf echo 'daily_submit_queuerun="NO"' >> /etc/periodic.conf
Finally we can start postfix
Now we can test the mailer by sending a test email.
mail -s testing email@example.com .
firstname.lastname@example.org - LaTeX2HTML Version 2008 (1.71) - Sat Jan 18 14:48:31 EST 2014