ScriptInstallation.In

Home
Services
PHP Script Installation
CGI Script Installation
Linux Tips
FreeBSD Tips
Windows Tips
Server Tips
Scripts Directory
HOW-TO
Contact Us


Server Administration > Mail Server > Postfix > Installation

Install Postfix on FreeBSD

Installing Postfix mail server on FreeBSD server from ports is easy. Just type two commands, you will be ready to go

# cd /usr/ports/mail/postfix-current
# make install clean

Installation ask you few questions, just enter y for yes. After installation is finished, you need to disable sendmail and enable postfix, this can be done by modifying /etc/rc.conf

# vi /etc/rc.conf

Add following line to end of /etc/rc.conf file

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
postfix_enable="YES"

Now reboot the server, on booting up, you will be using postfix as your mail server.

# /usr/local/etc/rc.d/postfix.sh start
# /usr/local/etc/rc.d/postfix.sh stop

You can also set a symlink from /etc/postfix to /usr/local/etc/postfix

# cd /etc
# ln -s /usr/local/etc/postfix


Copyright © ScriptInstallation.in