Benutzer-Werkzeuge

Webseiten-Werkzeuge


dovecot_install

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dovecot_install [2023/01/07 15:41] robindovecot_install [2023/01/12 21:09] (aktuell) robin
Zeile 1: Zeile 1:
 +====== Dovecot installieren und konfigurieren ======
 +
 root@dovecot:~# uname -a\\ root@dovecot:~# uname -a\\
 Linux dovecot 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00:00Z) x86_64 GNU/Linux\\ Linux dovecot 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00:00Z) x86_64 GNU/Linux\\
Zeile 5: Zeile 7:
  
 # vi **/etc/dovecot/dovecot-ldap.conf.ext** # vi **/etc/dovecot/dovecot-ldap.conf.ext**
- 
 <code> <code>
 hosts = 2a02:8106:4:1800:cc20:a8ff:fe90:c2a0 hosts = 2a02:8106:4:1800:cc20:a8ff:fe90:c2a0
Zeile 19: Zeile 20:
 default_pass_scheme = SSHA default_pass_scheme = SSHA
 </code> </code>
- +# vi **/etc/dovecot/conf.d/10-auth.conf**
-# vi **/etc/dovecot/conf.d/10-master.conf** +
 <code> <code>
 [...] [...]
 +auth_mechanisms = plain login
 +#!include auth-system.conf.ext
 !include auth-ldap.conf.ext !include auth-ldap.conf.ext
 [...] [...]
 </code> </code>
- 
-# vi **/etc/dovecot/conf.d/10-master.conf** 
- 
-<code> 
-[...] 
-service lmtp { 
-  inet_listener lmtp { 
-    # Avoid making LMTP visible for the entire internet 
-    address = 2a02:8106:4:1800:cc9f:11ff:fe0a:624f 
-    port = 24 
-  } 
-  user = vmail 
-} 
-[...] 
-</code> 
- 
 # vi **/etc/dovecot/conf.d/10-ssl.conf** # vi **/etc/dovecot/conf.d/10-ssl.conf**
- 
 <code> <code>
 [...] [...]
Zeile 50: Zeile 34:
 ssl_cert = </opt/certs/grml.de/fullchain.cer ssl_cert = </opt/certs/grml.de/fullchain.cer
 ssl_key = </opt/certs/grml.de/grml.de.key ssl_key = </opt/certs/grml.de/grml.de.key
 +ssl_dh = </etc/dovecot/dh.pem
 +ssl_min_protocol = TLSv1.2
 +ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
 +ssl_prefer_server_ciphers = no
 [...] [...]
 </code> </code>
 +# openssl dhparam -out /etc/dovecot/dh.pem 4096\\
 # doveadm user robin # doveadm user robin
 <code> <code>
Zeile 61: Zeile 49:
 mail    mbox:~/mail:INBOX=/var/mail/robin mail    mbox:~/mail:INBOX=/var/mail/robin
 </code> </code>
- 
 # doveadm auth test robin P@ssw0rd # doveadm auth test robin P@ssw0rd
 <code> <code>
Zeile 67: Zeile 54:
 extra fields: extra fields:
   user=robin   user=robin
 +</code>
 +# vi **/etc/dovecot/conf.d/10-mail.conf**
 +<code>
 +mail_uid = vmail
 +mail_gid = vmail
 +mail_privileged_group = vmail
 +
 +mail_home = /home/vmail/mailboxes/%n
 +mail_location = maildir:~/mail:LAYOUT=fs
 +
 +namespace inbox {
 +    inbox = yes
 +    mailbox Spam {
 +        auto = subscribe
 +        special_use = \Junk
 +    }
 +    mailbox Trash {
 +        auto = subscribe
 +        special_use = \Trash
 +    }
 +    mailbox Drafts {
 +        auto = subscribe
 +        special_use = \Drafts
 +    }
 +    mailbox Sent {
 +        auto = subscribe
 +        special_use = \Sent
 +    }
 +}
 +</code>
 +# useradd vmail\\
 +# doveadm user robin
 +<code>
 +field   value
 +uid     vmail
 +gid     vmail
 +home    /home/vmail/mailboxes/robin
 +mail    maildir:~/mail:LAYOUT=fs
 +</code>
 +# vi **/etc/dovecot/conf.d/10-master.conf**
 +<code>
 +[...]
 +service lmtp {
 +  inet_listener lmtp {
 +    # Avoid making LMTP visible for the entire internet
 +    address = 2a02:8106:4:1800:cc9f:11ff:fe0a:624f
 +    port = 24
 +  }
 +  user = vmail
 +}
 +[...]
 +service auth {
 +  unix_listener auth-userdb {
 +    #mode = 0666
 +    #user = 
 +    #group = 
 +  }
 +  inet_listener {
 +    port = 234
 +  }
 +}
 +[...]
 +</code>
 +# vi **/etc/dovecot/conf.d/20-managesieve.conf**
 +<code>
 +protocols = $protocols sieve
 +service managesieve-login {
 +  inet_listener sieve {
 +    port = 4190
 +  }
 +}
 +</code>
 +# vi **/etc/dovecot/conf.d/20-imap.conf**
 +<code>
 +protocol imap {
 +  mail_plugins = $mail_plugins imap_sieve
 +}
 +</code>
 +# vi **/etc/dovecot/conf.d/20-lmtp.conf**
 +<code>
 +protocol imap {
 +  mail_plugins = $mail_plugins sieve notify push_notification
 +}
 </code> </code>
dovecot_install.1673102462.txt.gz · Zuletzt geändert: 2023/01/07 15:41 von robin