summaryrefslogtreecommitdiff
path: root/manifests/tls.pp
blob: 5de224994e00e09ddeda1b6bb80f414f49aa7cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class mail::tls {
  # TLS
  postfix::config { "smtpd_tls_cert_file":      value => '/etc/ssl/certs/cert.crt' }
  postfix::config { "smtpd_tls_key_file":       value => '/etc/ssl/private/cert.pem' }
  postfix::config { "smtpd_tls_security_level": value => 'may' }
  postfix::config { "smtp_tls_security_level":  value => 'may' }
  postfix::config { "smtp_tls_policy_maps":     value => 'hash:/etc/postfix/tls_policy' }

  postfix::hash { "/etc/postfix/tls_policy":
    ensure => present,
    source => "puppet://$server/files/postfix/tls_policy",
  }

  ssl::check { "$domain":
    port => '25',
  }
}