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