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). The IP file is also parsed for environment variable settings which are exported to program. 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. If $RELAY_CTRL_LOG_ENV is set, all environment variable settings are output as well.

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

CAVEATS
relay-ctrl-check loads environment variables from the IP file using a large but fixed size buffer. Absurdly long variable settings will be silently ignored.