lostaltmail: 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/sbin/lostaltmail - from package: am-utils

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