Copyright (C) 2000-2012 |
Manpages CHECKSENDMAILSection: Maintenance Commands (8)Index Return to Main Contents BSD mandoc NAMEchecksendmail - verify sendmail address transformations.SYNOPSISchecksendmail [-C file.cf ] [-r resolve ] [-T test.address ] [-b sendmail_binary ]DESCRIPTIONThe checksendmail program is a perl script that aids the testing of sendmail(8)'s various configuration files. checksendmail passes 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 user@site.com The input file can contain comments started with a # and blank lines. OPTIONS
EXAMPLESThe 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 user@site.com example% checksendmail -C myconfig.cf config file: myconfig.cf resolve file: address.resolve towhom file: address.resolve fromwhom file: address.resolve Mail address resolution user --(ether )--> user[rmtc] user@site --(ether )--> user@site[rmtc] user@site.com --(ether )--> user@site.com[rmtc] `To' address transformations for mailer ether: user ----> user user@site ----> user@site user@site.com ----> user@site.com `From' address transformations for mailer ether: user ----> user user@site ----> user user@site.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:
user@site.com --(ether )--> user@site.com[rmtc]
The input address 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 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:
NOTESNote that checksendmail is a perl script. If your site does not have perl(1), it can be obtained via anonymous ftp from ftp.uu.netsendmail 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. AUTHORSGene Kim Rob Kolstad Jeff Polk SEE ALSOsendmail(8)
IndexThis document was created by man2html, using the manual pages. Time: 11:00:03 GMT, April 23, 2024 |