X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-route;h=2dc237da63c3b563716d1c9616e5d07c1ebb4a63;hb=6061d88c7d5beda3e974943eb8676f7c39d4ae9f;hp=0b8908467b8e1b8996386f00d2fed1f144da8a15;hpb=63acc2d602eb316a1c0abb7ec842e4789c8beaec;p=distro-setup diff --git a/mail-route b/mail-route index 0b89084..2dc237d 100755 --- a/mail-route +++ b/mail-route @@ -60,7 +60,7 @@ up() { fi fi e() { echo "$0: $*"; "$@"; } - _errcatch_cleanup=stop + errcatch-cleanup() { stop; } modify # we leave it as is even when stopping, because we would like it to be default, but the only way # to change the default is for every device, and I want to avoid that, even though I wouldn't mind, others users of this script might. @@ -186,3 +186,7 @@ exit 0 # background: something like this does not work for packets which # exim is replying to. I don't know why. #iptables -t mangle -A OUTPUT -m owner --uid-owner Debian-exim -j MARK --set-mark 0x1 +# +# note: exim will misreport the I= interface for remote hosts that would +# not use the default route. It still goes through the vpn, you can +# verify with tcpdump.