aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ssmtp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ssmtp')
-rw-r--r--modules/ssmtp/manifests/init.pp13
-rw-r--r--modules/ssmtp/templates/ssmtp.conf9
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/ssmtp/manifests/init.pp b/modules/ssmtp/manifests/init.pp
new file mode 100644
index 00000000..922a451e
--- /dev/null
+++ b/modules/ssmtp/manifests/init.pp
@@ -0,0 +1,13 @@
+class ssmtp {
+ package { ssmtp:
+ ensure => installed,
+ }
+
+ file { "ssmtp.conf":
+ path => "/etc/ssmtp/ssmtp.conf",
+ owner => root,
+ group => root,
+ mode => 644,
+ 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..b535bc29
--- /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 %>
+