Currently I call qmail-pop3d from within a perl script, itself called from tcpserver:
tcpserver localhost 110 popauth.pl popauth.pl checks auth (user and pass handed to it via stdin, checked against MySQL db) and a few other things, and then ends with: exec "/var/qmail/bin/qmail-pop3d path/to/Maildir"; Works like champ. I'd like to support imap as well. What sort of incantations are required to do this same thing with bincimap-up and/or bincimapd? + watch for m/\d login user pass/i (anything before this?) + authenticate against our db + response to send? (unless next step would send it) + how to call bincimapd? thanks

