Trent W. Buck wrote: > For now, I am working around it as follows, but this feels like a > dirty hack, and it's a pain to have to do it on all my hosts. > > # dpkg-divert --rename /usr/sbin/sendmail > # cat >/usr/sbin/sendmail <<-EOF > #!/bin/bash -e > ## Workaround long cron jobs being discarded because > ## msmtp opens the connection as soon as the headers finish, > ## resulting in stomp/postfix timing out the connection. > f="`mktemp -t sendmail.XXXXXX`" > trap "rm -f \"$f\"" 0 TERM INT QUIT > cat >"$f" > exec /usr/sbin/sendmail.distrib "$@" <"$f" > EOF > # chmod +x /usr/sbin/sendmail
FYI, I recently discovered the "sponge" program from the mailutils package, which would simplify the above. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org