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:37] – 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 **/ | ||
< | < | ||
[...] | [...] | ||
Zeile 39: | Zeile 103: | ||
} | } | ||
user = vmail | user = vmail | ||
+ | } | ||
+ | [...] | ||
+ | service auth { | ||
+ | unix_listener auth-userdb { | ||
+ | #mode = 0666 | ||
+ | #user = | ||
+ | #group = | ||
+ | } | ||
+ | inet_listener { | ||
+ | port = 234 | ||
+ | } | ||
} | } | ||
[...] | [...] | ||
</ | </ | ||
- | + | # vi **/ | |
- | # vi **/ | + | |
< | < | ||
- | [...] | + | protocols |
- | ssl = required | + | service managesieve-login { |
- | ssl_cert | + | inet_listener sieve { |
- | ssl_key | + | port = 4190 |
- | [...] | + | } |
+ | } | ||
+ | </code> | ||
+ | # vi **/etc/dovecot/ | ||
+ | < | ||
+ | protocol imap { | ||
+ | mail_plugins | ||
+ | } | ||
+ | </code> | ||
+ | # vi **/etc/dovecot/conf.d/20-lmtp.conf** | ||
+ | < | ||
+ | protocol imap { | ||
+ | mail_plugins = $mail_plugins sieve notify push_notification | ||
+ | } | ||
</ | </ |
dovecot_install.1673102265.txt.gz · Zuletzt geändert: 2023/01/07 15:37 von robin