Re: UW-Imap on Solaris

"Gary R. Schmidt" <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
On 27/11/2012 4:32 PM, [email protected] wrote:
> I've been using uw-imap for something like twelve years or so, and I absolutely love it.  Many thanks to all who have worked on developing it, etc. through the years!
>
> All this time, I've been using it on Linux.  Now, I'm building a Solaris server, and I'd like to put it on it.  I ran across a post the other day on the internet saying that it doesn't work very well on Solaris due to file locking problems, and that the cause is really an underlying problem with Unix.
>
> Is there any truth to this?  Or more appropriately, am I likely to run into more headaches than what it is worth if I try to use it on Solaris?
>
> If so, does anyone have any recommendations on a different imap server for Solaris?
>
> I'd really miss uw-imap, but mail is real important to us.
>
> Any feedback / advice will be *greatly* appreciated.
Ignore it.  It is just that System V UNIX does not allow a process to 
lock files against itself, one of those religious argument things, but 
many people run UW-IMAP on Solaris boxen, and have done so for years and 
years.

Oh, but there may be a bug in the code for MIX mailboxes on ZFS file 
systems, I think I posted about it here long ago, but I've not looked at 
it in along time, I run Panda-IMAP these days, and don't know if the fix 
was needed or propagated.

...Pulls down uw-imap source...grovels about...

Hmm, the problem was that the opendir()/scandir() replacement code (in 
./src/osdep/unix/opendir.c) relied on the undocumented feature that 
stat() on a directory set the st_size field of the stat structure to the 
number of characters used for filenames, with ZFS it is the number of 
files in the directory.

The workaround was to not use the scandir() replacement, the one in libc 
is fine with Solaris 10 and later.

     Cheers,
         Gary    B-)
_______________________________________________
Imap-use mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-use
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.