Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Which IMAP Server?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Vitaliy
Guru
Guru
User avatar
Posts: 451
Joined: Tue Apr 06, 2004 1:19 am
Location: Brooklyn, NY

Which IMAP Server?

  • Quote

Post by Vitaliy » Fri May 18, 2007 12:24 am

I would like to setup an IMAP server but I am not sure which one to go with. Is there a specific one that is considered to be the standard (ie: Apache of the mail servers)?
Top
tcunha
Retired Dev
Retired Dev
Posts: 128
Joined: Mon Apr 02, 2007 5:46 pm

  • Quote

Post by tcunha » Fri May 18, 2007 5:30 am

I really like dovecot - not just an IMAP server but also IMAPS/POP3/POP3S - since it's very easy to setup.

HTH.
Top
baeksu
l33t
l33t
User avatar
Posts: 609
Joined: Sun Sep 26, 2004 11:03 am
Location: Seoul, Korea

  • Quote

Post by baeksu » Fri May 18, 2007 8:36 am

I've had good experience with courier-imap. It was the easiest to set up in Debian, so I used it even after I moved my server to Gentoo.
Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do.
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Fri May 18, 2007 5:47 pm

I'll give the negative answer. Use anything other than uw-imap and you'll be pretty happy. The main problem with uw-imap is that it does not support maildir format, the Gentoo default, for storing mail and they go to great lengths to point out why this is a good thing. In short it's maintained by idiots.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Vitaliy
Guru
Guru
User avatar
Posts: 451
Joined: Tue Apr 06, 2004 1:19 am
Location: Brooklyn, NY

  • Quote

Post by Vitaliy » Fri May 18, 2007 10:30 pm

kashani wrote:I'll give the negative answer. Use anything other than uw-imap and you'll be pretty happy. The main problem with uw-imap is that it does not support maildir format, the Gentoo default, for storing mail and they go to great lengths to point out why this is a good thing. In short it's maintained by idiots.

kashani
From my understanding Gentoo does not have a default, unless you are referring to package maintainers preference. Isn't mbox the traditional UNIX way?
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Fri May 18, 2007 10:59 pm

mbox was pretty much the only format until maildir was created in '97 or so by the author of qmail. The nice thing about maildir is that you can deal with each mail message as an individual file which is nice for busy mail servers as you do not have to lock a user's mail spool which is the case in mbox. mbox is a single file containing all the emails. The same also applies when reading mail because you're going to write to the spool when you mark a mail as read. Additionally your MTA will block while your POP/IMAP daemon has the lock and vice versa. Basically mbox is a concurrency nightmare on a busy system. Additionally it's near impossible to run with any stability with NFS because now you have multiple servers locking the spool away from other servers along with nfslocks.

I worked at an ISP from '96-'99 that sadly did all the above.

The problem with maildir is that file systems generally do not enjoy having thousands of 8k files on them. At the next ISP I worked at 7 million mail accounts created a directory structure that took up 400GB. Not the data itself, just the data describing the dirs and files. However running a mail system this size would have been impossible with mbox. Additionally when I first arrived we used less gear to run 250k mailboxes with maildir than my previous ISP used to run 25k.

In regards to Gentoo defaults, each profile has USE flags associated with it. maildir is the default in most of them. If it was set per individual package Postfix might deliver to mbox while Mutt tried to read maildir and so on.

Do a emerge --info and you should see maildir as one of your default USE flags. You could add -maildir mbox to your /etc/make.conf if you wanted to overide that.

kashani
* fixed explanation of mbox.
Last edited by kashani on Fri May 18, 2007 11:39 pm, edited 1 time in total.
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
Vitaliy
Guru
Guru
User avatar
Posts: 451
Joined: Tue Apr 06, 2004 1:19 am
Location: Brooklyn, NY

  • Quote

Post by Vitaliy » Fri May 18, 2007 11:32 pm

kashani wrote:mbox was pretty much the only format until maildir was created in '97 or so by the author of qmail. The nice thing about maildir is that you can deal with each mail message as an individual file which is nice for busy mail servers as you do not have to lock a user's mail spool which is the case in mbox. because mbox. The same also applies when reading mail because you're going to write to the spool when you mark a mail as read. Additionally your MTA will block while your POP/IMAP daemon has the lock and vice versa. Basically mbox is a concurrency nightmare on a busy system. Additionally it's near impossible to run with any stability with NFS because now you have multiple servers locking the spool away from other servers along with nfslocks.

I worked at an ISP from '96-'99 that sadly did all the above.

The problem with maildir is that file systems generally do not enjoy having thousands of 8k files on them. At the next ISP I worked at 7 million mail accounts created a directory structure that took up 400GB. Not the data itself, just the data describing the dirs and files. However running a mail system this size would have been impossible with mbox. Additionally when I first arrived we used less gear to run 250k mailboxes with maildir than my previous ISP used to run 25k.

