Mainos / Advertisement:

Ero sivun ”Dovecot” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
Rivi 61: Rivi 61:
 
   }
 
   }
 
  }
 
  }
 +
 +
=== 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/TLS support: yes, no, required. <doc/wiki/SSL.txt>
 +
  ssl = yes
 +
 +
  # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
 +
  # dropping root privileges, so keep the key file unreadable by anyone but
 +
  # root. Included doc/mkcert.sh can be used to easily generate self-signed
 +
  # certificate, just make sure to update the domains in dovecot-openssl.cnf
 +
  ssl_cert = </etc/dovecot/dovecot.pem
 +
  ssl_key = </etc/dovecot/private/dovecot.pem

Versio 20. kesäkuuta 2014 kello 09.38

Dovecot on suosittu IMAP ja POP3 palvelinohjelmisto.

Asennus

 aptitude install dovecot-XXX 

XXX = ohjelmiston minkä tarkoitus asentaa


Konfigurointi

Dovecotin konfigurointi hakemisto sijaitsee

 /etc/dovecot

Ensimmäisen kerran on hyvä avata tiedosto ja tallentaa se toisella nimellä, esimerkiksi XXX.conf.save, sillä alkuperäinen konfiguroiti tiedosto on hyvä olla palvelimella varmuuden vuoksi.

Oletuskonfiguraation mukaan käytetään hakemiston /etc/dovecot/conf.d/*.conf konfigurointi tiedotoja. Jos haluaa, konfiguroinnit voi tehdä suoraan /etc/dovecot/dovecot.conf selkeyden vuoksi.

conf.d/10-auth.conf

Tiedoston alalaidassa on linkitetty toisiin konfiguroint tiedostoihin, kirjautumista varten. Käytämme järjestelmän kirjautumisen tietoja.

 #!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

Tiedostossa määritetään sähköpostilaatikon sijainti.

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

conf.d/10-master.conf

Määritetään tunnistavat portit IMAP ja POP3 protokolalle.


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
 }
}

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/TLS support: yes, no, required. <doc/wiki/SSL.txt>
 ssl = yes
 # PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
 # dropping root privileges, so keep the key file unreadable by anyone but
 # root. Included doc/mkcert.sh can be used to easily generate self-signed
 # certificate, just make sure to update the domains in dovecot-openssl.cnf
 ssl_cert = </etc/dovecot/dovecot.pem
 ssl_key = </etc/dovecot/private/dovecot.pem
Mainos / Advertisement: