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

Содержание FreeBSD Server

Страница 1: ...Nvision com Inc FreeBSD Server to FreeBSD v2 Server Self Migration Process for FreeBSD v2 Server Administrators First Edition September 2003...

Страница 2: ...e Shadow Process 1 Creating Users 1 Adding Virtual Hosts and Other Apache Changes 1 Migrating Sendmail and Mail programs 3 Vinstalling Additional Add ons 5 Perl Modules 5 Migrating Databases 6 Moving...

Страница 3: ...ybe even days depending on your knowledge of the FreeBSD Server and FreeBSD v2 Servers and the amount of changes you have made to a standard FreeBSD Server server Starting the Shadow Process The Shado...

Страница 4: ...ciate each Virtual Host with a user and put the Virtual Host site under that user s home directory For example if you have a Virtual Host for test2 com and bob owns that site you would want to add the...

Страница 5: ...sts htdocs directory and cgi bin directory 5 To copy the htdocs directory go to the migrate accountname www vhosts www test1 com htdocs Type the following to copy the contents cd migrate accountname w...

Страница 6: ...d 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 Lin...

Страница 7: ...e lists will be copied to the FreeBSD v2 Server default location of usr local majordomo lists 8 When you have finished check the following files for errors etc mail aliases etc mail virtmaps etc mail...

Страница 8: ...eeBSD v2 Server now uses the default Perl method of installing modules To install a module using CPAN 1 Type the following at the shell prompt perl MCPAN e shell The first time you run CPAN you will b...

Страница 9: ...ysqladmin u root password your new password here In addition if you have other users you will need to create the extra users at this point with their proper permissions 3 Create the databases from the...

Страница 10: ...hose lines near the beginning run the following command to remove the encryption openssl rsa in ssl pk out ssl pk 4 Edit your httpd conf file located in the usr local apache conf directory to look for...

Страница 11: ...servers have cached their DNS before you have support change your DNS back and your TTL it will take those DNS servers 24 hours to update you DNS information again To avoid all this you can have suppo...

Страница 12: ...e to the root directory of the FreeBSD v2 Server Do this for each database that you have 12 SSH into your FreeBSD v2 Server and type the following to create the database structure and enter the data i...

Страница 13: ...cate a reference to another part of the same document The grey portion of the cross reference is hot linked to the appropriate section of the document followed by a page number also hot linked to the...

Страница 14: ...ues you might not discover by yourself The Tip List special element is used when multiple tips are used Note Used to highlight certain information for the reader Generally the Note element provides ad...

Отзывы: