dovecot_install
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
dovecot_install [2023/01/07 15:31] – robin | dovecot_install [2023/01/12 21:09] (aktuell) – robin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Dovecot installieren und konfigurieren ====== | ||
+ | |||
root@dovecot: | root@dovecot: | ||
Linux dovecot 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00: | Linux dovecot 5.15.83-1-pve #1 SMP PVE 5.15.83-1 (2022-12-15T00: | ||
Zeile 5: | Zeile 7: | ||
# vi **/ | # vi **/ | ||
- | |||
< | < | ||
hosts = 2a02: | hosts = 2a02: | ||
Zeile 19: | Zeile 20: | ||
default_pass_scheme = SSHA | default_pass_scheme = SSHA | ||
</ | </ | ||
- | + | # vi **/ | |
- | # vi **/ | + | |
< | < | ||
[...] | [...] | ||
+ | auth_mechanisms = plain login | ||
+ | #!include auth-system.conf.ext | ||
!include auth-ldap.conf.ext | !include auth-ldap.conf.ext | ||
[...] | [...] | ||
</ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | [...] | ||
+ | ssl = required | ||
+ | ssl_cert = </ | ||
+ | ssl_key = </ | ||
+ | ssl_dh = </ | ||
+ | ssl_min_protocol = TLSv1.2 | ||
+ | ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256: | ||
+ | ssl_prefer_server_ciphers = no | ||
+ | [...] | ||
+ | </ | ||
+ | # openssl dhparam -out / | ||
+ | # doveadm user robin | ||
+ | < | ||
+ | field value | ||
+ | uid | ||
+ | gid | ||
+ | home | ||
+ | mail mbox: | ||
+ | </ | ||
+ | # doveadm auth test robin P@ssw0rd | ||
+ | < | ||
+ | passdb: robin auth succeeded | ||
+ | extra fields: | ||
+ | user=robin | ||
+ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | mail_uid = vmail | ||
+ | mail_gid = vmail | ||
+ | mail_privileged_group = vmail | ||
- | # vi **/etc/dovecot/conf.d/10-master.conf** | + | mail_home = /home/vmail/mailboxes/%n |
+ | mail_location = maildir: | ||
+ | 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 | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | # useradd vmail\\ | ||
+ | # doveadm user robin | ||
< | < | ||
+ | field value | ||
+ | uid vmail | ||
+ | gid vmail | ||
+ | home / | ||
+ | mail maildir: | ||
+ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | [...] | ||
service lmtp { | service lmtp { | ||
- | # unix_listener lmtp { | ||
- | # #mode = 0666 | ||
- | # } | ||
- | |||
- | # Create inet listener only if you can't use the above UNIX socket | ||
inet_listener lmtp { | inet_listener lmtp { | ||
# Avoid making LMTP visible for the entire internet | # Avoid making LMTP visible for the entire internet | ||
Zeile 44: | Zeile 104: | ||
user = vmail | user = vmail | ||
} | } | ||
- | </ | ||
- | |||
- | # vi **/ | ||
- | |||
- | < | ||
[...] | [...] | ||
- | ssl = required | + | service auth { |
- | ssl_cert | + | unix_listener auth-userdb { |
- | ssl_key | + | #mode = 0666 |
+ | # | ||
+ | # | ||
+ | } | ||
+ | inet_listener { | ||
+ | port = 234 | ||
+ | } | ||
+ | } | ||
[...] | [...] | ||
+ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | protocols = $protocols sieve | ||
+ | service managesieve-login { | ||
+ | inet_listener sieve { | ||
+ | port = 4190 | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | protocol imap { | ||
+ | mail_plugins = $mail_plugins imap_sieve | ||
+ | } | ||
+ | </ | ||
+ | # vi **/ | ||
+ | < | ||
+ | protocol imap { | ||
+ | mail_plugins = $mail_plugins sieve notify push_notification | ||
+ | } | ||
</ | </ |
dovecot_install.1673101895.txt.gz · Zuletzt geändert: 2023/01/07 15:31 von robin