]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Adding smtp_tls_policy_maps
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Aug 2010 16:54:23 +0000 (13:54 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Aug 2010 16:54:23 +0000 (13:54 -0300)
manifests/tls.pp

index 435e5d18ddbd5b37f7139fe2572ed611aff8ce68..46083ec9feb45fe2d3febc3f43457de5f14aab8a 100644 (file)
@@ -1,7 +1,12 @@
 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_use_tls":       value => 'yes' }
-  postfix::config { "smtp_use_tls":        value => 'yes' }
+  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_use_tls":        value => 'yes' }
+  postfix::config { "smtp_use_tls":         value => 'yes' }
+  postfix::config { "smtp_tls_policy_maps": value => 'hash:/etc/postfix/tls_policy' }
+
+  postfix::hash { "/etc/postfix/tls_policy":
+    ensure => present,
+  }
 }