Refactor: gomplate + debian 13 (#1)
All checks were successful
Build Docker images / docker (eumau/postfix, 6) (push) Successful in 13m5s

Co-authored-by: Mauro Torrez <mauro@layer7.mx>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-01-18 03:51:53 +00:00
parent f474d081a0
commit 09416c743c
22 changed files with 143 additions and 239 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# These postfix settings allow for sending all mail through a relay host.
{{ with getenv "RELAYHOST" }}postconf relayhost='{{.}}'{{ end }}
{{ with getenv "SMTP_FALLBACK_RELAY" }}postconf smtp_fallback_relay='{{.}}'{{ end }}
{{ with getenv "SMTP_SASL_AUTH_ENABLE" }}postconf smtp_sasl_auth_enable='{{.}}'{{ end }}
{{ with getenv "SMTP_SASL_PASSWORD_MAPS" }}postconf smtp_sasl_password_maps='{{.}}'{{ end }}
{{ with getenv "SMTP_SASL_SECURITY_OPTIONS" }}postconf smtp_sasl_security_options='{{.}}'{{ end }}
{{ with getenv "SMTP_TLS_CAFILE" }}postconf smtp_tls_CAfile='{{.}}'{{ end }}
{{ with getenv "SMTP_TLS_MANDATORY_PROTOCOLS" }}postconf smtp_tls_mandatory_protocols='{{.}}'{{ end }}
{{ with getenv "SMTP_TLS_NOTE_STARTTLS_OFFER" }}postconf smtp_tls_note_starttls_offer='{{.}}'{{ end }}
{{ with getenv "SMTP_TLS_SECURITY_LEVEL" }}postconf smtp_tls_security_level='{{.}}'{{ end }}
{{ with getenv "SMTP_TLS_SESSION_CACHE_DATABASE" }}postconf smtp_tls_session_cache_database='{{.}}'{{ end }}