forked from stove/dataset
12 lines
790 B
Desktop File
12 lines
790 B
Desktop File
[Service]
|
|
ExecStartPre=/usr/sbin/postmap /etc/postfix/lmtp
|
|
ExecStartPre=/usr/sbin/postmap -F /etc/postfix/sni
|
|
{% for local in general.postfix.postfix_relay_authentifications %}
|
|
{% set local_norm = local|normalize_family %}
|
|
{% set user = general.postfix['local_authentification_' + local_norm]['local_authentification_username_' + local_norm] %}
|
|
{% set password = general.postfix['local_authentification_' + local_norm]['local_authentification_password_' + local_norm] %}
|
|
{% set ip = general.postfix['local_authentification_' + local_norm]['postfix_relay_ip_' + local_norm] %}
|
|
ExecStartPre=-/usr/bin/bash -c "echo {{ password }} | /usr/sbin/saslpasswd2 -u {{ ip }} {{ user }} -p"
|
|
{% endfor %}
|
|
ExecStartPre=/usr/bin/chown postfix: /etc/sasl2/sasldb2
|
|
PIDFile=/srv/postfix/spool/pid/master.pid
|