sb_mailsort: 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/sb_mailsort - from package: spambayes

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