### {{ ansible_managed }} # Remove sensible headers /^Mail-System-Version:/ IGNORE /^Mailer:/ IGNORE /^Originating-Client:/ IGNORE /^User-Agent:/ IGNORE /^X-Enigmail-Version:/ IGNORE /^X-Mailer:/ IGNORE /^X-MimeOLE:/ IGNORE /^X-Newsreader:/ IGNORE /^X-Originating-IP:/ IGNORE /^X-Sender:/ IGNORE /^\s*(Received: from)[^\n]*(.*)/ REPLACE $1 [127.0.0.1] (localhost [127.0.0.1]) {% if postfix_header_treatment is defined %} {% for header in postfix_header_treatment %} {{ header }} {% endfor %} {% endif %}