aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-11-18 00:43:41 +0000
committerNicolas Vigier <boklm@mageia.org>2010-11-18 00:43:41 +0000
commitdb30261f54242456c4e9f0905028e04bb264ad9d (patch)
tree3630da0ca006b0aded96a97ba81e1c46580663f7 /modules
parent5b52bce289ae97edf49587584099a72958c4e336 (diff)
downloadpuppet-db30261f54242456c4e9f0905028e04bb264ad9d.tar
puppet-db30261f54242456c4e9f0905028e04bb264ad9d.tar.gz
puppet-db30261f54242456c4e9f0905028e04bb264ad9d.tar.bz2
puppet-db30261f54242456c4e9f0905028e04bb264ad9d.tar.xz
puppet-db30261f54242456c4e9f0905028e04bb264ad9d.zip
add config for sympa
Diffstat (limited to 'modules')
-rw-r--r--modules/postfix/manifests/init.pp4
-rw-r--r--modules/postfix/templates/primary_main.cf6
-rw-r--r--modules/postfix/templates/primary_master.cf6
-rw-r--r--modules/postfix/templates/primary_transport_regexp2
4 files changed, 17 insertions, 1 deletions
diff --git a/modules/postfix/manifests/init.pp b/modules/postfix/manifests/init.pp
index 2eb1a00f..b3c4fc8b 100644
--- a/modules/postfix/manifests/init.pp
+++ b/modules/postfix/manifests/init.pp
@@ -39,6 +39,10 @@ class postfix {
file { '/etc/postfix/master.cf':
content => template("postfix/primary_master.cf"),
}
+
+ file { '/etc/postfix/transport_regexp':
+ content => template("postfix/primary_transport_regexp"),
+ }
}
class secondary_smtp inherits base {
diff --git a/modules/postfix/templates/primary_main.cf b/modules/postfix/templates/primary_main.cf
index 4281f42d..caef61b8 100644
--- a/modules/postfix/templates/primary_main.cf
+++ b/modules/postfix/templates/primary_main.cf
@@ -28,8 +28,12 @@ inet_protocols = all
mynetworks_style = host
myhostname = <%= fqdn %>
mydomain = <%= domain %>
-mydestination = <%= fqdn %>, ml.<%= domain %>
+mydestination = <%= fqdn %>
myorigin = $mydomain
+relay_domains = $mydestination, ml.<%= domain %>
+transport_maps = regexp:/etc/postfix/transport_regexp
+sympa_destination_recipient_limit = 1
+sympabounce_destination_recipient_limit = 1
#delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
unknown_local_recipient_reject_code = 450
diff --git a/modules/postfix/templates/primary_master.cf b/modules/postfix/templates/primary_master.cf
index 322fe6b0..93ccbf7d 100644
--- a/modules/postfix/templates/primary_master.cf
+++ b/modules/postfix/templates/primary_master.cf
@@ -116,6 +116,12 @@ cyrus-inet unix - - y - - lmtp
#mailman unix - n n - - pipe
# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
# ${nexthop} ${user}
+
+sympa unix - n n - - pipe
+ flags=R user=sympa argv=/usr/sbin/queue ${recipient}
+sympabounce unix - n n - - pipe
+ flags=R user=sympa argv=/usr/sbin/bouncequeue ${user}
+
#
##### START OF CONTENT FILTER CUSTOMIZATIONS #####
# Please see the Postfix FILTER_README for details.
diff --git a/modules/postfix/templates/primary_transport_regexp b/modules/postfix/templates/primary_transport_regexp
new file mode 100644
index 00000000..08dbdc37
--- /dev/null
+++ b/modules/postfix/templates/primary_transport_regexp
@@ -0,0 +1,2 @@
+/^.*+owner\@ml\.mageia\.org$/ sympabounce:
+/^.*\@ml\.mageia\.org$/ sympa: