dovecot_install
Dies ist eine alte Version des Dokuments!
Dovecot installieren und konfigurieren
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
# apt install dovecot-core dovecot-ldap dovecot-managesieved dovecot-sieve dovecot-imapd dovecot-antispam
# vi /etc/dovecot/dovecot-ldap.conf.ext
hosts = 2a02:8106:4:1800:cc20:a8ff:fe90:c2a0 base = ou=user,dc=grml,dc=de ldap_version = 3 user_attrs = =user=%{ldap:uid} user_filter = (&(objectclass=inetOrgPerson)(|(uid=%n)(mail=%u))) pass_attrs = uid=user, userPassword=password pass_filter = (&(objectclass=inetOrgPerson)(uid=%u)) auth_bind = yes iterate_attrs = mail=user iterate_filter = (objectclass=inetOrgPerson) default_pass_scheme = SSHA
# vi /etc/dovecot/conf.d/10-master.conf
[...] !include auth-ldap.conf.ext [...]
# vi /etc/dovecot/conf.d/10-ssl.conf
[...] ssl = required ssl_cert = </opt/certs/grml.de/fullchain.cer ssl_key = </opt/certs/grml.de/grml.de.key [...]
# doveadm user robin
field value uid gid home mail mbox:~/mail:INBOX=/var/mail/robin
# doveadm auth test robin P@ssw0rd
passdb: robin auth succeeded extra fields: user=robin
# vi /etc/dovecot/conf.d/10-mail.conf
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 } }
# useradd vmail
# doveadm user robin
field value uid vmail gid vmail home /home/vmail/mailboxes/robin mail maildir:~/mail:LAYOUT=fs
# vi /etc/dovecot/conf.d/10-master.conf
[...] 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 } [...]
dovecot_install.1673103929.txt.gz · Zuletzt geändert: 2023/01/07 16:05 von robin