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