Skip to content
Snippets Groups Projects
Commit 63e85078 authored by Jan Philipp Timme's avatar Jan Philipp Timme
Browse files

Use pillar data for most important configuration part

parent 6fb1de24
No related branches found
No related tags found
No related merge requests found
### THIS FILE IS MANAGED BY SALT STATE `postfix.nullclient` ### THIS FILE IS MANAGED BY SALT STATE `postfix.nullclient`
### YOUR CHANGES WILL BE OVERWRITTEN! ### YOUR CHANGES WILL BE OVERWRITTEN!
{% set pillar = salt['pillar.get']('postfix:nullclient') %}
{% set minion_id = grains['id'] %} {% set minion_id = grains['id'] %}
# Set compatibility level # Set compatibility level
compatibility_level = 2 compatibility_level = 2
...@@ -29,12 +30,12 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache ...@@ -29,12 +30,12 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = {{ minion_id }} myhostname = {{ minion_id }}
# Forward emails for local users to this address for easy collection # 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 = alias_database =
local_recipient_maps = unix:passwd.byname local_recipient_maps = unix:passwd.byname
mydestination = {{ minion_id }}, localhost 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 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION" mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0 mailbox_size_limit = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment