compat_check FEATURE

The compat_check FEATURE in sendmail allows discarding, temporarily failing, or permanently rejecting mail based on an envelope sender and envelope recipient combination.

compat_check is used in conjunction with access_db. FEATURE(access_db) must appear before FEATURE(compat_check) in your sendmail macro configuration file. Place compat_check rules in the access database (i.e. /etc/mail/access).

Example

Mail from the envelope sender user@example.com to the envelope recipient bhutch@gmail.com will be discarded.

Compat:user@example.com<@>bhutch@gmail.com    DISCARD


Note: if this message from user@example.com was addressed to multiple envelope recipients, only the message to bhutch@gmail.com will be discarded. Other envelope recipients will receive the message.

Back to brandonhutchinson.com.
Last modified: 08/18/2005