Postfix + Postfixadmin + Dovecot + SASL — CentOS

Dovecot Installation:

  1. Install dovecot (dovecot-mysql not need in centos 5.4)
  2. yum install dovecot.x86_64
    whereis dovecot
    dovecot: /usr/sbin/dovecot /etc/dovecot.conf /usr/libexec/dovecot
    
    vi /etc/dovecot.conf
    

    # Protocols we want to be serving: imap imaps pop3 pop3s
    # If you only want to use dovecot-auth, you can set this to "none". 

    protocols = pop3 pop3s imap imaps

    ##
    ## Mailbox locations and namespaces
    ##
    mail_location = maildir:~/Maildir/

    ##
    ## IMAP specific settings
    ##

    protocol imap {
    imap_client_workarounds = delay-newmail outlook-idle netscape-eoh
    }

    ##
    ## POP3 specific settings
    ##

    protocol pop3 {
    pop3_uidl_format = %08Xu%08Xv
    pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
    }

    ##
    ## Authentication processes
    ##

    # For 64-bit users: Add the line login_process_size = 64 in the file /etc/dovecot.conf.
    auth_username_format = %Lu

    auth default {
    mechanisms = plain login

    passdb sql {
    args = /etc/dovecot-mysql.conf
    }

    userdb static {
    #args = uid=501 gid=501 home=/home/vmail/%d/%n
    args = uid=501 gid=501 home=/home/vmail/%u
    }
    socket listen {
    client {
    path = /var/spool/postfix/private/auth
    mode = 0660
    user = postfix
    group = postfix
    }
    }
    }

    vi /etc/dovecot-mysql.conf
    

    driver = mysql
    connect = host=localhost dbname=postfix user=root password=
    default_pass_scheme = PLAIN
    password_query = SELECT password from mailbox where username = '%u'

    service dovecot restart<code>Stopping Dovecot Imap: [FAILED]
    Starting Dovecot Imap: [  OK  ]
    
    telnet localhost pop3
    
    Trying 127.0.0.1...
    Connected to localhost.localdomain (127.0.0.1).
    Escape character is '^]'.
    +OK Dovecot ready.
    user [email protected]
    +OK
    pass xxxxxxxxxx
    +OK Logged in.
    list 
    
    +OK 1 messages:
    1 520
    quit
    +OK Logging out.
    Connection closed by foreign host.
    

    Links:
    centos + postfix + postfixadmin + advanced
    POSTFIX SASL README

    Страниц: 1 2 3 4

Добавить комментарий