HowTO: Install Postfix & dovecot On CentOS 6
yum install postfix dovecot
chkconfig postfix on
chkconfig dovecot on
Configure main.cf :
vi /etc/postfix/main.cf
# change or add on these line:
myhostname = mail.fileregion.com
mydomain = fileregion.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8
home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, permit
broken_sasl_auth_clients = yes
Restarting postfix:
/etc/init.d/postfix restart
Configure Dovecot on Linux CentOS 6
Configure dovecot.conf:
vi /etc/dovecot/dovecot.conf
# uncomment on this line:
protocols = imap pop3
listen = *
Config mail auth mehanism:
vi /etc/dovecot/conf.d/10-auth.conf
# change on these line:
disable_plaintext_auth = no
auth_mechanisms = plain login
Configure mail_location:
vi /etc/dovecot/conf.d/10-mail.conf
# change / uncomment on this line:
mail_location = maildir:~/Maildir
Configure service auth:
vi /etc/dovecot/conf.d/10-master.conf
# commented on these line:
#unix_listener auth-userdb {
#mode = 0600
#user =
#group =
#}
# change or setup on these line:
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
Configure POP3:
vi /etc/dovecot/conf.d/20-pop3.conf
# uncomment on these line:
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
Restaring Dovecot :
/etc/init.d/dovecot restart