From a1b443f99c4a6596299e8b82399204222f370865 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 4 Aug 2013 19:55:45 -0300 Subject: Adding gpg-mailgate support on squeeze --- templates/master.cf.debian-squeeze.erb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/templates/master.cf.debian-squeeze.erb b/templates/master.cf.debian-squeeze.erb index 9ce3264..b51e907 100644 --- a/templates/master.cf.debian-squeeze.erb +++ b/templates/master.cf.debian-squeeze.erb @@ -115,7 +115,7 @@ amavis unix - - - - 2 smtp -o smtp_send_xforward_command=yes 127.0.0.1:10025 inet n - - - - smtpd - -o content_filter= + -o content_filter=<%- if use_gpg_mailgate == 'yes' %>gpg-mailgate<% end %> -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= @@ -152,7 +152,20 @@ firma unix - n n - - pipe firmarequest unix - n n - - pipe flags=DRhu user=firma argv=/var/lib/firma/firma -e ${user} <% end %> +<%- if use_gpg_mailgate == 'yes' %> +gpg-mailgate unix - n n - - pipe + flags= user=nobody argv=/usr/local/bin/gpg-mailgate.py +127.0.0.1:10028 inet n - n - 10 smtpd + -o content_filter= + -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks + -o smtpd_helo_restrictions= + -o smtpd_client_restrictions= + -o smtpd_sender_restrictions= + -o smtpd_recipient_restrictions=permit_mynetworks,reject + -o mynetworks=127.0.0.0/8 + -o smtpd_authorized_xforward_hosts=127.0.0.0/8 +<%end %> <%- unless mastercf_tail.to_s.empty? then -%> <%= mastercf_tail %> <%- end -%> -- cgit v1.2.3