Fixing templates

This commit is contained in:
Mauro Torrez
2026-01-18 00:11:25 -03:00
parent 5581eecbab
commit 6d922d3abe
6 changed files with 78 additions and 72 deletions

View File

@@ -1,15 +1,6 @@
#!/bin/bash
set -e
{{- if getenv "INTERNAL_MAIL_FILTER_CLASSES" }}
postconf internal_mail_filter_classes='{{ getenv "INTERNAL_MAIL_FILTER_CLASSES" }}'
{{- end }}
{{- if getenv "MILTER_DEFAULT_ACTION" }}
postconf milter_default_action='{{ getenv "MILTER_DEFAULT_ACTION" }}'
{{- end }}
{{- if getenv "NON_SMTPD_MILTERS" }}
postconf non_smtpd_milters='{{ getenv "NON_SMTPD_MILTERS" }}'
{{- end }}
{{- if getenv "SMTPD_MILTERS" }}
postconf smtpd_milters='{{ getenv "SMTPD_MILTERS" }}'
{{- end }}
{{ with getenv "INTERNAL_MAIL_FILTER_CLASSES" }}postconf internal_mail_filter_classes='{{.}}'{{ end }}
{{ with getenv "MILTER_DEFAULT_ACTION" }}postconf milter_default_action='{{.}}'{{ end }}
{{ with getenv "NON_SMTPD_MILTERS" }}postconf non_smtpd_milters='{{.}}'{{ end }}
{{ with getenv "SMTPD_MILTERS" }}postconf smtpd_milters='{{.}}'{{ end }}