From 3ecf57eb82ed7fcc41b30695dbe3ba45b9a0a7c6 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 6 Aug 2010 18:31:11 -0300 Subject: Optional amavisd configuration --- templates/master.cf.debian-etch.erb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/master.cf.debian-etch.erb b/templates/master.cf.debian-etch.erb index d711551..df1241c 100644 --- a/templates/master.cf.debian-etch.erb +++ b/templates/master.cf.debian-etch.erb @@ -75,4 +75,22 @@ scalemail-backend unix - n n - 2 pipe mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} +<% if postfix_use_amavisd == 'yes' %> +amavis unix - - - - 2 smtp + -o smtp_data_done_timeout=1200 + -o smtp_send_xforward_command=yes +127.0.0.1:10025 inet n - - - - smtpd + -o content_filter= + -o local_recipient_maps= + -o relay_recipient_maps= + -o smtpd_restriction_classes= + -o smtpd_client_restrictions= + -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 receive_override_options=no_unknown_recipient_checks,no_header_body_checks + -o smtpd_bind_address=127.0.0.1 +<% end %> -- cgit v1.2.3