install.fairie/home/dot_config/postfix/private_sasl_passwd.tmpl

3 lines
461 B
Cheetah
Raw Normal View History

{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (or (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "SENDGRID_API_KEY")) (env "SENDGRID_API_KEY")) -}}
2024-01-02 17:40:12 -08:00
[{{ .host.smtp.host }}]:{{ .host.smtp.port }} apikey:{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "SENDGRID_API_KEY")) }}{{ includeTemplate "secrets/SENDGRID_API_KEY" | decrypt | trim }}{{ else }}{{ env "SENDGRID_API_KEY" }}{{ end }}
{{- end -}}