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.
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.
Hi,
ReplyDeleteThank you for your page.
Recently I setup a homemade e-mail server and wrote a full detailed tutorial that you can find in
http://cosmolinux.no-ip.org/raconetlinux2/mail.html
using Debian Squeeze, Postfix, Dovecot, SASL, Spamassassin and Squirrel (and a Google account for SMTP relay).
Debian Squeeze is old-stable now but it works like a charm!
I wish it is helpful to someone.
Hi,
ReplyDeleteFirst of all thanks for this nice tutorial.
But recently wheezy updated the packages of dovecot and postfix so far I have noticed. For that reason the configuration parameters is also changed to some extent. The configuration should be look like this:
For Incomming Mail:
------------------
root@mail:~# vim /etc/dovecot/dovecot.conf
# line 26: change ( if not listen IPv6 port )
listen = *
root@mail:~# vim /etc/dovecot/conf.d/10-auth.conf
# line 9: uncomment and change ( allow plain text auth )
disable_plaintext_auth = no
# line 99: add
auth_mechanisms = plain login
root@mail:~# vim /etc/dovecot/conf.d/10-mail.conf
# line 30: uncomment and add
mail_location = maildir:~/Maildir
root@mail:~# vim /etc/dovecot/conf.d/10-master.conf
# line 96-98: uncomment and add
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
root@mail:~# /etc/init.d/dovecot restart