Koozali.org: home of the SME Server

Problems after moving maildir to new server

Offline reboot13

  • *
  • 16
  • +0/-0
Problems after moving maildir to new server
« on: November 04, 2004, 03:11:18 AM »
Hi everyone,

I really hope someone out these can tell me what is going on here. I spent the night last night building a new mail server, and moving the Maildir messages to the new server. After a couple of hours working, my users started to not get messages using Outlook. As I went into the Maildirs to see what the problem was, I found the the messages would have different owner and group permissions. I spent the time correcting all Maildir file permissions to the proper user and group, and now, 6 hours later, the files are once again starting to have incorrect permissions?????

Does anyone know what I did wrong, and better yet, what can I do to correct the problem?

Version: 6.0.1

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: Problems after moving maildir to new server
« Reply #1 on: November 05, 2004, 06:06:35 PM »
Quote from: "reboot13"
Hi everyone,
I really hope someone out these can tell me what is going on here. I spent the night last night building a new mail server, and moving the Maildir messages to the new server. After a couple of hours working, my users started to not get messages using Outlook. As I went into the Maildirs to see what the problem was, I found the the messages would have different owner and group permissions. I spent the time correcting all Maildir file permissions to the proper user and group, and now, 6 hours later, the files are once again starting to have incorrect permissions?????


I'm not sure how you went about "moving" the mail dirs from one place to the next, so it's hard to say exactly what the problem is.  Here's what I'd do.  
-Tar up the current user dir.
-Remove the user from the machine using the server-manager.  
-Go back to the server manager and recreate the user.
-Goto /home/e-smith/files/users and run a rm -r -f userdir to get rid of the new user dir.
-Copy the tar file from the first step to /home/e-smith/files/users.
-Untar the userdir tar file.
-Run a chmod 700 userdir.
-Run a chown -R user:user userdir.
-Get into the user dir an chmod -R 755 *

This should get things squared away.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.