[Mageia-sysadm] [458] add a ssmtp module, to replace postfix as it would be too complex to manage for both simple relay and full fledged server

root at mageia.org root at mageia.org
Wed Nov 24 21:31:08 CET 2010


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:
-----------
    puppet/modules/ssmtp/
    puppet/modules/ssmtp/manifests/
    puppet/modules/ssmtp/manifests/init.pp
    puppet/modules/ssmtp/templates/
    puppet/modules/ssmtp/templates/ssmtp.conf

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 %>
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101124/656a8f5d/attachment.html>


More information about the Mageia-sysadm mailing list