DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Choosing an upgrade path

Migrating sendmail configuration

Two key files control sendmail operation:


/usr/lib/sendmail.cf
contains sendmail configuration information including addressing, channel, and domain information

/usr/lib/mail/aliases
contains aliases of user names to their addresses
In all cases, you can bring each of these files forward to SCO OpenServer.

Additionally, you might want to bring forward virtual domain configuration files. sendmail uses these files to route incoming mail to users whose addresses are in virtual domains on your system.

Saving sendmail data from the IFS system

The following files must be saved before you reinstall:

Example sendmail backup

A system called phoebe uses sendmail, does not use additional aliases files, and has virtual domains configured. The virtual domains are:

Domain name IP Address
veggies.com 192.168.118.1
fruits.com 192.168.118.2
nuts.com 192.168.118.3
To save the sendmail configuration for this system:

  1. Save the names and IP addresses of each of your domains, either by writing them down or by selecting Print from the Internet Manager's File menu.

  2. Save the following files to floppy (remember that the IP addresses shown below are examples only):
       /usr/lib/sendmail.cf
       /usr/lib/mail/aliases
       /usr/internet/lib/sco_mail/domains
       /usr/internet/lib/sco_mail/domains.db
       /usr/internet/ip/192.168.118.1/sco_mail/passwd
       /usr/internet/ip/192.168.118.1/sco_mail/config
       /usr/internet/ip/192.168.118.1/sco_mail/spool/*
       /usr/internet/ip/192.168.118.2/sco_mail/passwd
       /usr/internet/ip/192.168.118.2/sco_mail/config
       /usr/internet/ip/192.168.118.2/sco_mail/spool/*
       /usr/internet/ip/192.168.118.3/sco_mail/passwd
       /usr/internet/ip/192.168.118.3/sco_mail/config
       /usr/internet/ip/192.168.118.3/sco_mail/spool/*
    
A simple way to do this is to use a text editor to create a shell script which uses the tar(C) command to save these files. For example, you could create a file called savemail, which contains the following:
   tar cv6 /usr/lib/sendmail.cf \
   /usr/lib/mail/aliases \
   /usr/internet/lib/sco_mail/domains \
   /usr/internet/lib/sco_mail/domains.db \
   /usr/internet/ip/192.168.118.1/sco_mail/passwd \
   /usr/internet/ip/192.168.118.1/sco_mail/config \
   /usr/internet/ip/192.168.118.1/sco_mail/spool/* \
   /usr/internet/ip/192.168.118.2/sco_mail/passwd \
   /usr/internet/ip/192.168.118.2/sco_mail/config \
   /usr/internet/ip/192.168.118.2/sco_mail/spool/* \
   /usr/internet/ip/192.168.118.3/sco_mail/passwd \
   /usr/internet/ip/192.168.118.3/sco_mail/config \
   /usr/internet/ip/192.168.118.3/sco_mail/spool/*
To run this program, enter the following at your system prompt:

sh savemail

To confirm that the files were saved, enter the following at your system prompt:

tar tv6

The files you saved should be listed.

Restoring sendmail data on your SCO OpenServer system

After you install your SCO OpenServer system, you can use the configuration files you saved to restore your previous sendmail configuration:

  1. If you configured virtual domains, start the Internet Manager.

    Use it to configure virtual domains as described in the SCO OpenServer Handbook, using the domain name and IP addresses you saved previously. This creates the directory structure to hold the files you want to restore.

  2. Insert the floppy containing the sendmail configuration files into the disk drive.

  3. From the command line, enter:

    tar xv6

    This restores the saved sendmail (and virtual domain) configuration data.

No additional configuration is required. sendmail should now work as it did on your Internet FastStart system. You can verify that the sendmail daemon is running by entering:

ps -ef | grep send



Next topic: Migrating PPP configuration to SCO PPP from Morning Star
Previous topic: Notes for upgrading from an Internet FastStart system

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003