From 774a340d766a5cf502a27862b7ba720449891900 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Fri, 3 Feb 2023 17:32:07 +0100 Subject: [PATCH] chore(Amavis): only add configuration to Postfix when enabled (#3046) * only add Amavis configuration to Postfix when enabled Since I am running Rspamd nowadays, I noticed there still are ports open that belong to Amavis. This is because the Amavis configuration is a fixed part of Postfix's `master.cf`. I changed that. Now, the Amavis section is added when Amavis really is enabled. I took the chance and added proper indentation to `master.cf`; hence the diff is a bit fuzzy. **But**, only the Amavis part was adjusted, the rest is just styling. --- Dockerfile | 1 + target/amavis/postfix-amavis.cf | 35 +++++++++ target/postfix/master.cf | 104 ++++++++------------------ target/scripts/startup/setup-stack.sh | 1 + 4 files changed, 70 insertions(+), 71 deletions(-) create mode 100644 target/amavis/postfix-amavis.cf diff --git a/Dockerfile b/Dockerfile index 7ad2b0a5..a6158d5b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,6 +112,7 @@ RUN <>/etc/postfix/master.cf sed -i \ "s|^#\$myhostname = \"mail.example.com\";|\$myhostname = \"${HOSTNAME}\";|" \ /etc/amavis/conf.d/05-node_id