Friday, September 05, 2008

Using Postfix instead of Sendmail in Freebsd

Freebsd distros, usually installs sendmail as its mail server. To replace Sendmail with Postfix, here are the steps.

First, make sure that you have an active internet connections and you have setup your dns properly and do the following:


# cd /usr/ports/mail/postfix-current
# make install clean
During installation, just say Y to all the questions.

After the installation, we want to run postfix and not sendmail during startup.
# vi /etc/rc.conf
Add the following lines:
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"

Reboot and your good to go!

Got this from ScriptInstallation.In

No comments: