From 2ba19fd888a3a6f266ae6ad28f0e28f6c814b023 Mon Sep 17 00:00:00 2001 From: missytake Date: Thu, 12 Mar 2026 21:06:18 +0100 Subject: [PATCH] opendkim: disable DKIM signing on ipv4-only relays --- cmdeploy/src/cmdeploy/postfix/master.cf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmdeploy/src/cmdeploy/postfix/master.cf.j2 b/cmdeploy/src/cmdeploy/postfix/master.cf.j2 index 4914767c..660e976d 100644 --- a/cmdeploy/src/cmdeploy/postfix/master.cf.j2 +++ b/cmdeploy/src/cmdeploy/postfix/master.cf.j2 @@ -80,7 +80,9 @@ filter unix - n n - - lmtp 127.0.0.1:{{ config.postfix_reinject_port }} inet n - n - 100 smtpd -o syslog_name=postfix/reinject -o milter_macro_daemon_name=ORIGINATING +{% if "[" not in config.mail_domain %} -o smtpd_milters=unix:opendkim/opendkim.sock +{% endif %} -o cleanup_service_name=authclean # Local SMTP server for reinjecting incoming filtered mail