iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use latest node exporter
[distro-setup]
/
mail-setup
diff --git
a/mail-setup
b/mail-setup
index 6a291c444748eacd3dbafd6d1e4dcf202aa37cf3..abd863370b1b04440f6df6ed6a32d3f704d0f344 100755
(executable)
--- a/
mail-setup
+++ b/
mail-setup
@@
-287,7
+287,8
@@
i() { # install file
local base="${dest##*/}"
local dir="${dest%/*}"
if [[ $dir != "$base" ]]; then
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)
fi
ir=false # i result
tmpdir=$(mktemp -d)
@@
-1225,8
+1226,7
@@
warn
warn
!hosts = +iank_trusted
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
!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
add_header = X-Spam_action: $spam_action
warn
+ !hosts = +iank_trusted
!authenticated = plain_server:login_server
condition = ${if def:malware_name}
remove_header = Subject:
!authenticated = plain_server:login_server
condition = ${if def:malware_name}
remove_header = Subject: