imta dumpdb

The imta dumpdb command writes the entries in IMTA databases to a flat ASCII file. In particular, this command may be used to write the contents of an old style database to a file from which a new style database may be built using the imta crdb command. If you do not have write permission in the directory where you are working, the imta dumpdb command fails with the following warning:

 
# dumpdb can be executed by inetmail only
 


Note - Make sure you are logged in as inetmail (the postmaster) before performing this command.

Syntax

 
imta dumpdb input-database-spec output-file-spec
 

The parameters for this command are:

input-database-spec  

Database from which to read entries. By default, the IMTA looks for a current format database of the given name; if this does not exist, the IMTA will look for an old format database of the given name. The special keywords IMTA_ALIAS_DATABASE, IMTA_REVERSE_DATABASE, and IMTA_GENERAL_DATABASE are supported; the use of such a special keyword tells the IMTA to dump the database specified by the corresponding IMTA tailor file option.  

output-file-spec  

ASCII file to which the entries stored in the database are written. This file should be in a directory where you have write permissions.  


Examples

The following commands can be used to dump the contents of an alias database to a file, and then to recreate the alias database from that file. Type:

 
% imta dumpdb IMTA_ALIAS_DATABASE alias.tmp
 
% imta crdb alias.tmp IMTA_ALIAS_DATABASE
 




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.