File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ postfix:
3737 smtp_tls_note_starttls_offer: " yes"
3838{%- if " relay_address" in pillar.smtp %}
3939 smtp_generic_maps: " hash:/etc/postfix/generic"
40- smtp_header_checks: " regexp:/etc/postfix/smtp_header_checks"
4140{%- endif %}
4241{%- endif %}
4342 - separator: ' = '
@@ -73,16 +72,6 @@ postfix:
7372 - file: /etc/postfix/generic
7473 - watch_in:
7574 - file: postfix
76-
77- /etc/postfix/smtp_header_checks :
78- file.managed :
79- # Whitespace is optional after "From:". Ignore display name.
80- - contents: >
81- /^From:[[:space:]]*(.*<)?root@{{ pillar.network.host_id }}\.{{ pillar.network.domain| regex_escape }}>?/
82- REPLACE From: root@{{ pillar.network.host_id }} <{{ pillar.smtp.relay_address }}>
83- - mode: 600
84- - watch_in:
85- - service: postfix
8675{% endif %}
8776
8877# Install commands for users to interact with mail.
You can’t perform that action at this time.
0 commit comments