X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-setup;h=abd863370b1b04440f6df6ed6a32d3f704d0f344;hb=3629611b971950db2ed8a42a8f9578062cd906c6;hp=6a291c444748eacd3dbafd6d1e4dcf202aa37cf3;hpb=c24cd5dbf70ec9639adc5800a742eba698593f23;p=distro-setup diff --git a/mail-setup b/mail-setup index 6a291c4..abd8633 100755 --- a/mail-setup +++ b/mail-setup @@ -287,7 +287,8 @@ i() { # install file local base="${dest##*/}" local dir="${dest%/*}" if [[ $dir != "$base" ]]; then - mkdir -p ${dest%/*} + # dest has a directory component + mkdir -p "$dir" fi ir=false # i result tmpdir=$(mktemp -d) @@ -1225,8 +1226,7 @@ warn warn !hosts = +iank_trusted - # They dont send spam, but needed this because - # smarthosts connect with residential ips and thus get flagged as spam. + # Smarthosts connect with residential ips and thus get flagged as spam if we do a spam check. !authenticated = plain_server:login_server condition = ${if < {$message_size}{5000K}} spam = Debian-exim:true @@ -1237,6 +1237,7 @@ warn add_header = X-Spam_action: $spam_action warn + !hosts = +iank_trusted !authenticated = plain_server:login_server condition = ${if def:malware_name} remove_header = Subject: