Koozali.org: home of the SME Server

dropping message into IMAP dir

Max

dropping message into IMAP dir
« on: May 03, 2003, 12:08:17 AM »
Hello

I recently made a new sme 5.6 server. Took a backup of a 4.1.2 machine and applied it to my new 5.6 machine. Then had to seperately copy everyone's email over (because it was > 2gig). everything went fine with one exception:

One folder, in one user's imap dir is no longer accessible over imap. Meaning I can see the dir on the system. I can see the mail in the dir, but via IMAP he is not allowed to view the dir. I tried creating a new dir over imap and copying the mail into that directory but again no luck. I do not know much about IMAP but I suspect I need to tell the server to reindex that directory, or something along those lines.

Can anyone help?

Max

Re: dropping message into IMAP dir
« Reply #1 on: May 03, 2003, 02:11:27 AM »
Nevermind I got it.

Brian Read

Re: dropping message into IMAP dir
« Reply #2 on: May 03, 2003, 09:53:29 AM »
Please let us know how you solved this!

Cheers

Max

Re: dropping message into IMAP dir
« Reply #3 on: May 05, 2003, 10:28:26 PM »
For those of you who are interested here is what I did:

Be warned that I do not fully know what all the pieces are that make IMAP up so take these steps at your own risk!

The problem was my user had something like 8000 messages in his sent-mail folder that he needed to keep, and I could not copy the messages directly into his "sent-mail/cur" directory because cp cannot take 8000 arguments at once. So what I had been doing was removing the sent-mail/cur directory and then moving his old sent-mail/cur directory to the correct spot. As soon as I would do this he would be unable to access his entire sent-mail directory over IMAP. file permissions and ownership were correct however.

So what I finally did was actually just use rsync (rsync -av source/. target/.) to copy all the files to the working sent-mail/cur directory, and then it worked.

-Max

Max

Re: dropping message into IMAP dir
« Reply #4 on: May 05, 2003, 10:32:49 PM »
One more note.

The backup on 4.1.2 and restory on 5.6 went VERY well. All accounts made it over, all the settings made it over but nothing conflicted. Upon reboot I did get a message that the restore had not completed (even though I believe it had) and I had to go through the usual admin setup screens and pretty much just verify everything.

Finally, when installing a new server in the same IP, etc as an old server. Do not forget to clear your ARP cache on all your networking devices that your server is plugged into (if they do arp caching). That cost me 45 minutes of troubleshooting