aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorVarac <varacanero@zeromail.org>2009-12-17 16:37:53 +0100
committerVarac <varacanero@zeromail.org>2009-12-17 16:37:53 +0100
commit60544a57c9e2d014061d2c2775654918890a648c (patch)
tree77e9a65cffe8161d77d70ae629afe9a20868058f /templates
parent8a23f6d5b1022d79432734366e131af6f5d3b46f (diff)
downloadpuppet-postfix-60544a57c9e2d014061d2c2775654918890a648c.tar.gz
puppet-postfix-60544a57c9e2d014061d2c2775654918890a648c.tar.bz2
added postfix::amavis, no relayhost needed for postfix::mta
Diffstat (limited to 'templates')
-rw-r--r--templates/master.cf.debian-etch.erb29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/master.cf.debian-etch.erb b/templates/master.cf.debian-etch.erb
index 674682c..aa5f34f 100644
--- a/templates/master.cf.debian-etch.erb
+++ b/templates/master.cf.debian-etch.erb
@@ -75,3 +75,32 @@ mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
+
+# Amavis
+<% if (postfix_amavis == "true" ) -%>
+
+## http://www.freespamfilter.org/FC4.html#_Toc110999176
+
+smtp-amavis unix - - y - 2 smtp
+ -o smtp_data_done_timeout=1200
+ -o smtp_send_xforward_command=yes
+ -o disable_dns_lookups=yes
+
+127.0.0.1:10025 inet n - y - - smtpd
+ -o content_filter=
+ -o local_recipient_maps=
+ -o relay_recipient_maps=
+ -o smtpd_restriction_classes=
+ -o smtpd_helo_restrictions=
+ -o smtpd_sender_restrictions=
+ -o smtpd_recipient_restrictions=permit_mynetworks,reject
+ -o mynetworks=127.0.0.0/8
+ -o strict_rfc821_envelopes=yes
+ -o smtpd_error_sleep_time=0
+ -o smtpd_soft_error_limit=1001
+ -o smtpd_hard_error_limit=1000
+ -o receive_override_options=no_header_body_checks
+<% else -%>
+# Amavis not configured
+<% end -%>
+