Ero sivun ”Dovecot/en” versioiden välillä
(Ak: Uusi sivu: === conf.d/10-auth.conf === In the bottom end of the file you will find links to other configuration files for logging in. We use the system login info. #!include auth-deny.co...) |
(Ak: Uusi sivu: In this file we define the mailbox location. mail_location = mbox:~/mail:INBOX=/var/mail/%u) |
||
Rivi 40: | Rivi 40: | ||
=== conf.d/10-mail.conf === | === conf.d/10-mail.conf === | ||
− | + | In this file we define the mailbox location. | |
− | + | mail_location = mbox:~/mail:INBOX=/var/mail/%u | |
Salli sähköpostien poistaminen Dovecotissa: | Salli sähköpostien poistaminen Dovecotissa: |
Versio 20. heinäkuuta 2015 kello 12.01
Dovecot is a popular IMAP and POP3 server software.
Sisällysluettelo
Installation
apt-get install dovecot-XXX
XXX = the program which you wish to install
For example:
apt-get install dovecot-imapd
apt-get install dovecot-pop3d
Configuration
The Dovecot configuration directory is located in
/etc/dovecot
After installing dovecot it is recommended to open the file and save it with another name, for instance XXX.conf.save, since the original configuration file is good to have as backup and reference.
According to the default configuration we use the configuration files located in /etc/dovecot/conf.d/ . If you want to, you can make the configurations directly into /etc/dovecot/dovecot.conf .
conf.d/10-auth.conf
In the bottom end of the file you will find links to other configuration files for logging in. We use the system login info.
#!include auth-deny.conf.ext #!include auth-master.conf.ext !include auth-system.conf.ext #!include auth-sql.conf.ext #!include auth-ldap.conf.ext #!include auth-passwdfile.conf.ext #!include auth-checkpassword.conf.ext #!include auth-vpopmail.conf.ext #!include auth-static.conf.ext
conf.d/10-mail.conf
In this file we define the mailbox location.
mail_location = mbox:~/mail:INBOX=/var/mail/%u
Salli sähköpostien poistaminen Dovecotissa:
mail_privileged_group = mail
conf.d/10-master.conf
Määritetään tunnistavat portit IMAP ja POP3 protokollalle.
service imap-login { inet_listener imap { port = 143 } inet_listener imaps { # port = 993 # ssl = yes }
service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { # port = 995 # ssl = yes } }
Määritetään palvelimen smtp todennus
service auth { ... # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0666 user = postfix group = postfix }
conf.d/10-ssl.conf
Jos otat käyttöön SSL suojatut yhteydet, määritä tänne SSL sertifikaatti ja ota SSL käyttöön
ssl = yes
ssl_cert = </etc/dovecot/dovecot.pem ssl_key = </etc/dovecot/private/dovecot.pem
Testaus
Voit testata telnet yhteydeää muodostaen yhteyttä palvelimeen, esimerkiksi
telnet localhost 110
telnet localhost 143
Kirjaudu esimerkiksi
gg LOGIN [username] [password]
Siis korvaa [username] ja [password] omilla tunnuksillasi ja salasanaoillasi. Nämä ovat sama kuin Debianin kirjautumisen tunnukset.