LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2006, 02:53 AM   #1
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Dovecot imap mbox issue


Hi all,
I have all my mails are stored in ~/Mail directory in mbox file format. I am using mutt to access all these files. Now I want all these mails in web interface. ( Some times I need to access my mails from outside.) So I am configuring squirrel mail with dovecot Imap. The problem is I want all my files under ~/Mail directory which are in mbox format to be read by Imap server. If I use default_mail_env variable than, It only allows one file to be read. IF I specify this variable more than once, last variable overwrite all other values and dovecot read only last file specified. So please guide me in configuring dovecot in such a way that it can read more than one mbox files.
 
Old 08-21-2006, 04:45 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry, but can you clarify why you want more than one mbox file at a time. Are you saying that you have multiple files per user, or are you trying to acccess multiple users?

If the latter, try

default_mail_env = mbox:~/mail/:INBOX=/var/mail/%u

but I suspect this isn't what you want.

Rgds
 
Old 08-21-2006, 05:11 AM   #3
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for your kind reply. What you understand is correct. I don't want it for multiple users. I want that only for me. Currently I am using procmail for delivering mail on my machine. Now It delivers mails according to .procmailrc rule. So I have many mbox files in ~/Mail folder. Using squirrel mail I want to see all these mails. But for that dovecot needs to be configure in such a way that it can read all mbox files from ~/Mail folder. I hope you understand what i mean!!!

Thanks again.
 
Old 08-21-2006, 06:31 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you read

mail-storage.txt in the dovecot doc directory?

Here's what it says about mbox files:

Quote:
mbox
----

mbox storage requires an IMAP root directory where to store IMAP folders
and some other information. mbox file for INBOX is a special case which may
exist elsewhere in filesystem.

All files in the IMAP root directory not beginning with a "." are treated
as IMAP folders. Directories are treated as being IMAP subfolders.

Dovecot's indexes are stored in ".imap/<mailbox name>/" directories under
the folder directories.

MAIL environment for mbox is: <root folder>|<INBOX path>[:INBOX=<path>].
For example ~/Mail:INBOX=/var/mail/username.
Edit: Question - what is your directory structure under the root directory?

Last edited by billymayday; 08-21-2006 at 06:38 AM.
 
Old 08-21-2006, 07:20 AM   #5
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Again thanks for your reply. Now I have read mail-storage.txt.

Quote:

mbox storage requires detecting INBOX location and IMAP root directory. If
MAIL environment points to file (+rw) it's treated as the INBOX file. If it
points to directory (+rwx) which contains .imap/ (+rwx), inbox (+rw) or
mbox (+rw) it's treated as IMAP root directory. If INBOX isn't known,
imap_root/inbox file is used by default. If root directory isn't known, we
try to find it from /, ~/mail or ~/Mail.

Now I know how default_mail_env works! So what I understood is that there is no way to specify more that one INBOX files. Then is there any other solution to this problem?
 
Old 08-21-2006, 07:31 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Why don't you put them in subfolders (ie directories) or rename wit ha "." at the start of the name and reconfigure your procmail rules?
 
Old 08-21-2006, 08:17 AM   #7
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Dovecot does not support ACL's yet. Use cyrus-imap or courier-imap, they allow users to set permissions for other users to view their mailbox. For example, a secretary that needs to view and modify mailboxes for her bosses and therefore needs read access to several bosses but full access to act on behalf of one boss...
 
Old 08-21-2006, 11:07 PM   #8
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
Post

Quote:
Originally Posted by billymayday
Why don't you put them in subfolders (ie directories) or rename wit ha "." at the start of the name and reconfigure your procmail rules?
I tried renaming with a . at the start of the name of mbox files but it din't work. I also tried to put all mbox files in subfolder under imap root but that also din't work. Am I doing some thing wrong? Can you please explain me in detail how to do these? My ~/Mail directory structure is as below.

+Mail
|_aaa
|_bbb
|_ccc
|_ddd

All the files (aaa,bbb,ccc,ddd) are mbox format. I want to read mails of all files. How would I do it? If I put
default_mail_env = mbox:~/Mail
It doesn't show any mail. If I put
default_mail_env = mbox:~/Mail/aaa
It only shows mails from aaa file. Now How can I read all files?

Quote:
Dovecot does not support ACL's yet. Use cyrus-imap or courier-imap, they allow users to set permissions for other users to view their mailbox. For example, a secretary that needs to view and modify mailboxes for her bosses and therefore needs read access to several bosses but full access to act on behalf of one boss...
Thanks for your interest in solving my problem ram. But I want to read only my files. And for that I doesn't need ACL, Right? Any way! thanks.
 
Old 08-22-2006, 05:35 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'm getting out of my knowledge zone here a bit, but I'd assume that under your Mail directory, have the mbox file (from memory it's called mbox, or am losing it?), then create a directory, say, LQ, and put the LQ mbox file in there, also called mbox.

Only guessing a bit here -I use maildir - it doesn't create these problems
 
  


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
Maildir in dovecot-IMAP!!! subhankar Linux - Networking 1 05-29-2006 02:43 PM
IMAP to dovecot GuitsBoy Linux - Software 0 11-22-2004 11:10 AM
how to configure the dovecot IMAP server happyskyzl Linux - Software 11 11-07-2004 09:24 PM
imap pop 3 issue with postfix and dovecot on fc2 hush Fedora 0 10-30-2004 12:19 PM
how to configure the dovecot IMAP server happyskyzl Linux - Networking 2 09-20-2004 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:34 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