phquery is a sendmail "plugin" which performs a ph lookup for the recipient's email field, and resubmits it to sendmail with the new address. This is illustrated in the diagram below.
Here's how to configure sendmail to use phquery:
# cat > /etc/mailertable uiuc.edu ph:uiuc.edu # makemap -v dbm /etc/mailertable < /etc/mailertable key=`uiuc.edu', val=`ph:uiuc.edu'makemap is distributed with sendmail. The exact syntax of the makemap command will vary depending on which database library you compiled sendmail and makemap with.
FEATURE(`mailertable', `dbm -o /etc/mailertable') define(`PH_MAILER_PATH', `/usr/local/sbin/phquery')dnl MAILER(`phquery')The exact syntax of the mailertable line will vary dependong on which database library you compiled sendmail with. The definition of PH_MAILER_PATH should be set to the location in which you installed phquery.