saslpasswd2: 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/saslpasswd2 - from package: cyrus-sasl-lib

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

On Debian possible default full paths are:

/usr/sbin/saslpasswd2 - from package: sasl2-bin

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