diff options
-rw-r--r-- | modules/postgrey/manifests/init.pp | 31 | ||||
-rw-r--r-- | modules/postgrey/templates/postgrey.sysconfig | 12 | ||||
-rw-r--r-- | modules/postgrey/templates/whitelist_clients.local | 5 |
3 files changed, 48 insertions, 0 deletions
diff --git a/modules/postgrey/manifests/init.pp b/modules/postgrey/manifests/init.pp new file mode 100644 index 00000000..8d55a77c --- /dev/null +++ b/modules/postgrey/manifests/init.pp @@ -0,0 +1,31 @@ +class postgrey { + package { postgrey: + ensure => installed + } + + service { postgrey: + ensure => running, + path => "/etc/init.d/postgrey", + subscribe => [ Package[postgrey]] + } + + file { "/etc/sysconfig/postgrey": + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("postgrey/postgrey.sysconfig"), + notify => [ Service[postgrey] ], + require => Package[postgrey], + } + + file { "/etc/postfix/postgrey_whitelist_clients.local": + ensure => present, + owner => root, + group => root, + mode => 644, + content => template("postgrey/whitelist_clients.local"), + require => Package[postgrey], + notify => [ Service[postgrey]], + } +} diff --git a/modules/postgrey/templates/postgrey.sysconfig b/modules/postgrey/templates/postgrey.sysconfig new file mode 100644 index 00000000..ec4e6947 --- /dev/null +++ b/modules/postgrey/templates/postgrey.sysconfig @@ -0,0 +1,12 @@ +# change default configuration option here + +# SOCKET=$(postconf -h queue_directory)/extern/postgrey/socket +# OPTIONS="--unix=$SOCKET" +# DBPATH=/var/lib/postgrey +# OPTIONS="$OPTIONS --dbdir=$DBPATH" + +# to use an inet connection instead of a socket +#OPTIONS="--inet=127.0.0.1:10031" + +# enable whitelisting +OPTIONS="$OPTIONS --auto-whitelist-clients" diff --git a/modules/postgrey/templates/whitelist_clients.local b/modules/postgrey/templates/whitelist_clients.local new file mode 100644 index 00000000..9457cc82 --- /dev/null +++ b/modules/postgrey/templates/whitelist_clients.local @@ -0,0 +1,5 @@ +# zarb +ryu.zarb.org +cthulhu.zarb.org + + |