aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/postfix/templates/primary_transport_regexp3
-rw-r--r--modules/postfix/templates/secondary_main.cf11
2 files changed, 13 insertions, 1 deletions
diff --git a/modules/postfix/templates/primary_transport_regexp b/modules/postfix/templates/primary_transport_regexp
index c1ca36cc..5d005c7b 100644
--- a/modules/postfix/templates/primary_transport_regexp
+++ b/modules/postfix/templates/primary_transport_regexp
@@ -1,5 +1,8 @@
<%
ml_domain = 'ml\.' + domain.gsub('.','\.')
%>
+<%- if classes.include?('sympa') -%>
/^.*+owner\@<%= ml_domain %>$/ sympabounce:
/^.*\@<%= ml_domain %>$/ sympa:
+<%- end -%>
+
diff --git a/modules/postfix/templates/secondary_main.cf b/modules/postfix/templates/secondary_main.cf
index ae27ac00..f5f83eed 100644
--- a/modules/postfix/templates/secondary_main.cf
+++ b/modules/postfix/templates/secondary_main.cf
@@ -30,7 +30,16 @@ myhostname = <%= fqdn %>
mydomain = <%= domain %>
mydestination = <%= fqdn %>
myorigin = $mydomain
-relay_domains = $mydestination, ml.<%= domain %>, <%= domain %>
+relay_domains = $mydestination,
+ ml.<%= domain %>,
+<%- if classes.include?('primary_smtp') -%>
+ <%= domain %>
+<%- end -%>
+transport_maps = regexp:/etc/postfix/transport_regexp
+<% if classes.include?('sympa') %>
+sympa_destination_recipient_limit = 1
+sympabounce_destination_recipient_limit = 1
+<% end %>
#delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
unknown_local_recipient_reject_code = 450