View previous topic :: View next topic |
Author |
Message |
Wilhelm Tux's lil' helper
Joined: 27 May 2003 Posts: 149
|
Posted: Tue Mar 23, 2004 8:06 pm Post subject: /root/.maildir/ is not a mailbox [SOLUTION] |
|
|
Hello all i stumbled along this problem and i found the solution to my specific problem that caused this. I saw lots of threads on this subject but no real solutions.
Preface:
I've emerged postfix and mutt and they didn't want to work together. The logs said that it got sent a-ok but i got the "/root/.maildir/ is not a mailbox" error.
Code: |
Mar 23 21:28:44 dev_2 postfix/pickup[18199]: 0CB9E2B123: uid=0 from=<root>
Mar 23 21:28:44 dev_2 postfix/cleanup[18210]: 0CB9E2B123: message-id=<20040323202843.GA18206@dev_2
Mar 23 21:28:44 dev_2 postfix/qmgr[18200]: 0CB9E2B123: from=<root@dev_2.test.test>, size=384, nrcp
Mar 23 21:28:44 dev_2 postfix/local[18212]: fatal: gethostbyname: No such file or directory
Mar 23 21:28:45 dev_2 postfix/qmgr[18200]: warning: premature end-of-input on private/local socket
Mar 23 21:28:45 dev_2 postfix/qmgr[18200]: warning: private/local socket: malformed response
Mar 23 21:28:45 dev_2 postfix/qmgr[18200]: warning: transport local failure -- see a previous warn
Mar 23 21:28:45 dev_2 postfix/master[9883]: warning: process /usr/lib/postfix/local pid 18212 exit
Mar 23 21:28:45 dev_2 postfix/master[9883]: warning: /usr/lib/postfix/local: bad command startup -
|
What happened in my case is that my DNS or hostname lookup wasn't working correctly.
Solution:
To get things to work i edited my resolv.conf and turned off my BIND which i will attempt to correctly install later on.
Code: |
domain test.test
nameserver 127.0.0.1
search test.test
|
And i matched up my postfix/main.cf
Code: |
myhostname = dev_2.test.test
mydomain = test.test
|
Then things started to finally work. My mail got delivered and my mailbox got made for me and i'm happy .
Fixing up your BIND to make things work once your resolv.conf system is working.
* Add a zone for your network (one that points to localhost or your WAN IP) in /etc/bind/named.conf
* Add the zone file for the zone. In /etc/bind/pri/
* Add a reference to your host in the zone file. |
|
Back to top |
|
|
viperlin Veteran
Joined: 15 Apr 2003 Posts: 1319 Location: UK
|
Posted: Fri Mar 26, 2004 7:10 am Post subject: |
|
|
And for normal users:
Code: |
maildirmake .maildir
|
will solve ".maildir is not a mailbox" it can't just be an empty directory. |
|
Back to top |
|
|
Wilhelm Tux's lil' helper
Joined: 27 May 2003 Posts: 149
|
Posted: Mon Mar 29, 2004 3:56 pm Post subject: |
|
|
If all is set up correctly maildirmake should never have to be run. On first email delivery it will get made. |
|
Back to top |
|
|
|