aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ssmtp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ssmtp')
-rw-r--r--modules/ssmtp/manifests/init.pp7
-rw-r--r--modules/ssmtp/templates/ssmtp.conf9
2 files changed, 16 insertions, 0 deletions
diff --git a/modules/ssmtp/manifests/init.pp b/modules/ssmtp/manifests/init.pp
new file mode 100644
index 00000000..fa4b94d2
--- /dev/null
+++ b/modules/ssmtp/manifests/init.pp
@@ -0,0 +1,7 @@
+class ssmtp {
+ package { 'ssmtp': }
+
+ file { '/etc/ssmtp/ssmtp.conf':
+ content => template('ssmtp/ssmtp.conf')
+ }
+}
diff --git a/modules/ssmtp/templates/ssmtp.conf b/modules/ssmtp/templates/ssmtp.conf
new file mode 100644
index 00000000..d7a9125f
--- /dev/null
+++ b/modules/ssmtp/templates/ssmtp.conf
@@ -0,0 +1,9 @@
+root=mageia-sysadm@<%= @domain %>
+
+mailhub=mx.<%= @domain %>
+
+rewriteDomain=
+
+# The full hostname
+hostname=<%= @fqdn %>
+