Manual Page Result
0
Command: mailsetup | Section: 8 | Source: Digital UNIX | File: mailsetup.8.gz
mailsetup(8) System Manager's Manual mailsetup(8)
NAME
mailsetup - Configures the host's mail system
SYNOPSIS
/usr/sbin/mailsetup [-f file]
FLAGS
Specifies the name of the resulting configuration file.
DESCRIPTION
The mailsetup command sets up the mail system on your host. You can use
this command to do a quick setup where defaults are used or to do a
more extensive setup.
Before you run mailsetup your machine needs a local domain name and it
should be established on a local area network (LAN). If you have not
run bindsetup you will be asked for the BIND domain name for your local
area network. For a quick setup, the only additional information you
will be asked for is the name of the mail relay you will be using and
which users are considered local. On the more extensive setup you will
also be asked for UUCP, DECnet, and UMC configuration information,
aliases for your machine, local address formats and other domain infor-
mation.
You must run the mailsetup command as superuser and with the system in
multiuser mode.
When you run mailsetup a menu is displayed giving you a choice of re-
sponses. You are then prompted for further information.
If you do not use the -f flag, before mailsetup exits it asks if you
wish to restart your mail with this new configuration. If you answer
no, your configuration file is saved in /var/adm/sendmail/send-
mail.cf.tmp and will abort the install. If you answer yes, your
/var/adm/sendmail/sendmail.cf in /var/adm/sendmail/sendmail.cf.orig, if
no file by this name exists. If /var/adm/sendmail/sendmail.cf.orig ex-
ists, /var/adm/sendmail/sendmail.cf is moved to /var/adm/sendmail/send-
mail.cf.n, where n is the version number (0 to 6 where 0 is the most
recent). The new configuration file is then moved to /var/adm/send-
mail/sendmail.cf and sendmail is restarted.
If you use the -f flag, the configuration file is saved with the file
name specified and sendmail is not restarted.
The mailsetup script produces the following three files in
/var/adm/sendmail: sendmail.m4 hostname.m4 Makefile.cf.hostname
You can fine tune your configuration by modifying the hostname.m4 and
issuing a make -f Makefile.cf.hostname command, which produces a host-
name.cf file. you can then copy the hostname.cf file to sendmail.cf and
restart sendmail using the /sbin/init.d/sendmail restart command.
Running mailsetup
To use the mailsetup script to set up your mail system, log in as root
and complete the following steps: Invoke the mailsetup script. If you
are not running BIND, the mailsetup script asks if you want to run it.
If you answer yes, the mailsetup script calls the bindsetup script.
For more information on bindsetup, see bindsetup(8). The mailsetup
script then asks whether you want to do a quick setup. If you answer
yes, the mailsetup script prompts you for the following information:
The name of the general-purpose relay If you want to modify the list of
aliases and users that are considered local If you want to complete the
mail setup
To do an advanced mail setup, answer no. The mailsetup script
prompts you for the information you collected on the worksheet.
When you finish providing the information, the mailsetup script
asks you if you want to complete the configuration. If you an-
swer yes, the script moves the new sendmail.cf file to the sys-
tem space, saves the old sendmail.cf file, and restarts send-
mail. If you answer no, the script moves the new sendmail.cf
file to /var/adm/sendmail/sendmail.cf.tmp and exits.
FILES
Specifies the sendmail configuration file. Specifies the mail setup
product description for the configuration file. Specifies the backup
configuration files. Specifies the Original configuration file. Spec-
ifies the configuration file produced by mailsetup. Specifies the user
configurable file produced by mailsetup. Specifies the Makefile file
produced by *Lmailsetup and used to make a hostname.cf file from the
sendmail.cf and hostname.m4 files.
RELATED INFORMATION
m4(1), mail_intro(7), bindsetup(8), netsetup(8), sendmail(8)
Network Administration delim off
mailsetup(8)