Thank you. dovecot starts. But i have a problem. I can't login as apop. How can I correct that?
my dovecot.conf; ## Dovecot configuration file
base_dir = /var/run/dovecot/ auth_debug = yes protocols = imap imaps pop3 pop3s disable_plaintext_auth = no ssl = yes ssl_cert_file = /etc/ssl/dovecot/cert.pem ssl_key_file = /etc/ssl/dovecot/key.pem login_greeting = Mail Server Ready. mail_location = maildir:/usr/local/virtual/%d/%n first_valid_uid = 125 last_valid_uid = 125 first_valid_gid = 125 last_valid_gid = 125
protocol imap { mail_plugins = quota imap_quota } protocol pop3 { mail_plugins = quota } protocol lda { postmaster_address = postmaster@test.com } auth default { mechanisms = plain login apop cram-md5 passdb sql { args = /usr/local/etc/dovecot-sql.conf } userdb sql { args = /usr/local/etc/dovecot-sql.conf } socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } }
Try removing the socket (/var/spool/postfix/private/auth) before starting dovecot.