/var/lib/qmail/bin/qsmhook is in qmail 1.06-5.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/qsmhook
/usr/bin/qsmhook