relay-ctrl-check(8)

NAME
relay-ctrl-check - check if the (SMTP) client is allowed to relay

SYNOPSIS
relay-ctrl-check program [ arguments ... ]

DESCRIPTION
Before executing program, relay-ctrl-check checks if $RELAYCLIENT is set. If not, it looks up the IP specified by $TCPREMOTEIP in the directory specified by $RELAY_CTRL_DIR. If the IP file exists, and is not more than $RELAY_CTRL_EXPIRY seconds old (which defaults to 900 or 15 minutes), then $RELAYCLIENT is set to the value of $RELAY_CTRL_RELAYCLIENT (which defaults to an empty string). Otherwise the IP file is removed and ignored. If $RELAY_CTRL_LOG_IPS is set, this program will output a message reporting if it set $RELAYCLIENT, and why or why not.

SEE ALSO
relay-ctrl-age(8), relay-ctrl-allow(8), qmail-smtpd(8), tcpserver(1)