View Full Version : Courier can't chdir to mail directory
helzer
31st August 2007, 15:38
Hi,
I'm running Ubuntu 7.04 and followed:
http://www.howtoforge.com/virtual_users_and_domains_with_postfix_debian_etch
When the servers start, this is what I get:
ubuntu1 postfix/master[4447]: daemon started -- version 2.3.8, configuration /etc/postfix
ubuntu1 authdaemond: modules="authmysql", daemons=5
ubuntu1 authdaemond: Installing libauthmysql
ubuntu1 authdaemond: Installation complete: authmysql
The user gets authenticated OK from the MySQL database, but then, courier can't get to the mailbox:
ubuntu1 imapd: chdir onthegosystems.local/amir/: No such file or directory
How do I start to debug this?
Thanks,
Helzer
falko
1st September 2007, 22:00
What's the output of ls -la /home/vmail?
helzer
2nd September 2007, 06:04
It's empty. I was thinking that there should be something there, created by courier, but there's nothing.
The directory (/home/vmail) does belong to user vmail (and group vmail).
Amir
falko
2nd September 2007, 21:14
The ownerships are correct. Normally the directories/mailboxes should be created automatically... :confused:
helzer
2nd September 2007, 22:15
I'm almost sure it's something I've done, but there's a slight possibility that there's something different in my setup causing the howto to go wrong. My Linux distro is Ubuntu 7.04 and not the original Debian.
How can I debug this?
Is there a way to create a more detailed log showing exactly what Courier is doing?
What I'm thinking is:
- It's trying to create the directories somewhere else than /home/vmail
- It's running as a different user and can't create directories in /home/vmail
- Some switch is missing and courier is simply not trying to create the directories at all.
But, I don't want to make brute force attempts until it just works. It would be very nice if I find the debug information and be able to understand what's going on there.
Any thoughts?
Thanks,
Helzer
falko
3rd September 2007, 22:28
Please compare your configuration with the one from the tutorial. Maybe you made a typo somewhere.
dylanhky
6th September 2007, 04:31
I'm having the same problems too.
1.I had to manually create the maildir with maildirmake.
2. I tried sending email between users in the same domain, and setting the transport table to deliver locally. But whenever I send mail.... the mail is delivered to /home/vmail/xxxx.com instead of /home/vmail/xxxx.com/user1 .
helzer
6th September 2007, 13:45
I've got this working now on a production server, running the same Ubuntu. A technician set this up with postfix + dovecot. I'll go through the setup and see if there's something unique to Ubuntu that's set any different. Will let you know.
Amir
dylanhky
10th September 2007, 11:33
I've fix my problem, there was a typo as falko suggested in the sql query string in /etc/postfix/mysql-virtual_mailboxes.cf.
Problem solved for me..thanks a lot
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.