From 96b8de2da2b39ed17852c09728ba84cd17a371fd Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Sun, 7 Aug 2022 04:14:05 -0300 Subject: [PATCH] add smtp fallback relay option --- confd/conf.d/setup_relayhost.toml | 1 + confd/templates/setup_relayhost.tmpl | 1 + 2 files changed, 2 insertions(+) diff --git a/confd/conf.d/setup_relayhost.toml b/confd/conf.d/setup_relayhost.toml index ae97d06..1aeb64a 100644 --- a/confd/conf.d/setup_relayhost.toml +++ b/confd/conf.d/setup_relayhost.toml @@ -4,6 +4,7 @@ dest = "/start.d/setup_relayhost" mode = "0755" keys = [ "/relayhost", +"/smtp/fallback/relay", "/smtp/sasl/auth/enable", "/smtp/sasl/password/maps", "/smtp/sasl/security/options", diff --git a/confd/templates/setup_relayhost.tmpl b/confd/templates/setup_relayhost.tmpl index df89e11..b3a025b 100644 --- a/confd/templates/setup_relayhost.tmpl +++ b/confd/templates/setup_relayhost.tmpl @@ -3,6 +3,7 @@ # These postfix settings allow for sending all mail through a relay host. {{ with getv "/relayhost" }}postconf relayhost='{{.}}'{{ end }} +{{ with getv "/smtp/fallback/relay" }}postconf smtp_fallback_relay='{{.}}'{{ end }} {{ with getv "/smtp/sasl/auth/enable" }}postconf smtp_sasl_auth_enable='{{.}}'{{ end }} {{ with getv "/smtp/sasl/password/maps" }}postconf smtp_sasl_password_maps='{{.}}'{{ end }} {{ with getv "/smtp/sasl/security/options" }}postconf smtp_sasl_security_options='{{.}}'{{ end }}