From 344e0959cbb9da9334080ac0ab07d08fe4716349 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Wed, 24 Nov 2010 20:31:07 +0000 Subject: add a ssmtp module, to replace postfix as it would be too complex to manage for both simple relay and full fledged server --- modules/ssmtp/manifests/init.pp | 13 +++++++++++++ modules/ssmtp/templates/ssmtp.conf | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 modules/ssmtp/manifests/init.pp create mode 100644 modules/ssmtp/templates/ssmtp.conf 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 %> + -- cgit v1.2.1