Gomplate + Debian 13

This commit is contained in:
Mauro Torrez
2026-01-17 23:52:34 -03:00
parent f474d081a0
commit 48fff2b6f2
22 changed files with 267 additions and 342 deletions

View File

@@ -0,0 +1,33 @@
#!/bin/bash
set -e
{{- if getenv "RELAYHOST" }}
postconf relayhost='{{ getenv "RELAYHOST" }}'
{{- end }}
{{- if getenv "SMTP_FALLBACK_RELAY" }}
postconf smtp_fallback_relay='{{ getenv "SMTP_FALLBACK_RELAY" }}'
{{- end }}
{{- if getenv "SMTP_SASL_AUTH_ENABLE" }}
postconf smtp_sasl_auth_enable='{{ getenv "SMTP_SASL_AUTH_ENABLE" }}'
{{- end }}
{{- if getenv "SMTP_SASL_PASSWORD_MAPS" }}
postconf smtp_sasl_password_maps='{{ getenv "SMTP_SASL_PASSWORD_MAPS" }}'
{{- end }}
{{- if getenv "SMTP_SASL_SECURITY_OPTIONS" }}
postconf smtp_sasl_security_options='{{ getenv "SMTP_SASL_SECURITY_OPTIONS" }}'
{{- end }}
{{- if getenv "SMTP_TLS_CAFILE" }}
postconf smtp_tls_CAfile='{{ getenv "SMTP_TLS_CAFILE" }}'
{{- end }}
{{- if getenv "SMTP_TLS_MANDATORY_PROTOCOLS" }}
postconf smtp_tls_mandatory_protocols='{{ getenv "SMTP_TLS_MANDATORY_PROTOCOLS" }}'
{{- end }}
{{- if getenv "SMTP_TLS_NOTE_STARTTLS_OFFER" }}
postconf smtp_tls_note_starttls_offer='{{ getenv "SMTP_TLS_NOTE_STARTTLS_OFFER" }}'
{{- end }}
{{- if getenv "SMTP_TLS_SECURITY_LEVEL" }}
postconf smtp_tls_security_level='{{ getenv "SMTP_TLS_SECURITY_LEVEL" }}'
{{- end }}
{{- if getenv "SMTP_TLS_SESSION_CACHE_DATABASE" }}
postconf smtp_tls_session_cache_database='{{ getenv "SMTP_TLS_SESSION_CACHE_DATABASE" }}'
{{- end }}