I installed dovecot with
yum install dovecot
Added the following configuration options to /etc/dovecot/dovecot.conf
:
protocols = imap pop3 lmtp
disable_plaintext_auth = NO
listen =*
To /etc/dovecot/conf.d/10-mail.conf
added:
mail_location = maildir:~/Maildir
When I type dovecot -n | less
, I get:
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.el6.x86_64 x86_64 CentOS release 6.5 (Final)
disable_plaintext_auth = no
listen = *
mail_location = maildir:~/Maildir
mbox_write_locks = fcntl
passdb {
driver = pam
}
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
driver = passwd
}
I'm able to send email via Outlook and I see it on my mail server, but I can't download email via Outlook.
EDIT1: The log shows the following, when trying to connect:
Aug 1 23:04:49 test dovecot: pop3(user1): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Aug 1 23:04:49 test dovecot: pop3-login: Login: user=<user2>, method=PLAIN, rip=192.168.0.151, lip=192.168.0.150, mpid=31779 Aug 1 23:04:49 test dovecot: pop3(user2): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
The used Local Delivery Agent is sendmail.
EDIT2:
After setting mail_location
in dovecot to maildir:/var/spool/mail/%u
I got the following error message in Thunderbird:
Couln't not open Inbox: Internal error occurred
$MAIL
of user1 is set to /var/spool/mail/user1
EDIT3:
I think i fixed it by setting mail_location
to mbox:~/var/spool/mail/%u:INBOX=/var/spool/mail/%u
. But now it only works for user1
, not user2
.