X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mail-setup;h=041ab1d58db145e8ea8a2d8af07a1d60eb4db073;hp=e12149f114bc06b0b79bc980359cb6dd743f8b8d;hb=6cc73025405b7a540eec371d1d8f7d9d13d8e019;hpb=56c55d8e02cdd6ec67d2fe53cc03785d8876442e diff --git a/mail-setup b/mail-setup index e12149f..041ab1d 100755 --- a/mail-setup +++ b/mail-setup @@ -29,10 +29,6 @@ # todo: run mailping test after running, or otherwise # clear out terminal alert -# todo: on bk, dont send email if mailvpn is not up - -# todo: mailtest-check should check on bk too - # todo: disable postgrey # todo: in testforward-check, we should also look @@ -1212,6 +1208,7 @@ accept EOF rm -fv /etc/exim4/data_local_acl # old path + i /etc/exim4/conf.d/data_local_acl <<'EOF' # Except for the "condition =", this was # a comment in the check_data acl. The comment about this not @@ -1230,6 +1227,9 @@ warn warn !hosts = +iank_trusted + # They dont send spam, but needed this because + # smarthosts connect with residential ips and thus get flagged as spam. + !authenticated = plain_server:login_server condition = ${if < {$message_size}{5000K}} spam = Debian-exim:true add_header = X-Spam_score_int: $spam_score_int @@ -1239,6 +1239,7 @@ warn add_header = X-Spam_action: $spam_action warn + !authenticated = plain_server:login_server condition = ${if def:malware_name} remove_header = Subject: add_header = Subject: [Clamav warning: $malware_name] $h_subject @@ -3200,14 +3201,12 @@ case $HOSTNAME in # note: cronjob "ian" also does some important monitoring # todo: this will sometimes cause an alert because mailtest-check will run # before we have setup network namespace and spamassassin - cat >/etc/cron.d/mailtest </etc/systemd/system/mailtest-check.service <<'EOF' + i /etc/systemd/system/mailtest-check.service <<'EOF' [Unit] Description=mailtest-check After=local-fs.target