X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mail-setup;h=ee8482d6495f7b53b00ef9a44c6509166d14e292;hp=f2623028be96c76a68bb4f869f7c9c7fe63c3353;hb=4d0dc703ef2e62cd16ea84f27456f6f50f74baa3;hpb=f91bdcc85d4742254fefc2c9880a0c76dc2a65ed diff --git a/mail-setup b/mail-setup index f262302..ee8482d 100755 --- a/mail-setup +++ b/mail-setup @@ -896,7 +896,8 @@ fi # * mail monitoring / testing if [[ $HOSTNAME == "$MAIL_HOST" ]]; then - f=/usr/local/bin/send-test-forward + fname=send-test-forward + f=/usr/local/bin/$fname cat >$f <<'EOFOUTER' #!/bin/bash /usr/sbin/exim -t </etc/cron.d/mailtest <&1 | /usr/local/bin/log-once send-test-forward -*/10 * * * * $u /usr/local/bin/mailtest-check 2>&1 | /usr/local/bin/log-once -1 mailtest-check -*/10 * * * * root chmod -R g+rw /m/md/bounces 2>&1 | /usr/local/bin/log-once -1 bounces-chmod +*/10 * * * * $u $fname |& log-once send-test-forward +*/10 * * * * $u mailtest-check |& log-once -1 mailtest-check +*/10 * * * * root chmod -R g+rw /m/md/bounces |& log-once -1 bounces-chmod EOF m cp /a/bin/distro-setup/filesystem/usr/local/bin/mailtest-check /usr/local/bin else