Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/root/.maildir/ is not a mailbox [SOLUTION]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Wilhelm
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 149

PostPosted: Tue Mar 23, 2004 8:06 pm    Post subject: /root/.maildir/ is not a mailbox [SOLUTION] Reply with quote

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
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1319
Location: UK

PostPosted: Fri Mar 26, 2004 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Wilhelm
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2003
Posts: 149

PostPosted: Mon Mar 29, 2004 3:56 pm    Post subject: Reply with quote

If all is set up correctly maildirmake should never have to be run. On first email delivery it will get made.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum