LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-29-2006, 03:08 AM   #1
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Rep: Reputation: 15
What is Maildir and mbox


HI,

Can anyone please explain what is maildir and mbox, I found these term while reading about Exim MTA.

Thanks
 
Old 05-29-2006, 03:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
an mbox is normally a single file, e.g. /var/spool/mail/bob where all emails are listed in a big file. Maildirs are folders of emails, normally /home/bob/Mail which contain a file for each seperate email, and sub folders for new, old emails etc... Maildirs were introduced to allow more flexibility in email file locking and such.
 
Old 05-29-2006, 03:47 AM   #3
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

thanks for info,Just need some help, understanding concepts. As I was playing with exim, I have successfully install it on my pc, but cannot figure it out how I got those mail delivered ...
I try to send email through exim itself

exim sumit@localhost

and it says mail sent, and I got it in /home/sumit/mail/new folder
now how can I access thsi mail through say outlook on windows?

Thanks
 
Old 05-29-2006, 04:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need an imap or pop3 server
 
Old 05-29-2006, 05:16 AM   #5
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your help, I found courier to solve this... let me try that one if it works for me. Though just one quick question.

which one is better Maildir or mbox as I need to handle Emails for different domains from single PC using virtual aliases etc...

Thanks
 
Old 05-29-2006, 05:59 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
qmail is a huge champion of Maildir's and a further extension of them. They are a more structured way to handle and store mail, but in line, more complicated. i'd check the qmail literature to get some comprehensive arguments in their favour. note that certain smtp and imap/pop3 servers favour (or only work with) certain mail types. for example i believe that sendmail will only work with Maildirs with an unofficial patch. may well be wrong.
 
Old 05-29-2006, 06:20 AM   #7
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Since mbox is one large file, it might become useless when corrupted. I am also not sure what happens to this huge file when you delete mails. Possibly you have to compact the file periodically (like in Outlook Express). Also might suffer performance degradation when using one huge file.

I prefer maildir format. I run an IMAP server and store the mail in maildir format. Usually three or four mail clients access the mail simultanously. Never had a problem.

jlinkels
 
Old 05-29-2006, 07:04 AM   #8
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Quote:
Originally Posted by jlinkels
Since mbox is one large file, it might become useless when corrupted. I am also not sure what happens to this huge file when you delete mails. Possibly you have to compact the file periodically (like in Outlook Express). Also might suffer performance degradation when using one huge file.
jlinkels
mbox is just a plain text file with the header portion of the mail in a certain format. Delete a mail, the file shrinks by the size of the mail; delete 'em all, you have a 0 byte file. No special processing is necessary.
 
Old 05-29-2006, 07:33 AM   #9
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
Hi,

Thanks for this relevant information ...Please check my other question if you have any idea

Thanks
 
Old 05-29-2006, 03:15 PM   #10
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
mbox is just a plain text file with the header portion of the mail in a certain format. Delete a mail, the file shrinks by the size of the mail; delete 'em all, you have a 0 byte file. No special processing is necessary.
Imagine you have a mbox file which has grown to a few GB over the years. (Mine does) If you delete a mail, isn't it true that the entire file must be rewritten? Or are there smarter ways? And isn't access slower, or do you have some kind of index? I honestly don't know.

jlinkels
 
Old 05-29-2006, 05:08 PM   #11
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Quote:
Originally Posted by jlinkels
Imagine you have a mbox file which has grown to a few GB over the years. (Mine does) If you delete a mail, isn't it true that the entire file must be rewritten? Or are there smarter ways? And isn't access slower, or do you have some kind of index? I honestly don't know.

jlinkels
Your assumptions are correct. mbox is not the most effecient file format. No index, no fancy deletion facility. It's just what was developed originally for email. If you want to store gig's worth of email, then a single file ain't the way to do it.
 
Old 06-03-2006, 12:48 AM   #12
vikasumit
Member
 
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Original Poster
Rep: Reputation: 15
HI,

sorry was out of office so late in replying, yes having all data in single file is slow process, as usual, but I wonder even if you have few thousand mails than your File system must be able to support that many Files in one folder to my knowledge a folder can have like 32K files only, than if a user (suppose a gamil type of account) have so many mails than doesn't that limit comes in effect ??

I have a like 3K files in my inbox for now
 
  


Reply



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
How to know if I am using mbox-style or maildir-style? Niceman2005 Linux - General 1 09-23-2005 12:08 PM
popa3d and Maildir or mbox sulee Slackware 4 07-25-2005 08:45 AM
maildir and mbox deflin39 Linux - Newbie 1 01-07-2004 10:08 PM
Convert Maildir to Mbox leonardox Linux - Software 2 09-26-2003 11:23 PM
Differences? mbox vs maildir MasterC Linux - General 3 01-31-2003 03:44 AM

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

All times are GMT -5. The time now is 05:20 AM.

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