On Fri, 2007-04-27 at 08:58 -0500, Phillip T. George wrote:
Anyways, I'm trying to modify the dovecot source a bit, but the problem I'm having is that whenever I use "fopen", it always returns NULL. I've tried a variety of things, even fopen("/dev/null", "w") -- because that should almost always work. I'm trying to get it to work in src/pop3-login/client-authenticate.c
pop3-login is chrooted, so there's no /dev. You could of course set login_chroot=no
Any idea why this might be happening? Any suggestions as to where to put the code instead? (I'm trying to check the username against some information in a file OR pass the username to a process and have it do the work)
dovecot-auth would be the correct place to do the authentication. Maybe you want to use a checkpassword script (http://wiki.dovecot.org/PasswordDatabase/CheckPassword).