dspam_train: 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 CentOS possible default full paths are:

/usr/bin/dspam_train - from package: dspam

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