class mail::header_checks {
- # Header checks
- postfix::config { "header_checks":
- value => 'regexp:/etc/postfix/header_checks',
- require => File['/etc/postfix/header_checks'],
- }
-
- file { "/etc/postfix/header_checks":
- ensure => present,
- owner => root,
- group => root,
- mode => 0644,
- content => template('mail/postfix/header_checks.erb'),
- }
+ # Place additional header checks here
}
$postfix_use_dovecot_lda = "yes"
$postfix_use_schleuder = "yes"
$postfix_use_sympa = "yes"
+ $postfix_anon_sasl = "yes"
$postfix_mydestination = '$myhostname, localhost.$mydomain, localhost'
$postfix_default_relay_domains = '$mydestination'
+++ /dev/null
-/^Received: from (.* \([-._[:alnum:]]+ \[[.[:digit:]]{7,15}\]\)).*?([[:space:]]+).*\(Authenticated sender: ([^)]+)\).*by (<%= fqdn.gsub(/\./, '\.') %>) \(([^)]+)\) with (E?SMTPS?A?) id ([A-F[:digit:]]+).*/
- REPLACE Received: from [127.0.0.1] (localhost [127.0.0.1])$2(Authenticated sender: $3)${2}with $6 id $7