IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    HowTO: Install Postfix & dovecot On CentOS 6

    Dreams Come Ture发表于 2013-10-15 22:42:23
    love 0

    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
    home
    mailbox = Maildir/
    smtpdsasltype = dovecot
    smtpdsaslpath = private/auth
    smtpdsaslauthenable = yes
    smtpd
    recipientrestrictions = 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:

    disable
    plaintextauth = no
    auth
    mechanisms = plain login
    Configure maillocation:


    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:
    #unixlistener 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:
    pop3uidlformat = %08Xu%08Xv
    pop3clientworkarounds = outlook-no-nuls oe-ns-eoh

    Restaring Dovecot :

    /etc/init.d/dovecot restart
    来源: <http://hashroot.blogspot.com/2013/03/howto-install-postfix-dovecot-on-centos.html>


    来自为知笔记(Wiz)




沪ICP备19023445号-2号
友情链接