Dovecot - checkpassword - bash

Written in 2013. Versions, commands and links may well be out of date.

The data from Dovecot’s checkpassword authentication mechanism can be read from a bash script via:

read -d $'\0' -r -u 3 USER
read -d $'\0' -r -u 3 PASS