beautypg.com

Migrating sendmail and mail programs – Nvidia FreeBSD Server to FreeBSD v2 Server User Manual

Page 6

background image


Nvision.com, Inc.

Migrating from a FreeBSD Server to a FreeBSD v2 Server

Migrating Sendmail and Mail programs

If you are using Procmail, Spamassassin, Majordomo, or any other mail program that needs to
make modifications to the sendmail.cf file, you need to:

1. Do a vinstall of these programs first. To see a list of available vinstalls type the

following at the shell command line:

% vinstall -l

2. If you have made any changes to the configuration files for any of these programs, make

the same changes now.

3. Additionally, if you have made any changes to your .procmailrc files, copy those

changes to the new .procmailrc file as well.

4. Run the migratesm script located at /.migrate/bin/migratesm. This will create your

aliases, virtmaps, access, and local-host-names files as well as restart Sendmail to make
the changes take effect.

5. If you have any Majordomo mailing list in the default location of

~/usr/local/majordomo/Lists/, those lists will be copied over to the FreeBSD v2 Server
default location of /usr/local/majordomo/lists/.

6. When the migratesm script has finished running, an ALIASES_TODO file is created

with a list of mailing lists, programs, and other files that appear on the right-hand-side of
the new aliases file. Examine that file to verify that those files are in the same location
on your FreeBSD v2 Server as they were on FreeBSD Server.

7. When you have completed this, run the migratesm script a second time using the

following sysntax:

% migratesm -intodo

This will interpret the input ALIASWS_TODO lines as follows
Lines beginning with a pound sign (#) are ignored
Lines of the form "alias: Y RHS" (where the "center" field is a literal "Y") are

ignored. (The "Y" means that the file named in the RHS already exists on the
FreeBSD v2 Server, and doesn't need to be copied from the FreeBSD Server location
mentioned in the RHS.)

Lines of the form "alias: N RHS" (where the "center" field is a literal "N") cause

migratesm to attempt to copy the file mentioned in RHS to the same location in the
FreeBSD v2 Server file system.

If the copy succeeds, migratesm changes the "N" in the middle field to "Y" in the

updated ALIASES_TODO.

If the copy fails because the file does not exist in the FreeBSD Server directory

structure, migratesm changes the "N" in the middle field to "N*".

Lines of the form "alias: N* RHS" (where the "center" field is a literal "N" followed

by an asterisk [*])) are ignored.

Lines of the form "--DESTDIR: /dir/name" (where the line begins with the literal

string "--DESTDIR:" and is followed by the path to a FreeBSD v2 Server directory)
override where files listed in subsequent line(s) are copied to. (The files listed in
subsequent lines are copied from the location named in the third field of the line, to
the directory listed following --DESTDIR.)

Lines of the form "--DFLTDEST" cancel the effect of preceding --DESTDIR lines,

causing the source and destination directories of subsequent lines to be the same.

All other lines are ignored.

Migrating Sendmail and Mail Programs

3