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

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/archivemail - from package: archivemail

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