Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sendmail(8)

bindsetup(8)

netsetup(8)

m4(1)

mailsetup(8)

Name

mailsetup − Configures the host’s mail system

Syntax

/usr/etc/mailsetup [ -f file ]

Options

−f file Specifies the name you want for the resulting sendmail 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 are asked for the BIND domain name for your local area network.  For a quick setup, the only additional information you need to supply is the name of the mail relay you are using and which users are considered local.  On the more extensive setup you also are 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 option, before mailsetup exits, it asks whether you want to restart your mail with this new configuration.  If you answer no, the utility saves your configuration file in /etc/sendmail.cf.tmp and aborts the install.  If you answer yes, and no file by this name exists, your /etc/sendmail.cf file is put in /etc/sendmail.cf.orig. If a /etc/sendmail.cf.orig file does exist, /etc/sendmail.cf is moved to /etc/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 /etc/sendmail.cf and sendmail is restarted.

If you use the −f option, the configuration file is saved with the file name specified and sendmail is not restarted.

The mailsetup script produces the following three files in /etc:

sendmail.m4

hostname.m4

Makefile.cf.hostname

You can fine tune your configuration by first modifying the file hostname.m4. Next, issue the following command:
make −f Makefile.cf.hostname . 

This command produces a hostname.cf file.  You can then copy the hostname.cf file to sendmail.cf and restart sendmail.
 

Files

/etc/sendmail.cf
Specifies the sendmail configuration file.

/etc/sendmail.cf.pd
Specifies the mail setup product description for the configuration file.

/etc/sendmail.cf.{0-6}
Specifies the backup configuration files.

/etc/sendmail.cf.orig
Specifies the Original configuration file.

/etc/sendmail.m4
Specifies the configuration file produced by mailsetup.

/etc/sendmail.hostname.m4
Specifies the user configurable file produced by mailsetup.

/etc/Makefile.cf.hostname
Specifies the Makefile file produced by mailsetup and used to make a hostname.cf file from the sendmail.cf and hostname.m4 files.

See Also

sendmail(8), bindsetup(8), netsetup(8), m4(1)
 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026