 |
Index for Section 8 |
|
 |
Alphabetical listing for M |
|
mailsetup(8)
NAME
mailsetup - Configures the host's mail system
SYNOPSIS
/usr/sbin/mailsetup [-f file]
FLAGS
-f file
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 information.
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
responses. 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/sendmail.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 exists, /var/adm/sendmail/sendmail.cf is
moved to /var/adm/sendmail/sendmail.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/sendmail/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
hostname.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:
1. Invoke the mailsetup script.
2. 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).
3. 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.
4. When you finish providing the information, the mailsetup script asks
you if you want to complete the configuration. If you answer yes, the
script moves the new sendmail.cf file to the system space, saves the
old sendmail.cf file, and restarts sendmail. If you answer no, the
script moves the new sendmail.cf file to
/var/adm/sendmail/sendmail.cf.tmp and exits.
FILES
/var/adm/sendmail/sendmail.cf
Specifies the sendmail configuration file.
/var/adm/sendmail/sendmail.cf.pd
Specifies the mail setup product description for the
configuration file.
/var/adm/sendmail/sendmail.cf.{0-6}
Specifies the backup configuration files.
/var/adm/sendmail/sendmail.cf.orig
Specifies the Original configuration file.
/var/adm/sendmail/sendmail.m4
Specifies the configuration file produced by mailsetup.
/var/adm/sendmail/hostname.m4
Specifies the user configurable file produced by mailsetup.
/var/adm/sendmail/Makefile.cf.hostname
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