From 4a6650cb9c4d570f55e5b1024a1d7a9b2306fc10 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 22 Jun 2025 20:10:03 +0200 Subject: [PATCH] wip --- bundles/mailman/files/mailman-web.py | 2 ++ bundles/mailman/files/mailman.cfg | 6 ++++++ bundles/mailman/files/postfix.cf | 10 +++------- nodes/mseibert.mailman.py | 4 ++++ 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/bundles/mailman/files/mailman-web.py b/bundles/mailman/files/mailman-web.py index cae7697..baa8d73 100644 --- a/bundles/mailman/files/mailman-web.py +++ b/bundles/mailman/files/mailman-web.py @@ -1,3 +1,5 @@ +ACCOUNT_EMAIL_VERIFICATION='none' + # This file is imported by the Mailman Suite. It is used to override # the default settings from /usr/share/mailman3-web/settings.py. diff --git a/bundles/mailman/files/mailman.cfg b/bundles/mailman/files/mailman.cfg index d294da4..1b27fd2 100644 --- a/bundles/mailman/files/mailman.cfg +++ b/bundles/mailman/files/mailman.cfg @@ -250,6 +250,12 @@ outgoing: mailman.mta.deliver.deliver # How to connect to the outgoing MTA. If smtp_user and smtp_pass is given, # then Mailman will attempt to log into the MTA when making a new connection. +# smtp_host: smtp.ionos.de +# smtp_port: 587 +# smtp_user: ${smtp_user} +# smtp_pass: ${smtp_password} +# smtp_secure_mode: starttls + smtp_host: localhost smtp_port: 25 smtp_user: diff --git a/bundles/mailman/files/postfix.cf b/bundles/mailman/files/postfix.cf index 4060ed2..1521d9f 100644 --- a/bundles/mailman/files/postfix.cf +++ b/bundles/mailman/files/postfix.cf @@ -1,6 +1,5 @@ # See /usr/share/postfix/main.cf.dist for a commented, more complete version - # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. @@ -21,8 +20,6 @@ readme_directory = no # fresh installs. compatibility_level = 3.6 - - # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key @@ -32,7 +29,6 @@ smtp_tls_CApath=/etc/ssl/certs smtp_tls_security_level=may smtp_tls_session_cache_database = <%text>btree:${data_directory}/smtp_scache - smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = ${hostname} alias_maps = hash:/etc/aliases @@ -49,8 +45,8 @@ unknown_local_recipient_reject_code = 550 owner_request_special = no transport_maps = - hash:/opt/mailman/mm/var/data/postfix_lmtp + hash:/var/lib/mailman3/data/postfix_lmtp local_recipient_maps = - hash:/opt/mailman/mm/var/data/postfix_lmtp + hash:/var/lib/mailman3/data/postfix_lmtp relay_domains = - hash:/opt/mailman/mm/var/data/postfix_domains + hash:/var/lib/mailman3/data/postfix_domains diff --git a/nodes/mseibert.mailman.py b/nodes/mseibert.mailman.py index 06c53ab..557be78 100644 --- a/nodes/mseibert.mailman.py +++ b/nodes/mseibert.mailman.py @@ -35,6 +35,10 @@ 'mailman': { 'hostname': 'mailman.ckn.li', 'site_owner_email': 'martin.seibert@seibert.group', + 'smtp_host': 'smtp.ionos.de', + 'smtp_port': 465, + 'smtp_user': 'foerderkreis@oranienschule.de', + 'smtp_password': '!decrypt:encrypt$gAAAAABoWDusH3XY4ONh8MnmfBbyHW477ipjSycb3TiDGXxO5eujum80zXjNrOblswCGRTHsW9UasM_dXeeGBsa7KcK4s6AK_eynXCWeLCtXfrUSE_oEd7c=' }, 'overwrite_nameservers': [ '8.8.8.8',