HP-UX Mailing Services Administrator's Guide

Configuring and Administering Sendmail
Configuring Sendmail to Reject Unsolicited Mail
Chapter 2 89
the message is discarded. If only one of message recipients address
resolves to the $#discard mailer, none of the recipients will receive the
mail message.
Regular Expressions
You can use regular expressions with the new map class regex. Use the
regex map to see if an address matches a certain regular expression. By
using such a map in a check rulesets (check_mail, check_rcpt,
check_relay, or check_compat), you can block a certain range of
addresses that would otherwise be considered valid.
For example, if you want to block all senders with all numeric user
names, such as 2312343@bigisp.com, you would use
SLocal_check_mail and the new regex map:
#LOCAL_CONFIG
Kallnumbers regex -a@MATCH ^[0-9]+$
LOCAL_RULESETS
SLocal_check_mail # check address against\
various regex checks
R$* $: $>Parse0 $>3 $1
R$+<@bigisp.com. >48 $: $(allnumbers$1$)
R@MATCH $#error $:553 Header Error
Defining Hosts Allowed to Relay: Class R
You can use the $=R macro to define the hosts that are allowed to relay.
The default file Sendmail uses to read values for the $=R macro is
/etc/mail/relay-domains.
Queue Changes
This section describes miscellaneous enhancements to the queue option:
The queue option allows multiple -qI, -qR, or -qS queue run
limiters.
For example, using Sendmail -qRfoo -qRbar will deliver mail to
recipients with foo or bar in their address.
•The map flag -Tx appends x to lookups that return temporary
failure. This is similar to the -ax flag, which appends x to lookups
that return success.
•The QueueSortOrder option is case sensitive.