if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+ f=/usr/local/bin/send-test-forward
+ cat >$f <<'EOF'
+#!/bin/bash
+echo body_test | mail -s "primary_test $(date +%s) $(date +%Y-%m-%dT%H:%M:%S%z)" iank@posteo.de
+EOF
+ chmod +x $f
+
cat >/etc/cron.d/mailtest <<EOF
SHELL=/bin/bash
# running as user just because no need to run as root
-*/10 * * * * $u echo body_test | mail -s "primary_test \$(date +%s) \$(date +%Y-%m-%dT%H:%M:%S%z)" iank@posteo.de
+*/10 * * * * $u $f
*/10 * * * * $u /usr/local/bin/mailtest-check
*/10 * * * * root chmod -R g+rw /m/md/bounces
EOF