Skip to main content

Posts

Setup mail server on Centos with postfix, dovecot, cyrus

POSTFIX Postfix is a free open source mail transfer agent (MTA), a computer program for the routing and delivery of email. It is intended as a fast, easy-to-administer, and secure alternative to the widely-used Sendmail MTA which is installed by default with CentOS. First we need to remove the Sendmail MTA yum remove sendmail Install Postfix yum install postfix Installation Of Required Packages for SMTP AUTH yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain Postfix configuration files are stored in /etc/postfix. The two main postfix configuration files are master.cf and main.cf. First we are going to make some additions or changes to the main.cf configuration file as below #NOTE:  Make sure you uncomment inet_interfaces = localhost home_mailbox = Maildir/ mailbox_command = mynetworks = 127.0.0.0/8,221.132.35.94 inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain relay_domains = l

How to set up a mail server on a GNU / Linux system (part 2)

Part 1:  http://asteriskvoipsystem.org/how-to-set-up-a-mail-server-on-a-gnu-linux-system/ email server Now let’s configure Courier. I like to provide both IMAP and POP3 support, although personally I only use IMAP. In addition, we’ll be provide SSL support for securing authentication requests. mv /etc/courier/authdaemonrc{,.default} vi /etc/courier/authdaemonrc Copy/paste the following (no changes required): authmodulelist="authmysql" authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe" daemons=5 authdaemonvar=/var/run/courier/authdaemon DEBUG_LOGIN=0 DEFAULTOPTIONS="" LOGGEROPTS="" mv /etc/courier/authmysqlrc{,.default} vi /etc/courier/authmysqlrc Copy/paste the following (change  mailuserpassword ): MYSQL_SERVER localhost MYSQL_USERNAME mail MYSQL_PASSWORD mailuserpassword MYSQL_PORT 0 MYSQL_DATABASE mail MYSQL_USER_TABLE user MYSQL_CRYPT_PWFIELD password MYSQL_UID_FIELD 5000 MYSQL_GID_FIELD 5000 MYSQL_LOGIN_

How to set up a mail server on a GNU / Linux system (part 2)

Part 1:  http://asteriskvoipsystem.org/how-to-set-up-a-mail-server-on-a-gnu-linux-system/ email server Now let’s configure Courier. I like to provide both IMAP and POP3 support, although personally I only use IMAP. In addition, we’ll be provide SSL support for securing authentication requests. mv /etc/courier/authdaemonrc{,.default} vi /etc/courier/authdaemonrc Copy/paste the following (no changes required): authmodulelist="authmysql" authmodulelistorig="authuserdb authpam authpgsql authldap authmysql authcustom authpipe" daemons=5 authdaemonvar=/var/run/courier/authdaemon DEBUG_LOGIN=0 DEFAULTOPTIONS="" LOGGEROPTS="" mv /etc/courier/authmysqlrc{,.default} vi /etc/courier/authmysqlrc Copy/paste the following (change  mailuserpassword ): MYSQL_SERVER localhost MYSQL_USERNAME mail MYSQL_PASSWORD mailuserpassword MYSQL_PORT 0 MYSQL_DATABASE mail MYSQL_USER_TABLE user MYSQL_CRYPT_PWFIELD password MYSQL_UID_FIELD 5000 M