dovecot
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dovecot [2021/02/11 11:50] – created admin | dovecot [2023/12/13 19:30] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dovecot ====== | ====== Dovecot ====== | ||
- | Wir installieren dovecot nur mit impa und sieve, ich bin der Meinung pop3 braucht niemand mehr heute: | + | Wir installieren dovecot nur mit impa und sieve, ich bin der Meinung pop3 braucht niemand mehr heute. Sieve ist ganz coll, weil man damit schon serverseitig beim Posteingang Mails in Ordner sortieren kann. |
- | < | + | < |
+ | |||
+ | Dovecot ist gar nicht so schwer zu konfigurieren, | ||
+ | |||
+ | < | ||
+ | |||
+ | Diffie Hellman Parameter für Dovecot erstellen. | ||
+ | |||
+ | < | ||
+ | |||
+ | Dann wird / | ||
+ | |||
+ | < | ||
+ | #mail_debug = no | ||
+ | ## | ||
+ | ## Aktivierte Protokolle | ||
+ | ## | ||
+ | |||
+ | protocols = imap lmtp sieve | ||
+ | |||
+ | ## | ||
+ | ## TLS Config | ||
+ | ## Quelle: https:// | ||
+ | ## | ||
+ | ssl = yes | ||
+ | disable_plaintext_auth=no | ||
+ | ssl_cert = </ | ||
+ | ssl_key = </ | ||
+ | ssl_dh = </ | ||
+ | ssl_min_protocol = TLSv1.2 | ||
+ | ssl_cipher_list = ECDHE-ECDSA-AES128-GCM-SHA256: | ||
+ | ssl_prefer_server_ciphers = no | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Dovecot services | ||
+ | ## | ||
+ | |||
+ | service imap-login { | ||
+ | inet_listener imap { | ||
+ | port = 143 | ||
+ | } | ||
+ | } | ||
+ | |||
+ | service managesieve-login { | ||
+ | inet_listener sieve { | ||
+ | port = 4190 | ||
+ | } | ||
+ | } | ||
+ | |||
+ | service lmtp { | ||
+ | | ||
+ | #mode = 0666 | ||
+ | } | ||
+ | user = vmail | ||
+ | } | ||
+ | |||
+ | service auth { | ||
+ | ### Auth socket für LMTP-Dienst | ||
+ | unix_listener auth-userdb { | ||
+ | mode = 0660 | ||
+ | user = vmail | ||
+ | group = vmail | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Protocol settings | ||
+ | ## | ||
+ | |||
+ | protocol imap { | ||
+ | mail_plugins = $mail_plugins quota imap_quota imap_sieve | ||
+ | mail_max_userip_connections = 50 | ||
+ | imap_idle_notify_interval = 29 mins | ||
+ | } | ||
+ | |||
+ | protocol lmtp { | ||
+ | postmaster_address = postmaster@mail.domain.tld | ||
+ | mail_plugins = $mail_plugins sieve notify push_notification | ||
+ | } | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Client authentication | ||
+ | ## | ||
+ | |||
+ | disable_plaintext_auth = yes | ||
+ | auth_mechanisms = plain login | ||
+ | auth_username_format = %Lu | ||
+ | |||
+ | passdb { | ||
+ | driver = sql | ||
+ | args = / | ||
+ | } | ||
+ | |||
+ | userdb { | ||
+ | driver = sql | ||
+ | args = / | ||
+ | } | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Address tagging | ||
+ | ## | ||
+ | recipient_delimiter = + | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Mail location | ||
+ | ## | ||
+ | |||
+ | mail_uid = vmail | ||
+ | mail_gid = vmail | ||
+ | mail_privileged_group = vmail | ||
+ | |||
+ | mail_home = / | ||
+ | mail_location = maildir: | ||
+ | |||
+ | ## | ||
+ | ## Mailbox configuration | ||
+ | ## | ||
+ | |||
+ | namespace inbox { | ||
+ | inbox = yes | ||
+ | |||
+ | mailbox Junk { | ||
+ | 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 | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | ## | ||
+ | ## Mail plugins | ||
+ | ## | ||
+ | |||
+ | plugin { | ||
+ | sieve_plugins = sieve_imapsieve sieve_extprograms | ||
+ | sieve_before = / | ||
+ | sieve = file:/ | ||
+ | |||
+ | ### | ||
+ | ### Spam learning | ||
+ | ### | ||
+ | # From elsewhere to Spam folder | ||
+ | imapsieve_mailbox1_name = Junk | ||
+ | imapsieve_mailbox1_causes = COPY | ||
+ | imapsieve_mailbox1_before = file:/ | ||
+ | |||
+ | # From Spam folder to elsewhere | ||
+ | imapsieve_mailbox2_name = * | ||
+ | imapsieve_mailbox2_from = Junk | ||
+ | imapsieve_mailbox2_causes = COPY | ||
+ | imapsieve_mailbox2_before = file:/ | ||
+ | |||
+ | sieve_pipe_bin_dir = /usr/bin | ||
+ | sieve_global_extensions = +vnd.dovecot.pipe | ||
+ | |||
+ | quota = maildir: | ||
+ | quota_exceeded_message = Benutzer %u hat das Speichervolumen überschritten. / User %u has exhausted allowed storage space. | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | Und dann noch das / | ||
+ | |||
+ | < | ||
+ | driver=mysql | ||
+ | connect = " | ||
+ | |||
+ | default_pass_scheme = BLF-CRYPT | ||
+ | |||
+ | password_query = SELECT username, domain, password FROM credentials WHERE username = ' | ||
+ | |||
+ | user_query = SELECT 2000 AS uid, 2000 as gid, '/ | ||
+ | </ |
dovecot.1613044253.txt.gz · Last modified: 2021/02/11 11:50 by admin