Yeah there is some references, but from my experience it's pretty poorly
documented. Here's what I did in a nutshell, and if you'd like more help
from me, it'd probably make sense to follow up outside the mailing list.

I didn't want to turn my entire mail server upside down.. so what I did
was install courier-IMAP onto my system. This was tricky since some of the
files conflicted with UW (mainly the pam files.. I just moved them out of
the way so the install would go through, then moved them back).

Then I setup courier to be on a new port (not the standard IMAP). This way
we can leave the old IMAP server running.

I made a new instance of squirrelmail.. pointed this one to the new port
number and of course, set it up for courier. BE SURE TO SELECT "D" from
the main menu in the SM ./configure to load mail server defaults or things
won't work!

First thing I did was to convert the old mboxs to Maildirs.. This was VERY
easy to do with mb2md.pl.. Search for it online, it's great.. I simply
ran:
mb2md.pl -m       #This converts (my version made a copied) the mail spool
to $HOME/Maildir in Maildir format..
mb2md.pl -s mail/ #This converted all the users's folders into Maildir
format into $HOME/Maildir

!!! Be sure to run these as the user you are converting !!!

since I was using sendmail+procmail, new mail likes to goto
/var/spool/mail/<username> in mbox format, maildir format typically likes
it at $HOME/Maildir.. so I did this to my individual users .procmailrc
(you can probably put this into /etc/procmailrc...)
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR

The "/" at the end of MAILDIR is VERY important.. that tells procmail to
drop it into Maildir format (lots of directories and files) instead of one
huge file. You'll see once it starts doing Maildir format why it is so
much faster..


Things to keep in mind...

A Procmail recipie that used to look like:
:0:
* ^X-Spam-Status: Yes
Spam

Will probably need to look like this now:
:0:
* ^X-Spam-Status: Yes
.Spam/


Note the trailing slash. Courier also identifies mail folders with a dot
at the begining ("." = folder, "/" = Maildir).

So any procmail reciepies will need to be updated to work with the Maildir
format.. I have some scripts that were broken when I converted over (using
ifile for mail sorting..). So be careful.

You'll also need to resubscrbe to your courier folders from Squirrelmail
and also need to re-setup your Trash, Drafts, and Sent-Mail folders (if
you use them).

There is probably a way to script all of this, pretty easily, but I
haven't seen it yet..

Also, it may be better to convert to qmail+maildrop or something that
supports Maildir as the default.. I have and know sendmail, so I didn't
want to muck with it.

If anyone has any other suggestions, let me know! Maybe qmail+maildrop is
a better way altogether?


Good luck, let us know how it goes!
-Brett




>   Doh, stupid me listing sendmail. It's been a hellish week. I'm running
> UW's Imap-2002b. I'll try removing pref files, but I think you're on to
> something with their Folders. My INBOX stores only 80 emails or so. Some
> of these dolts were storing 600 emails in their INBOX. I have about 11
> other Folders with email on my account, and I've still never experienced
> their problems.
>
> Is there any info about migration from UW-imap to Courier?
>
>> Ok, well something is taking a long time to process. What mail server
>> are
>> you running (sendmail is the MTA, not the IMAP server)? With UW there
>> are
>> problems with having folders with many messages. That slowed my system
>> down a lot (sometimes a few minutes to log in). It didn't matter if the
>> messages were in the mail spool, or stored in the users personal folders
>> on the server. Having a lot of messages took a long time to process.
>>
>> I replaced my UW installation with Courier IMAP and got a magnitude
>> speed
>> improvement. Not only is Squirrelmail easy to use now, it's FAST. It
>> uses
>> Maildir format instead of mbox which is better for folders with lots of
>> messages (lots=in the 100s or more). Think of it this way, if you have 5
>> folders with 100 messages each, your IMAP server has to open 5 pretty
>> large files when you login.. If you have squirrelmail showing how many
>> messages are in each folder it will be MUCH MUCH slower with mbox
>> format.
>> Not only does it have to open these 5 large files, not it has to scan
>> them
>> for message status.
>>
>> Something else that might help troubleshoot is to move the user
>> preference
>> file out of the way (create a backup!). Sometimes user preferences
>> (perhaps linked to a plugin) could be slowing things down.. for example,
>> what I said above, about showing message count on each folder could be
>> the
>> culprit:
>> mv /var/squirrelmail/<username>.pref
>> /var/squirrelmail/<username>.pref.bak
>>
>>
>> Good luck! Tell us your IMAP server software. :)
>> -Brett
>>
>>
>>> To sum up the problem:
>>>
>>> Fatal error: Maximum execution time of 30 seconds exceeded in
>>> /home/httpd/ssldocs/squirrelmail/functions/imap_general.php on line 489
>>>
>>>  Now to clarify some things. I have all ready read:
>>> http://www.squirrelmail.org/wiki/en_US/NewUserCannotLogin and these did
>>> help point me in the right direction, but not fix my problem.
>>>
>>>  A very few select of my users are having a problem where they cannot
>>> view their INBOX. As soon as they login, the page takes for ever to
>>> load,
>>> and eventually shows the error above. They can still send email, browse
>>> other Folders, etc.
>>>
>>>  It appears to be related to large attachments but I'm not positive.
>>> The
>>> first users had an mbox of 380,000 lines. 260,000 of those lines were
>>> ONE
>>> PDF file. I removed all 260,000 lines and the user could log back in.
>>> Two
>>> days later if happened again, but I couldn't find any more huge
>>> attachments this time.
>>>
>>>  Also, two of his friends are having the same problem. I keep checking
>>> their mbox's for large attachments but sometimes I find nothing. One of
>>> them had an mbox of only 1,000 lines, and he couldn't login.
>>>
>>>  My mbox is 280,000 lines and has only 100 some emails in it. I login
>>> just
>>> fine. What exactly is happening here? I checked permissions, I tried
>>> raising the Timeout and Memory settings in php.ini, nothing is fixing
>>> the
>>> problem.
>>>
>>> Any further suggestions I could look into?
>>>
>>> This is a Solaris 8 system running SM 1.4.0 with SendMail
>>> 8.12.8p1/8.12.5
>>>
>>> --
>>> Calm down. It's all just ones and zeros.
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.net email is sponsored by: eBay
>>> Get office equipment for less on eBay!
>>> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
>>> --
>>> squirrelmail-users mailing list
>>> List Address: [EMAIL PROTECTED]
>>> List Archives:
>>> http://sourceforge.net/mailarchive/forum.php?forum_id=2995
>>> List Info:
>>> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>>>
>>>
>>
>
>
> --
> Calm down. It's all just ones and zeros.
>
>



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to