- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Migrating Sendmail Accounts to a New Server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2006 12:42 AM
08-15-2006 12:42 AM
Migrating Sendmail Accounts to a New Server
I am setting up a new system that will replace the current sendmail server. The current server is running Sendmail 8.13.1 on a trusted HP-UX 10.20 system, while the newer model will be running Sendmail 8.13.4 on a Fedora Core 4 system that was hardened by Bastille Linux. Both systems have MailScanner, SpamAssassin, and ClamAV installed although the Linux box has newer versions of the programs.
My plan is to tar the existing mailboxes on the older server and extract them onto the replacement. I had several questions in regards to this plan:
1. Will simply tarring and then extracting the existing mailboxes work, or are there further steps involved?
2. Do the owners of the mailboxes in question need to have local accounts on the new server or are having the mailboxes alone enough?
The configuration settings for Sendmail, MailScanner, SpamAssassin, and ClamAV on the new server will be the same as those on the older one. I will also be running the newaliases command on the new server after I modify the aliases file.
Any comments, ideas, and suggestions are welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2006 01:42 AM
08-15-2006 01:42 AM
Re: Migrating Sendmail Accounts to a New Server
Migrate the user accounts.
If possible give them the same numeric user id as they had on the HP-UX machine.
Then tar up the /var/mail boxes, transfer and untar.
This should do it.
If you use mail readers that store data in the usres home directory, that data will need to be migrated as well.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2006 01:43 AM
08-15-2006 01:43 AM
Re: Migrating Sendmail Accounts to a New Server
Is there a utility that will help facilitate migrating user accounts from HP-UX to Linux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2006 05:22 AM
08-17-2006 05:22 AM
Re: Migrating Sendmail Accounts to a New Server
Next, type pwconv on the linux box, it should (in theory) create the shadow entries for each user you have copied across.
I've used this method previously and it worked fine, sounds like a hack, but then isn't that what linux is about? ;-}
You'll need to :
1) tar / untar the home areas
2) check that the UIDs are not already in use on the linux box
3) ensure that you don't copy over any system usernames (like root)
4) re-trust the HP box (takes about 1 minute)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2006 07:03 AM
08-17-2006 07:03 AM
Re: Migrating Sendmail Accounts to a New Server
Thanks for your reply concerning using the pwconv utility. One question, as stupid as it may sound, I would still need to manually create the home directories for the users even though pwconv would populate the
/etc/passwd and shadow files. Correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2006 10:08 PM
08-17-2006 10:08 PM
Re: Migrating Sendmail Accounts to a New Server
yes the step 1 bit I wrote about tarring and untarring the home areas will do the copy for you.
Assuming you've got /home on both servers (and the both boxes have large enough /tmp etc areas where you can deposit the archives).
1) on the hp box : cd /home
2) tar cvf /tmp/homes.tar
3) ftp homes.tar to the linux box
4) on the linux box: cd /home
5) tar xvpf /tmp/homes/tar
alternatives are:
1) to "export /home" on the hp box and "mount hpbox:/home /home2" on the linux box. Then on the linux box "cd /home; mv /home2/* ."
2) use backup s/w to backup to tape from the hp box and then restore from tape to the linux box
3) tar the output over a network pipe (I remember seeing this once, very clever but I can't rememer how it went :-( )