The system is Red Hat Linux 9. Postfix is correctly delivering mail to the right locations for each virtual user.
I did a basic install, following the instructions in the INSTALL file. The only thing I have changed in /usr/lib/courier-imap/etc is imapd, and here's a diff:
# diff imapd.dist imapd 38c38 < PORT=143 --- > PORT=144 101c101 < DEBUG_LOGIN=0 --- > DEBUG_LOGIN=2 343c343 < IMAPDSTART=NO --- > IMAPDSTART=YES #
I changed the port because I'm still running my xinetd started UW-IMAP server, until I have this working correctly. It is handling this mbox based account I'm sending this from. I'll convert this account to maildir format and have courier handle it later, when all is working well.
I also installed the sysvinit startup file and am using that to start and stop the imap daemon.
So, I want to be able to access the mail found in the /var/mail/virtualmail/tales-of-the-wanderer.com/shaun/ maildir. If I understood it correctly, I need to use userdb for this, since there is no account for this virtual mail user. Ok.
So, I run:
# cp /dev/null /etc/userdb # chmod 700 /etc/userdb #
to get the userdb file created.
I don't run pw2userdb, because there are no accounts in my password file that I (currently) want courier to handle.
I do the following:
# userdb "[EMAIL PROTECTED]" \ > set mail=/var/mail/virtualmail/tales-of-the-wanderer.com/shaun \ > uid=5001 gid=5001 #
I check it with:
# cat /etc/userdb
[EMAIL PROTECTED] mail=/var/mail/virtualmail/tales-of-the-wanderer.com/shaun|uid=5001|gid=5001
#
I'm sure my MUA wrapped that, but it's actually one line. I didn't specify a home directory for it, as it doesn't have one.
I *DON'T* run:
userdbpw -md5 | userdb "[EMAIL PROTECTED]" set imappw
as this gives me a usage error and the password doesn't get put into userdb. Instead, I run "userdb -md5", provide it with the password, and it gives me back the encrypted version of it, which I'll call the_password. I then run:
echo 'the_password' | userdb "[EMAIL PROTECTED]" set imappw
and the password is added to the entry in userdb. I cat /etc/userdb and verify it was added.
Lastly, I run: makeuserdb
I try to access my mail from Mozilla and it fails. In my maillog, I see:
Jun 9 21:59:58 spock imapd: Connection, ip=[::ffff:68.36.5.198]
Jun 9 22:00:31 spock imapd: LOGIN: DEBUG: ip=[::ffff:68.36.5.198], command=LOGIN
Jun 9 22:00:31 spock imapd: LOGIN: DEBUG: ip=[::ffff:68.36.5.198], username=shaun
Jun 9 22:00:31 spock imapd: LOGIN: DEBUG: ip=[::ffff:68.36.5.198], password=the_password
Jun 9 22:00:36 spock imapd: LOGIN FAILED, ip=[::ffff:68.36.5.198]
"the_password" was the one I entered in Mozilla and the one I put into userdb.
My Mozilla "Advance IMAP Server Settings" are configured thusly:
"IMAP server directory:" is empty "Show only subscribed folders" is unchecked "Server supports folders that contain sub-folders and messages" is checked "Maximum number of server connections to cache" is set to 5 "Personal namespace:" is set to "INBOX." (without the quotes) "Public (shared):" is set to "shared." (without the quotes) "Other Users:" is empty "Allow server to override the namespaces" is unchecked
An how-to off the web suggested the "INBOX." should instead be in the "IMAP server directory:" field. I tried that also, and the result was the same.
Could someone please help me to get this working?
-ste
------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
