diff --git a/postfix/nullclient/etc/postfix/main.cf b/postfix/nullclient/etc/postfix/main.cf index 041d5084ba3f4c902e5a0326646f4fb25b870e75..84cbb1e326708ce3c8fdf58abe3c71736c5662b8 100644 --- a/postfix/nullclient/etc/postfix/main.cf +++ b/postfix/nullclient/etc/postfix/main.cf @@ -1,5 +1,6 @@ ### THIS FILE IS MANAGED BY SALT STATE `postfix.nullclient` ### YOUR CHANGES WILL BE OVERWRITTEN! +{% set pillar = salt['pillar.get']('postfix:nullclient') %} {% set minion_id = grains['id'] %} # Set compatibility level compatibility_level = 2 @@ -29,12 +30,12 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache myhostname = {{ minion_id }} # Forward emails for local users to this address for easy collection -alias_maps = static:web-rootmails@hs-hannover.de +alias_maps = static:{{ pillar['rootmail-destination'] }} alias_database = local_recipient_maps = unix:passwd.byname mydestination = {{ minion_id }}, localhost -relayhost = smtp.hs-hannover.de +relayhost = {{ pillar['relayhost'] }} mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0