Ubuntu 14.04
Sponsored Link

Install/Configure Dovecot
2014/05/03
 
Install Dovecot to configure POP/IMAP server. POP uses 110/TCP, IMAP uses 143/TCP.
[1] This example shows to configure to provide SASL function to Postfix.
root@mail:~#
apt-get -y install dovecot-core dovecot-pop3d dovecot-imapd
# select "No", configure later if it needs

 +-----------------------+ Configuring dovecot-core +------------------------+
 |                                                                           |
 | An SSL certificate is needed in order to use IMAP or POP3 over SSL/TLS.   |
 | No such certificate was found.                                            |
 |                                                                           |
 | Please choose whether you want to create one now. This will then be a     |
 | self-signed certificate.                                                  |
 |                                                                           |
 | If you choose not to create a certificate, please adapt Dovecot's         |
 | configuration file (/etc/dovecot/conf.d/10-ssl.conf).                     |
 |                                                                           |
 | Create a self-signed SSL certificate?                                     |
 |                                                                           |
 |                    <Yes>                       <No>                       |
 |                                                                           |
 +---------------------------------------------------------------------------+

root@mail:~#
vi /etc/dovecot/dovecot.conf
# line 30: change ( if not listen IPv6 port )

listen =
*
root@mail:~#
vi /etc/dovecot/conf.d/10-auth.conf
# line 10: uncomment and change ( allow plain text auth )

disable_plaintext_auth =
no
# line 100: add

auth_mechanisms = plain
login
root@mail:~#
vi /etc/dovecot/conf.d/10-mail.conf
# line 30: change to Maildir

mail_location =
maildir:~/Maildir
root@mail:~#
vi /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:~#
vi /etc/dovecot/conf.d/10-ssl.conf
# line 6: uncomment and change (no SSL)

ssl =
no
# line 12,13: comment out

#
ssl_cert = </etc/dovecot/dovecot.pem
#
ssl_key = </etc/dovecot/private/dovecot.pem
root@mail:~#
initctl start dovecot

dovecot start/running, process 1337
Matched Content
 
Tweet