From b9a3ef486ebcde18a5ade37865ff8f397185d24f Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Sun, 24 Jul 2016 05:30:59 -0400 Subject: [PATCH] Fixed #3979 Mailbox users unable to save autoresponders --- install/tpl/amavisd_user_config.master | 38 +++++++++++++++++++++++++++++++++++--- 1 files changed, 35 insertions(+), 3 deletions(-) diff --git a/install/tpl/amavisd_user_config.master b/install/tpl/amavisd_user_config.master index d0a7a5e..8663f07 100644 --- a/install/tpl/amavisd_user_config.master +++ b/install/tpl/amavisd_user_config.master @@ -37,7 +37,7 @@ $sql_select_white_black_list = 'SELECT wb FROM spamfilter_wblist'. - ' WHERE (spamfilter_wblist.rid=?) AND (spamfilter_wblist.email IN (%k))' . + ' WHERE (spamfilter_wblist.rid=?) AND (spamfilter_wblist.email IN (%k)) AND (spamfilter_wblist.active="y")' . ' ORDER BY spamfilter_wblist.priority DESC'; # @@ -47,7 +47,14 @@ $final_virus_destiny = D_BOUNCE; $final_spam_destiny = D_DISCARD; $final_banned_destiny = D_BOUNCE; -$final_bad_header_destiny = D_DISCARD; +$final_bad_header_destiny = D_PASS; + +# Default settings, we st this very high to not filter aut emails accidently +$sa_spam_subject_tag = '***SPAM*** '; +$sa_tag_level_deflt = 20.0; # add spam info headers if at, or above that level +$sa_tag2_level_deflt = 60.0; # add 'spam detected' headers at that level +$sa_kill_level_deflt = 60.0; # triggers spam evasive actions +$sa_dsn_cutoff_level = 100; # spam level beyond which a DSN is not sent # # Disable spam and virus notifications for the admin user. @@ -65,8 +72,33 @@ $DO_SYSLOG = 1; $LOGFILE = "/var/log/amavis.log"; # (defaults to empty, no log) -$log_level = 5; # (defaults to 0) +# Set the log_level to 5 for debugging +$log_level = 0; # (defaults to 0) +$inet_socket_port = [10024,10026]; + +# :* = send to incoming Port + 1 +$forward_method = 'smtp:127.0.0.1:*'; +$notify_method = 'smtp:127.0.0.1:*'; +$interface_policy{'10026'} = 'ORIGINATING'; +$policy_bank{'ORIGINATING'} = { + originating => 1, + smtpd_discard_ehlo_keywords => ['8BITMIME'], +}; + +# IP-Addresses for internal networks => load policy MYNETS +# - requires -o smtp_send_xforward_command=yes in postfix master.cf +@mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 [::1] [FE80::]/10 [FEC0::]/10); + +# Allow SMTP access from IPs in @inet_acl to amvisd SMTP Port +@inet_acl = qw( 127.0.0.1 [::1] 192.168.0.0/16 ); + +# DKIM +$enable_dkim_verification = 1; +$enable_dkim_signing = 1; # load DKIM signing code +$signed_header_fields{'received'} = 0; # turn off signing of Received +@dkim_signature_options_bysender_maps = ( +{ '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } } ); #------------ Do not modify anything below this line ------------- 1; # insure a defined return -- Gitblit v1.9.1