Skip to content

Commit f97f554

Browse files
committed
mail: Remove smtp_header_checks as email subject already contains hostname
1 parent 2638a71 commit f97f554

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

salt/core/mail.sls

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)