HP-UX Mailing Services Administrator's Guide
Configuring and Administering Sendmail
Troubleshooting Sendmail
Chapter 294
Verifying Address Resolution and Aliasing
In order to deliver a message, Sendmail must first resolve the recipient
addresses appropriately. To determine how Sendmail would route mail to
a particular address, issue the following command:
/usr/sbin/sendmail -bv -v -oL10 address [address...]
The -bv (verify mode) option causes Sendmail to verify addresses
without collecting or sending a message.
The -v (verbose) flag causes Sendmail to report alias expansion and
duplicate suppression.
The -oL10 (log level) option sets the log level to 10. At log level 10 and
above, sendmail -bv reports the mailer and host to which it resolves
recipient addresses.
For hosts that resolve to IPC mailers, MX hosts are not reported when
using verify mode, because MX records are not collected until delivery is
actually attempted.
If the address is not being resolved as you expect, you may have to
modify one or more of the following:
• The Sendmail configuration file
• The files or programs from which file classes are generated
• The name server configuration
• The UUCP configuration
More detailed information about how the configuration file is rewriting
the recipient addresses is provided by address test mode:
/usr/sbin/sendmail -bt
Verifying Message Delivery
You can observe Sendmail’s interaction with the delivery agents by
delivering the message in verbose mode, as in the following example:
/usr/sbin/sendmail -v myname@hp.com
Sendmail is now ready for you to type a message. After the message, type
a period (.) on an empty line to denote the end of the message, as in the
following example: