]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/templates/mail/ssmtp.conf.erb
Fix ssmtp for mail cofniguration
[perso/Immae/Projets/Puppet.git] / modules / profile / templates / mail / ssmtp.conf.erb
index e7a0410533da87aa122a37e209a7118630b6d91e..ea5bc99eb105580986176df52861f32dd2d8c4f1 100644 (file)
@@ -3,7 +3,7 @@
 #
 # The person who gets all mail for userids < 1000
 # Make this empty to disable rewriting.
-root=postmaster
+root=<%= @default_target %>
 # The place where the mail goes. The actual machine name is required
 # no MX records are consulted. Commonly mailhosts are named mail.domain.com
 # The example will fit if you are in domain.com and you mailhub is so named.
@@ -11,4 +11,9 @@ mailhub=<%= @mailhub %>:<%= @mailhub_port %>
 # Where will the mail seem to come from?
 #rewriteDomain=y
 # The full hostname
-hostname=<%= @hostname %>
+hostname=<%= @mail_host %>
+TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
+UseTLS=Yes
+UseSTARTTLS=Yes
+AuthUser=<%= @ldap_cn %>
+AuthPass=<%= @ldap_password %>