From d4f469fc02d0d845902d7d6a49f4031dc7563ec5 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Wed, 23 Sep 2026 21:48:07 +0200 Subject: [PATCH] Update of dovecot version --- etc/dovecot/dovecot-dict-sql.conf.ext | 12 -- etc/dovecot/dovecot-sql.conf.ext | 10 -- etc/dovecot/dovecot.conf | 159 +++++++++++++++----------- tools/mass_mail/index.php | 1 - 4 files changed, 95 insertions(+), 87 deletions(-) delete mode 100644 etc/dovecot/dovecot-dict-sql.conf.ext delete mode 100644 etc/dovecot/dovecot-sql.conf.ext diff --git a/etc/dovecot/dovecot-dict-sql.conf.ext b/etc/dovecot/dovecot-dict-sql.conf.ext deleted file mode 100644 index fc02ddd..0000000 --- a/etc/dovecot/dovecot-dict-sql.conf.ext +++ /dev/null @@ -1,12 +0,0 @@ -connect = host=localhost dbname=postfix user=postfix password=YOUR_PASSWORD - -map { - pattern = shared/last-login/$user - table = mailbox - value_field = last_login - value_type = uint - - fields { - username = $user - } -} diff --git a/etc/dovecot/dovecot-sql.conf.ext b/etc/dovecot/dovecot-sql.conf.ext deleted file mode 100644 index 3d86993..0000000 --- a/etc/dovecot/dovecot-sql.conf.ext +++ /dev/null @@ -1,10 +0,0 @@ -connect = host=localhost dbname=postfix user=postfix_readonly password=YOUR_PASSWORD -driver = mysql - -# Query to retrieve password. user can be used to retrieve username in other formats also. -password_query = SELECT username AS user, CONCAT(password_hash_type, password) AS password, CONCAT(domain, '/', local_part, '/') AS maildir, 5000 AS userdb_uid, 5000 AS userdb_gid, CONCAT('*:bytes=', quota) AS userdb_quota_rule FROM mailbox WHERE username = CONCAT('%n', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active='1' - -# Query to retrieve user information, note uid matches dovecot.conf AND Postfix virtual_uid_maps parameter. -user_query = SELECT CONCAT(domain, '/', local_part, '/') AS maildir, 5000 AS uid, 5000 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = CONCAT('%n', '@', COALESCE((SELECT target_domain FROM alias_domain WHERE alias_domain = '%d' AND active='1'), '%d')) AND active='1' - -iterate_query = SELECT username AS user FROM mailbox diff --git a/etc/dovecot/dovecot.conf b/etc/dovecot/dovecot.conf index fd41b70..c85723d 100644 --- a/etc/dovecot/dovecot.conf +++ b/etc/dovecot/dovecot.conf @@ -1,83 +1,100 @@ #general settings +dovecot_config_version = 2.4.0 +dovecot_storage_version = 2.4.0 listen = *, :: login_greeting = Server ready. mmap_disable = yes mail_fsync = always mail_nfs_index = yes mail_nfs_storage = yes -info_log_path = /dev/null auth_verbose = no auth_verbose_passwords = no auth_debug = no auth_debug_passwords = no mail_debug = no -verbose_ssl = no -mail_location = maildir:/var/mail/vmail/%d/%n -mail_home = /var/mail/vmail/%d/%n -mail_plugins = mail_crypt quota zlib +mail_driver = maildir +mail_path = /var/mail/vmail/%{user | domain}/%{user | username} +mail_home = /var/mail/vmail/%{user | domain}/%{user | username} +mail_plugins { + mail_compress = yes + mail_crypt = yes +} mailbox_list_index = yes mail_always_cache_fields = date.save imap_hibernate_timeout = 5s -mail_attribute_dict = file:%h/dovecot-attributes - -#plugin setup -plugin { - mail_crypt_save_version = 2 - mail_crypt_global_private_key =