Postfix Mail Server Installation Guide

Question: What are the recommended steps to install Postfix mail Server ?

Answer:

For CentOS/Fedora/RHE

To install postfix mail server use following command
$ yum install postfix

To configure postfilx to run on server boot,  use following command
$ chkconfig postfix on

To run postfix mail server service, use following command 
$ service postfix start

To install  dovecot imap/pop3 server, use following commands
$ yum install dovecot

In case you want to use mysql for accounts storage user following command. (Remember mysql should already be installed and configured)
$ yum install dovecot-mysql

To configure dovecot to run on server boot,  use following command
$ chkconfig dovecot on

To run dovecot  service use following command 
$ service dovecot start

In case you want to use SMTP-AUTH, use following command
$ yum install cyrus-sasl 

=================== ============================

For Debian/Ubuntu 

To install postfix mail server, use following command
$ apt-get install postfix

In case you want to use mysql for accounts storage, use following command. (Remember mysql should already be installed and configured)
$ apt-get install postfix-mysql

To configure postfilx to run on server boot,  use following command
$ update-rc.d postfix defaults

To run postfix mail server service, run following command
$ service postfix start

To install  dovecot imap/pop3 server, use following commands
$ apt-get install dovecot-common
$ apt-get install dovecot-imapd
$ apt-get install dovecot-pop3d

To configure dovecot to run on server boot  use following command
$ update-rc.d dovecot defaults

To run dovecot  service use following command
$ service dovecot start

In case you want to use SMTP-AUTH, use following command
$ apt-get install sasl2-bin

Add Feedback