I fixed my own problem with the help of iggy in the #courier channel on
freenode.
In my postfix main.cf file, I had the following:
virtual_mailbox_base = /home/vmail
and in my mysql database, for virtual users, I had
homedir = /my_domain.com/devios
and
maildir = /my_domain.com/devios/.maildir/
The above allowed postfix to work correctly, but courier was unaware of the
virtual_mailbox_base = /home/vmail, so courier was not working.
I had to change main.cf to reflect
virtual_mailbox_base = /
and in my mysql database, for virtual users, I set
homedir = /home/vmail/my_domain.com/devios
and
maildir = /home/vmail/my_domain.com/devios/.maildir/
i am having problems with my imap server - ERROR : Connection dropped by
imap-server - this happens right after login
can anyone here please please query me to help troubleshoot courier-imap
problems?
imapd: chdir "/my_virtual_domain.com/user": No such file or directory <===== is
in my mail.log file. I am trying to login as a virtual user whose mailbox is at
/home/vmail/my_virtual_domain.com/user
shouldn't imap pull the uid and gid for the user:group that
/home/vmail/my_virtual_domain.com/user is owned by? how can i tell what the
directory /my_virtual_domain.com/user in that error message is relative to (to
make sure that imap is actually trying to chdir to
/home/vmail/my_virtual_domain.com/user? Also, how can I tell what user:group
imap is trying to change into that directory with?
strace output pretty much suggests that courier is trying to chdir to
/my_virt_domain.com/user... nothing in the strace output suggests that that is
NOT an absolute path. It should be chdir'ing into
/home/vmail/my_virt_domain.com/user.
I can see that in the mysql query made by courier includes the homedir and
maildir
the fields I CAN see data for in the strace output all look correct
but i see NOTHING in the strace output that shows what the values of homedir and
maildir are
I don't know how to troubleshoot this further...
Any suggestions would be appreciated.
- Devi0s