qmail-local: 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/sbin/qmail-local - from package: qmail
/var/lib/qmail/bin/qmail-local - from package: qmail

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