In regards to Gentoo defaults, each profile has USE flags associated with it. maildir is the default in most of them. If it was set per individual package Postfix might deliver to mbox while Mutt tried to read maildir and so on.

Do a emerge --info and you should see maildir as one of your default USE flags. You could add -maildir mbox to your /etc/make.conf if you wanted to overide that.

kashani
Great, thank you very much for your detailed input, I really appreciate that. Compiling dovecot as I am typing this.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Sun May 20, 2007 7:01 am

kashani wrote:I'll give the negative answer. Use anything other than uw-imap and you'll be pretty happy.
I use uw-imap on gentoo & I'm happy.
The main problem with uw-imap is that it does not support maildir format, the Gentoo default,
Gentoo is about choice (isn't it)? There have been patches to uw-imap to add maildir support & it supports a plethora of other formats, including UW's mix (which I use & which seems fairly good). AFAIK, the only popular IMAP servers that can use maildir are dovecot and courier. UW and many others complain about courier's lack of adherence to the IMAP specs. Cyrus & other popular IMAP servers also don't support maildir.
In short it's maintained by idiots.
This is ironic--Mark Crispin is one of the primary maintainers. He invented IMAP and is the primary author of most of the IMAP RFCs.

Yes, he has a beef with the maildir format & some object to what they see as a personal ax grinding. But he is hardly an idiot about IMAP. UW-IMAP is the closest thing to a reference implementation there is.
Donate to F/OSS
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

  • Quote

Post by kashani » Mon May 21, 2007 4:55 am

I could pick on Cyrus or DBmail as well, but they fail to pique my ire as much as uw-imap.

1. Reference platform.
Yes it is, client lib bugs and all. Whether it adheres to the standard in a meaningful way is something many have questioned. I'm not qualified to say who is right, probably both sides.

2. unsupported 3rd party patches for maildir.
I've already kicked out qmail for not having needed functionality available in the main code tree so I'm not about to start that nonsense again. Also Gentoo doesn't have the patches as a choice.

3. mbox, the default, does not support concurrent access.

4. mbx supports concurrency, but requires the use of c-client which limits your choice in the number of things that can write to your mail spool/dir where ever it is. Additionally it too is not NFS safe.

5. mix is basically mbx with some status files. Still has concurrency issues which means NFS issues.

Gentoo has always given you enough rope to hang yourself and will continue to do so which is one of the reasons I like it. However just because you can implement a system with inherent bottlenecks doesn't mean I should recommend them.

On the other hand using iSCSI in place of NFS might make a number of these issues go away. Something to think about.

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
karnesky
Apprentice
Apprentice
Posts: 218
Joined: Thu Mar 18, 2004 9:07 pm
Contact:
Contact karnesky
Website

  • Quote

Post by karnesky » Mon May 21, 2007 3:58 pm

kashani wrote:I could pick on Cyrus or DBmail as well, but they fail to pique my ire as much as uw-imap.
I have no experience with DBMail, but I'd be interested in your critique of Cyrus. My two favorite IMAP servers are Cyrus and Dovecot (assuming someone else is doing install/config/maintenance). The reason I use UW-IMAP on my personal server is because it is so trivial to install & configure (and I don't need to worry about NFS issues you raised). They also picked it for use at my work, but I don't know implementation details.
Yes it is, client lib bugs and all.
And which bugs would those be?
4. mbx supports concurrency, but requires the use of c-client which limits your choice in the number of things that can write to your mail spool/dir where ever it is.
I was under the impression that c-client wasn't used by, for example, exim (which can write to mbx just fine). I could be wrong, though. UW-IMAP, like Dovecot an Cyrus, is able to retrieve messages stored in a spool that you specify & then store them in some other format.
5. mix is basically mbx with some status files. Still has concurrency issues which means NFS issues.
I don't know about this. mix seems closest to Dovecot's dbox format. Like dbox and maildir, mail is put in multiple files. By default, I think it splits on 1MB (rather than per message like maildir). Locking is obviously better than mbox/mbx (which store the whole spool in a single file). I'm sure there are still problems & maildir might be better. But maildir isn't perfect in this regard either--Dovecot's maildir support has locking, which is non-standard. They describe other quirks on their wiki too.

One thing your description of maildir left out is that maildir and imap were not developed with the other in mind. Multiple prominent IMAP developers have since spoke of issues with using the two together. These issues are why dbox and mix were created in the first place. I don't know if either has enough features to make maildir fans happy. But I do know they make IMAP fans happier than traditional alternatives (mbox/maildir). Since I'm in this latter camp, I hope that some IMAP-aware mailbox format catches on.
Donate to F/OSS
Top
Post Reply

10 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic