Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-19-2008, 03:52 PM   #1
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 43
Mail server migration: From one domain to another with AD users

We currently have 2 domains and we will need to move some users from DOMAINA to DOMAINB. We are using AD for domain authentication but linux servers for mail. I have a hundred or so users I will need to move over but we are only doing a handfull at a time. What is the best way to migrate their current mail over to the new mail server? Both mail servers are running courier with ~/Maildir mail directory. Most of the users if not all are using imap.

Could I use rsync to sync their home directory in DOMAINA(mailserverA) to their home directory on DOMAINB(mailserverB)? We have a script that will create their home directory on domainB once we are ready to move them.

Ive looked at getmail/fetchmail but haven't really seen a good way to xfer multiple users at once.

What would be the best way to mass move users home directories(or at least copy in case something goes wrong)

Old 11-19-2008, 05:38 PM   #2
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 43
I ended up just making a script:

for i in `cat usernames`
rsync -a /home/$i server2:/home/

will mess around with the rsync options to ensure timestamps/etc are preserved. But I think this should work for what I need.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict users of a domain to send/receive mail from one particular domain tanveer Linux - Server 0 09-02-2007 03:01 AM
Someone plz help with a Mail Server Migration~! combilli Linux - Server 4 02-12-2007 12:53 PM
Mail Server Migration dapeng4001 Linux - Software 1 11-30-2005 10:47 AM
Mail Server Migration dapeng4001 Linux - Networking 0 11-29-2005 09:40 AM
mail server migration syl20 Linux - Software 1 12-06-2004 12:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration