ucspi-proxy-imap: 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/ucspi-proxy-imap - from package: ucspi-proxy

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