factotum -g 'key=mykey proto=pass service=imap server=yourserverurl user=yourimapusername !password?' then mailfs yourserverurl or, if you want tls: mailfs -t yourserverurl Once it has returned, you can use as a ui the Mail command in acme for example. Cheers, Mathieu