postfix: Encrypt relay password with age

Switching from Ansible Vault to age.

This value is encrypted with the following public key:

    age1hl8dfgh938092h32zuex7xnfmqer3peg5gl6d892aarsw0s6nptq5tysu9
This commit is contained in:
2024-01-09 17:22:35 -06:00
parent 51dc5a690d
commit fefa8f6a23
3 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
{% if smtp.mode == 'relay' %}
{% if smtp.auth|d('none') != 'none' and smtp.username is defined %}
[{{ smtp.host }}]:{{ smtp.port|d(25) }} {{ smtp.username }}:{{ smtp.password }}
[{{ smtp.host }}]:{{ smtp.port|d(25) }} {{ smtp.username }}:{{ smtp.password | decrypt }}
{% endif %}
{% endif %}