[Mageia-sysadm] [273] add config for sympa
root at mageia.org
root at mageia.org
Thu Nov 18 01:43:41 CET 2010
Revision: 273
Author: boklm
Date: 2010-11-18 01:43:41 +0100 (Thu, 18 Nov 2010)
Log Message:
-----------
add config for sympa
Modified Paths:
--------------
puppet/modules/postfix/manifests/init.pp
puppet/modules/postfix/templates/primary_main.cf
puppet/modules/postfix/templates/primary_master.cf
Added Paths:
-----------
puppet/modules/postfix/templates/primary_transport_regexp
Modified: puppet/modules/postfix/manifests/init.pp
===================================================================
--- puppet/modules/postfix/manifests/init.pp 2010-11-18 00:21:40 UTC (rev 272)
+++ puppet/modules/postfix/manifests/init.pp 2010-11-18 00:43:41 UTC (rev 273)
@@ -39,6 +39,10 @@
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 {
Modified: puppet/modules/postfix/templates/primary_main.cf
===================================================================
--- puppet/modules/postfix/templates/primary_main.cf 2010-11-18 00:21:40 UTC (rev 272)
+++ puppet/modules/postfix/templates/primary_main.cf 2010-11-18 00:43:41 UTC (rev 273)
@@ -28,8 +28,12 @@
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
Modified: puppet/modules/postfix/templates/primary_master.cf
===================================================================
--- puppet/modules/postfix/templates/primary_master.cf 2010-11-18 00:21:40 UTC (rev 272)
+++ puppet/modules/postfix/templates/primary_master.cf 2010-11-18 00:43:41 UTC (rev 273)
@@ -116,6 +116,12 @@
#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.
Added: puppet/modules/postfix/templates/primary_transport_regexp
===================================================================
--- puppet/modules/postfix/templates/primary_transport_regexp (rev 0)
+++ puppet/modules/postfix/templates/primary_transport_regexp 2010-11-18 00:43:41 UTC (rev 273)
@@ -0,0 +1,2 @@
+/^.*+owner\@ml\.mageia\.org$/ sympabounce:
+/^.*\@ml\.mageia\.org$/ sympa:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101118/e00a58f2/attachment.html>
More information about the Mageia-sysadm
mailing list