qsmhook: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/qsmhook - from package: qmail
/var/lib/qmail/bin/qsmhook - from package: qmail

You may install the required package with command apt-get install {package}
Error in other languages:
qsmhook: bevel nie gevind nie
qsmhook: comandă negăsită
qsmhook: comando não encontrado
qsmhook: commande introuvable
qsmhook: command not found
qsmhook: käsku ei ole
qsmhook: không tìm thấy lệnh
qsmhook: komanda nerasta
qsmhook: Kommando nicht gefunden.
qsmhook: kommandot finns inte
qsmhook: komut yok
qsmhook: nie znaleziono polecenia
qsmhook: níor aimsíodh an t-ordú
qsmhook: no se encontró la orden
qsmhook: no s'ha trobat l'ordre
qsmhook: opdracht niet gevonden
qsmhook: parancs nem található
qsmhook: perintah tidak ditemukan
qsmhook: príkaz nenájdený
qsmhook: příkaz nenalezen
qsmhook: команда не найдена
qsmhook: командата не е открита
qsmhook: 命令找不到
qsmhook: コマンドが見つかりません