msg2pdf: 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/msg2pdf - from package: maildir-utils-extra

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