Revision
458
Author
misc
Date
2010-11-24 21:31:07 +0100 (Wed, 24 Nov 2010)

Log Message

add a ssmtp module, to replace postfix as it would be too complex to manage for both simple relay and full fledged server

Added Paths

Added: puppet/modules/ssmtp/manifests/init.pp
===================================================================
--- puppet/modules/ssmtp/manifests/init.pp	                        (rev 0)
+++ puppet/modules/ssmtp/manifests/init.pp	2010-11-24 20:31:07 UTC (rev 458)
@@ -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")
+    }
+}

Added: puppet/modules/ssmtp/templates/ssmtp.conf
===================================================================
--- puppet/modules/ssmtp/templates/ssmtp.conf	                        (rev 0)
+++ puppet/modules/ssmtp/templates/ssmtp.conf	2010-11-24 20:31:07 UTC (rev 458)
@@ -0,0 +1,9 @@
+root=mageia-sysadm@<%= domain %>
+
+mailhub=mx.<%= domain %>
+
+rewriteDomain=
+
+# The full hostname
+hostname=<%= fqdn %>
+