How to install and configure POP server Dovecot in Debian 7 wheezy

Posted by Md. Mahidul Hasan on 12:13 PM with 2 comments
How to install and configure POP server Dovecot in Debian 7 wheezy

Concept:

As a pop packages there are major qpoppor and dovecot. Here, we are going to discuss basic installation and configuration regarding dovecot.

Dovecot installation:

mahidul@mahidul:~# apt-get install dovecot*
mahidul@mahidul:~# vim /etc/dovecot/dovecot.conf

disable_plaintext_auth = no
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
passdb {
  driver = pam
}
protocols = imap pop3
service auth {
  user = root
}
userdb {
  driver = passwd
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}

ssl = no


mahidul@mahidul:~# /etc/init.d/dovecot restart

It may fire an error message to enable auth_debug setting. But it will automitacally resolve by itself after the first user login to dovecot. So, dont enable auth_debug.
Now go to the dovecot configuration and delete all lines and paste the below lines.


Now, create a user to test our pop3 mail with outlook:
root@mahidul:~# adduser testuser

Install telnet:
root@mahidul:~# apt-get install telnet


Check if the dovecot is working properly or not:
root@mahidul:~# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
user testuser
+OK
pass userpassword
+OK Logged in.
quit
+OK Logging out.
Connection closed by foreign host.