From 350edcd321f6bce7f3d849b8d152d3fd68cd9fde Mon Sep 17 00:00:00 2001 From: theonlydoo Date: Sun, 9 Nov 2014 15:29:26 +0100 Subject: [PATCH] debug en cours --- roles/mail/tasks/main.yml | 2 ++ roles/mail/templates/master.cf | 30 ++++++++++++++++++++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/roles/mail/tasks/main.yml b/roles/mail/tasks/main.yml index d0f58cf..c5ee04c 100644 --- a/roles/mail/tasks/main.yml +++ b/roles/mail/tasks/main.yml @@ -104,6 +104,8 @@ - name: adding amavis to clamav group shell: usermod amavis -a -G clamav +- name: Vice versa + shell: usermod clamav -a -G amavis - name: setting right perms to amavis homedir shell: chmod g+rx /var/lib/amavis diff --git a/roles/mail/templates/master.cf b/roles/mail/templates/master.cf index 899cc19..7248b3d 100644 --- a/roles/mail/templates/master.cf +++ b/roles/mail/templates/master.cf @@ -13,16 +13,16 @@ smtp inet n - - - - smtpd #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy -#submission inet n - - - - smtpd +submission inet n - - - - smtpd # -o syslog_name=postfix/submission -# -o smtpd_tls_security_level=encrypt -# -o smtpd_sasl_auth_enable=yes + -o smtpd_tls_security_level=encrypt + -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING -#smtps inet n - - - - smtpd +smtps inet n - - - - smtpd # -o syslog_name=postfix/smtps -# -o smtpd_tls_wrappermode=yes -# -o smtpd_sasl_auth_enable=yes + -o smtpd_tls_wrappermode=yes + -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd @@ -110,6 +110,24 @@ 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} + +dovecot unix - n n - - pipe flags=DRhu user=facteur:facteur argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} + 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 +