LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2009, 06:18 PM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
Qmail IMAP will not let me create folders


I have a qmail server that will not let me create folders under anything except Inbox. My dovecot+postfix lets me do it.

When I create a folder it says:
The IMAP server refused to create folder. Invalid mailbox name.

Qmail is a bit of a mystery to me. It was installed by plesk, but I can't find configs for it anywhere. Mail works fine and all, but it is a bit annoying to not have Sent, Trash, Drafts, etc.. folders.
 
Old 07-31-2009, 01:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
At a first place, why do you want to use qmail, as you have already postfix as MTA?
Regarding qmail, there is the command maildirmake that is used to create a Maildir in a user's homedir with the structure used by an imap server.
First make sure that .qmail (if exists in the user's homedir) or /var/qmail/control/defaultdelivery (the location may vary depending on the way qmail was insalled) contains "./Maildir/" (without the quotes).
Then you can run:
Code:
/var/qmail/bin/maildirmake /home/<username>/Maildir
More details on qmail you can find here.

Regards

Last edited by bathory; 08-01-2009 at 02:52 AM. Reason: typo
 
Old 07-31-2009, 04:47 PM   #3
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by bathory View Post
At a first place, why do you want to use qmail, as you have already postfix as MTA?
Regards
I wish I could, but we are using Plesk, and it seems to support only qmail. Go figure.

It creates the Maildir folder in /home/mailboxes/<domain>/<username>/Maildir

The problems is this. On dovecot+postfix the user's client see's this:
Inbox
Sent
Drafts
Trash

This server seems to put it this way:
Inbox
-Sent
-Drafts
-Trash

I hope that makes sense. In other words, rather than the other folders being created at the same level as the inbox, it makes them subdirs of the inbox. I don't know why it is doing this. Is this specific to qmail or do I just have it configured incorrectly? (maybe a Plesk related issue?) It seems to assume that Maildir/ is the inbox unlike my postfix+dovecot that has a .Inbox inside the Maildir/ direectory.

On the server side(postfix+dovecot) Maildir shows:
.Inbox
.Drafts
.Trash
cur
tmp
new

On the server side (qmail) Maildir show:
.Sent
.Drafts
.Trash
cur
tmp
new
 
Old 08-01-2009, 03:47 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
In Maildir format only the 3 subdirs (cur, new, tmp) are created when you first add a user (that is what maildirmake does). The rest is created by the client used to read/write emails.
There is no folder named .Inbox. The real INBOX (incoming mail) consists of the 3 above mentioned subdirs.
So regarding your 1st post:
Quote:
Mail works fine and all, but it is a bit annoying to not have Sent, Trash, Drafts, etc.. folders.
I don't see a problem
 
Old 08-01-2009, 09:56 AM   #5
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
Yes, I understand how Maildir works to a point. I know the client is supposed to make the folders. The problem is, that it cannot! I can manually make them in the Inbox folder. This is not default behavior of any other IMAP server I have used. I'm trying to determine if this is qmail specific or do I have something configured incorrectly.
 
Old 08-01-2009, 10:50 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I know the client is supposed to make the folders. The problem is, that it cannot! I can manually make them in the Inbox folder.
What client are you using? Are you sure it's not a permissions problem, specially if you use a web based client?
According to your previous post there is no Inbox folder in qmail's Maildir structure
Quote:
On the server side (qmail) Maildir show:
.Sent
.Drafts
.Trash
cur
tmp
new
So, where exactly are you creating these folders?
 
Old 08-01-2009, 11:51 PM   #7
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
I have tried Thunderbird, OE, and windows mail (vista). None of them make the folders. I can make them manually, but the clients fail to make them automatically. The owner is popuseropuser. This looks specific to Plesk setup.
 
Old 08-02-2009, 04:03 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Sorry but I don't use Plesk, so I cannot help further. Maybe you have to contact Plesk support.
 
Old 08-03-2009, 05:59 PM   #9
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
It turns out this is not Qmail specific, it is courier-imap specific.
http://www.courier-mta.org/FAQ.html#namespace

To translate that to normal speak, "The client should support us, not us support the client!"

I did find the fix to make it look "normal".
Make sure to look for the setting in your client called: Root folder path

If you put INBOX in there, it will look normal.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 06:14 AM
qmail-ldap + courier-imap woes (imap capability) syahid Linux - General 1 10-12-2005 12:03 AM
KMail and IMAP folders tmorton Linux - Software 8 05-19-2004 02:18 AM
UW IMAP problem downloading IMAP folders nuzzy Linux - Software 1 04-17-2003 04:25 AM
IMAP Shared Folders DaveG Linux - General 0 12-13-2001 05:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration