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
inetinterfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8
homemailbox = Maildir/
smtpdsasltype = dovecot
smtpdsaslpath = private/auth
smtpdsaslauthenable = yes
smtpdrecipientrestrictions = permitmynetworks, permitsaslauthenticated, rejectunauthdestination, permit
brokensaslauthclients = 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:
disableplaintextauth = no
authmechanisms = plain login
Configure maillocation:
vi /etc/dovecot/conf.d/10-mail.conf
# change / uncomment on this line:
maillocation = maildir:~/Maildir
Configure service auth:
vi /etc/dovecot/conf.d/10-master.conf
# commented on these line:
#unixlistener auth-userdb {
#mode = 0600
#user =
#group =
#}
# change or setup on these line:
# Postfix smtp-auth
unixlistener /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:
pop3uidlformat = %08Xu%08Xv
pop3clientworkarounds = outlook-no-nuls oe-ns-eoh
Restaring Dovecot :
/etc/init.d/dovecot restart
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
inetinterfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8
homemailbox = Maildir/
smtpdsasltype = dovecot
smtpdsaslpath = private/auth
smtpdsaslauthenable = yes
smtpdrecipientrestrictions = permitmynetworks, permitsaslauthenticated, rejectunauthdestination, permit
brokensaslauthclients = 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:
disableplaintextauth = no
authmechanisms = plain login
Configure maillocation:
vi /etc/dovecot/conf.d/10-mail.conf
# change / uncomment on this line:
maillocation = maildir:~/Maildir
Configure service auth:
vi /etc/dovecot/conf.d/10-master.conf
# commented on these line:
#unixlistener auth-userdb {
#mode = 0600
#user =
#group =
#}
# change or setup on these line:
# Postfix smtp-auth
unixlistener /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:
pop3uidlformat = %08Xu%08Xv
pop3clientworkarounds = outlook-no-nuls oe-ns-eoh
Restaring Dovecot :
/etc/init.d/dovecot restart