diff --git a/bundles/dovecot/files/dovecot-sql.conf b/bundles/dovecot/files/dovecot-sql.conf deleted file mode 100644 index 8f26825..0000000 --- a/bundles/dovecot/files/dovecot-sql.conf +++ /dev/null @@ -1,17 +0,0 @@ -connect = host=${host} dbname=${name} user=${user} password=${password} -driver = pgsql -default_pass_scheme = ARGON2ID - -user_query = SELECT '/var/vmail/%u' AS home, 'vmail' AS uid, 'vmail' AS gid - -iterate_query = SELECT CONCAT(users.name, '@', domains.name) AS user \ - FROM users \ - LEFT JOIN domains ON users.domain_id = domains.id \ - WHERE redirect IS NULL - -password_query = SELECT CONCAT(users.name, '@', domains.name) AS user, password \ - FROM users \ - LEFT JOIN domains ON users.domain_id = domains.id \ - WHERE redirect IS NULL \ - AND users.name = SPLIT_PART('%u', '@', 1) \ - AND domains.name = SPLIT_PART('%u', '@', 2) diff --git a/bundles/dovecot/files/dovecot.conf b/bundles/dovecot/files/dovecot.conf index 2051535..bfcfb74 100644 --- a/bundles/dovecot/files/dovecot.conf +++ b/bundles/dovecot/files/dovecot.conf @@ -1,13 +1,17 @@ +dovecot_config_version = ${config_version} +dovecot_storage_version = ${storage_version} + protocols = imap lmtp sieve auth_mechanisms = plain login -mail_privileged_group = mail ssl = required -ssl_cert = array( - 'verify_peer' => false, - 'verify_peer_name' => false, - ), -); diff --git a/bundles/roundcube/items.py b/bundles/roundcube/items.py index cbe8487..8a8e1cc 100644 --- a/bundles/roundcube/items.py +++ b/bundles/roundcube/items.py @@ -61,6 +61,7 @@ files['/opt/roundcube/config/config.inc.php'] = { 'des_key': node.metadata.get('roundcube/des_key'), 'database': node.metadata.get('roundcube/database'), 'plugins': node.metadata.get('roundcube/plugins'), + 'imap_host': node.metadata.get('mailserver/hostname'), }, 'needs': [ 'action:chown_roundcube', diff --git a/bundles/systemd-swap/metadata.py b/bundles/systemd-swap/metadata.py index 0a2b735..286fdde 100644 --- a/bundles/systemd-swap/metadata.py +++ b/bundles/systemd-swap/metadata.py @@ -1,5 +1,5 @@ defaults = { - 'systemd-swap': 2*10**9, + 'systemd-swap': 2*(2**30), # 2GiB 'systemd': { 'units': { 'swapfile.swap': { diff --git a/nodes/htz.mails.py b/nodes/htz.mails.py index a00a874..cbbda44 100644 --- a/nodes/htz.mails.py +++ b/nodes/htz.mails.py @@ -2,7 +2,7 @@ 'hostname': '49.12.184.229', 'groups': [ 'backup', - 'debian-12', + 'debian-13', 'hetzner-cloud', 'mailserver', 'monitored', @@ -18,6 +18,7 @@ #'nginx-rtmps', 'wireguard', 'zfs', + 'systemd-swap', ], 'metadata': { 'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae', @@ -34,6 +35,7 @@ 'gateway6': 'fe80::1', } }, + 'systemd-swap': 4*2**30, # clamav alleine braucht 1,3G 'bind': { 'hostname': 'resolver.name', 'acme_zone': 'acme.sublimity.de', @@ -108,6 +110,10 @@ 'elimu-kwanza.de', }, }, + 'dovecot': { + 'config_version': '2.4.1', + 'storage_version': '2.4.1', + }, 'rspamd': { 'hostname': 'rspamd.sublimity.de', }, @@ -162,7 +168,7 @@ }, 'roundcube': { 'product_name': 'Sublimity Mail', - 'version': '1.6.7', + 'version': '1.6.11', 'installer': False, }, 'vm': {