Dovecot (IMAP)

Install
$ sudo apt install dovecot-imapd dovecot-pop3d

Config Location
$ doveconf -n

Config
$ ln -s /etc/dovecot/dovecot.conf /var/run/dovecot/dovecot.conf
$ doveconf -nP > /etc/dovecot/dovecot.conf
$ 
1. Install:

$ sudo apt install dovecot-imapd dovecot-pop3d

2. Add protocols
Π’ Ρ„Π°ΠΉΠ»Π΅ /etc/dovecot/dovecot.conf пСрСчислим ΠΏΡ€ΠΎΡ‚ΠΎΠΊΠΎΠ»Ρ‹, с ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΌΠΈ Π±ΡƒΠ΄Π΅ΠΌ Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ:

protocols = pop3 pop3s imap imaps

Π― сдСлал Ρ‡Π΅Ρ€Π΅Π· Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠ΅ Π² Π΄ΠΈΡ€Π΅ΠΊΡ‚ΠΎΡ€ΠΈΡŽ Ρ„Π°ΠΉΠ»ΠΎΠ²:

echo 'protocols = $protocols pop3s' > /usr/share/dovecot/protocols.d/pop3s.protocol
echo 'protocols = $protocols imaps' > /usr/share/dovecot/protocols.d/imaps.protocol

3. Mail Location
Π’ Ρ„Π°ΠΉΠ»Π΅ /etc/dovecot/conf.d/10-mail.conf провСряСм Π·Π½Π°Ρ‡Π΅Π½ΠΈΠ΅ ΠΏΠ°Ρ€Π°ΠΌΠ΅Ρ‚Ρ€Π° mail_location:

mail_location = mbox:~/mail:INBOX=/var/mail/%u

4. Restart Service
sudo /etc/init.d/dovecot restart

or

systemctl enable dovecot
systemctl start dovecot

Last updated