Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 308
  • Last Modified:

transfer linux email configuration and data

I need to transfer over the entire email configuration and data from an older machine to a new one.  The server software being used is whatever comes with the RedHat 6.0 distribution.  (If it helps, I use the linuxconf tool to add and remove users, etc.)  I need to know which files and directories I need to copy over to the new computer and what I have to do to complete the switch.
0
hopperp
Asked:
hopperp
  • 8
  • 4
1 Solution
 
jlevieCommented:
You'll need to transfer the contents of /etc/passwd (and shadow if used) as well as /etc/group & aliases for starters. You'll also need the user's home dirs and the contents of /var/spool/mail. I'm pretty sure that the sendmail version changed so you need to set up the new box's sendmail yourself. Also you may need to install IMAP/POP3 on the new system if you have remote access to mail.

A caution about the passwd/shadow file... If you are moving from 6.0 to 6.1 or 6.2 you can merge the passwd/shadow entries for your users into the new systems files with an editor. If the new system doesn't use the same encryption scheme for passwords (MD5 vs DES for example), then you'll need to enter each user's password into the new system. Do the same thing with the group and alises file, merge what you need in rather than just copying.
0
 
jlevieCommented:
You'll need to transfer the contents of /etc/passwd (and shadow if used) as well as /etc/group & aliases for starters. You'll also need the user's home dirs and the contents of /var/spool/mail. I'm pretty sure that the sendmail version changed so you need to set up the new box's sendmail yourself. Also you may need to install IMAP/POP3 on the new system if you have remote access to mail.

A caution about the passwd/shadow file... If you are moving from 6.0 to 6.1 or 6.2 you can merge the passwd/shadow entries for your users into the new systems files with an editor. If the new system doesn't use the same encryption scheme for passwords (MD5 vs DES for example), then you'll need to enter each user's password into the new system. Do the same thing with the group and alises file, merge what you need in rather than just copying.
0
 
egf9ef041700Commented:
don't try to use the sendmail configuration file "sendmail.cf" from the older host on the new host, unless both have the same version of sendmail installed.  ie: a sendmail.cf from 8.8.5 will not work under sendmail 8.9.3.  You will need to build a new .cf file from the .mc file using the same defines, features, etc. that the old host had in the .mc file.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
hopperpAuthor Commented:
Sorry it's taken so long for me to respond to your comments.  Test runs have gone okay and we're going to try to make the switch by the end of the week.  Thank you for your help.  I'll be sure to let you know how things go.
0
 
hopperpAuthor Commented:
All of our tests went okay, but when we made the actual switch, we weren't able to check email.  My password would not give me access to my account until I changed it on the server.  Here's a list of the files I copied over:

  etc/passwd
  etc/passwd-
  etc/group
  etc/group-
  var/spool/mail/*.*

jlevie, you suggest that the encryption schemes may be different... how can I check this?  Could it be that the problem is not with the password encryption schemes and I've just missed some files that need to be transferred over?

Any suggestions for what I should try next?
0
 
hopperpAuthor Commented:
Adjusted points from 50 to 75
0
 
jlevieCommented:
Is the new or the old box using shadow passwords, i.e. does /etc/shadow exist? If so the actual passwords are in /etc/shadow, not in /etc/passwd. You can tell is the encryption schemes are different (DES vs MD5) by looking at the first two characters of an encrypted passwd. MD5 always has "$1" as the first two and DES with have random cahracters in the first two positions.
0
 
hopperpAuthor Commented:
Sorry it's taken so long for me to respond to your comments.  Test runs have gone okay and we're going to try to make the switch by the end of the week.  Thank you for your help.  I'll be sure to let you know how things go.
0
 
hopperpAuthor Commented:
Okay, here's a weird twist on things!  There is a user on the original machine, johnsmith.  I send him an email.  I copy the files over to the new machine.  johnsmith checks his email.  Nothing.  I check his email file and see that he does actually have the email listed in there.  It's just not showing up when he checks it.  So, I send him another email, now that the machines are switched.  He gets that one just fine.  When I check his email file, all the emails are there.  For whatever reason, no matter what email client we use, it only sees what has been sent since the switch.

The authentication problem is fixed, but now there's this new one.  I can't figure what it could possibly be.  Any ideas?
0
 
hopperpAuthor Commented:
Nevermind that last comment.  I think that was a fluke.  It seems to be working just fine now.  We are holding off on making the switch for another couple hours.  Will let you know how it goes!
0
 
hopperpAuthor Commented:
Okay, here's a weird twist on things!  There is a user on the original machine, johnsmith.  I send him an email.  I copy the files over to the new machine.  johnsmith checks his email.  Nothing.  I check his email file and see that he does actually have the email listed in there.  It's just not showing up when he checks it.  So, I send him another email, now that the machines are switched.  He gets that one just fine.  When I check his email file, all the emails are there.  For whatever reason, no matter what email client we use, it only sees what has been sent since the switch.

The authentication problem is fixed, but now there's this new one.  I can't figure what it could possibly be.  Any ideas?
0
 
hopperpAuthor Commented:
It's working, it's working!!!  Thanks, you've been a big help!

As I'm sure you can tell, I'm not a Linux person.  But I'm the closest thing my job has to one!  The problem with the email messages seems to have been just a fluke.

Thanks again for all your help!
0
 
jlevieCommented:
You are most welcome...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now