Mail Server : Install Dovecot2026/06/08 |
|
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 -y install dovecot-core dovecot-pop3d dovecot-imapd
root@mail:~#
vi /etc/dovecot/dovecot.conf # line 30 : uncomment listen = *, ::
root@mail:~#
vi /etc/dovecot/conf.d/10-auth.conf # line 10 : uncomment auth_allow_cleartext = yes # line 93 : uncomment auth_mechanisms = plain login
root@mail:~#
vi /etc/dovecot/conf.d/10-mail.conf # line 36-39 : comment out and add lines (change to Maildir) #mail_driver = mbox #mail_home = /home/%{user|username} #mail_path = %{home}/mail #mail_inbox_path = /var/mail/%{user} mail_driver = maildir mail_path = ~/Maildir
root@mail:~#
vi /etc/dovecot/conf.d/10-master.conf # line 110-112 : uncomment and add
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}
root@mail:~# systemctl restart dovecot |
| [2] | If UFW is enabled, allow POP/IMAP servies. |
|
root@mail:~# ufw allow pop3 root@mail:~# ufw allow imap2 Rule added Rule added (v6) |
| Sponsored Link |
|
|