|CHECKSENDMAIL(8)||System Manager's Manual||CHECKSENDMAIL(8)|
checksendmailprogram is a perl script that aids the testing of sendmail(8)'s various configuration files.
checksendmailpasses typical addresses (supplied in input files) through sendmail and prints the results of the resolution and transformation routines.
The input files contain a list of addresses, one per line. For example:
user user@site email@example.com
The input file can contain comments started with a # and blank lines.
- Show aliasing of local addresses in mail address resolution phase of testing
- Precede each address translation line with ruleset sequence summary
- Use the sendmail configuration file file.cf instead of the default /etc/sendmail.cf file.
- Use the specified sendmail_binary as the path to invoke sendmail (instead of /usr/sbin/sendmail).
- Log sendmail address test mode debugging output to log_file
- Use resolve as the input file for the addresses to be used for mail resolving. Defaults to address.resolve.
- Use test.address as the single address to test. Cannot be used in conjunction with file setting flags.
EXAMPLES¶The following command will pass the addresses in address.resolve through sendmail using the configuration information in myconfig.cf.
example% cat address.resolve user user@site firstname.lastname@example.org example% checksendmail -C myconfig.cf system: myhost.gadget.com current dir: /tmp/Checksendmail resolve file: address.resolve sendmail binary: /usr/sbin/sendmail sendmail version: 8.9.3 config file: /etc/sendmail.cf config file version: V8/Berkeley Mail address resolution user --(ether )--> user[rmtc] user@site --(ether )--> user@site[rmtc] email@example.com --(ether )--> firstname.lastname@example.org[rmtc] `To' address transformations for mailer ether: user ----> user user@site ----> user@site email@example.com ----> firstname.lastname@example.org `From' address transformations for mailer ether: user ----> user user@site ----> user email@example.com ----> user
The first section of the output shows how the addresses in the input files are resolved by sendmail(8). Consider the following output line:
firstname.lastname@example.org --(ether )--> email@example.com[rmtc]
The input address firstname.lastname@example.org resolves to use the ether mailer. That mailer is directed to send the mail to to the user email@example.com at site rmtc (as indicated in the square brackets).
The two later sections of output show how the addresses specified as the To and From address are transformed in the text of the headers. In the example above, the To addresses are untouched. The From addresses, however, all lose their machine information on the way through the mailer:
user@site ----> user
This may be desirable when using a configuration file on a workstation which is to be hidden as a mailhost from the rest of the network.
The following is a set of addresses used at one site for the purposes of testing address resolution. Comments after the addresses detail why particular addresses are present:
- Standard trivial address
- qualified at one level
- qualified at two levels
- qualified all the way
- local but specified as uucp
- a workstation (normally delivered locally, though)
- same but more qualified
- same but fully qualified
- same but specified as uucp
- Backward compatibility tests
- Superior domain testing
- more qualified, but unknown
- more qualified and known
- name in faraway domain
- unknown machine in faraway domain
- local machine, far away domain
- far away machine
- apparently local but unknown machine
- Standard trivial address
- fully qualified but unknown machine
- standard, known, really far away domain
- standard, unknown, really far away domain
- Single level uucp
- Double level uucp
- Trickier address
- Mixed uucp/domain
- Mixed double uucp/domain
checksendmailis a perl script. If your site does not have perl(1), it can be obtained via anonymous ftp from ftp.uu.net.
sendmail requires that the user have access to
directory specified by the OQ parameter in the
configuration file (normally /usr/spool/mqueue).
checksendmail verifies that the user has access to
this directory before allowing the test to continue.
Gene Kim Rob Kolstad Jeff Polk
Modified by Robert Harker
|November 14, 2000||Linux 4.19.0-10-amd64|