qmail-ifenvexec
Section: User Commands (1)
Index
Return to Main Contents
NAME
qmail-ifenvexec - execute a program named by an environment variable
SYNOPSIS
Invoked from
tcpserver:
tcpserver ... qmail-ifenvexec VARIABLE
prog
DESCRIPTION
qmail-ifenvexec
checks if the enviroment variable VARIABLE is set. If it is,
it takes the value as the name of a program to execute. Any other
arguments on the command line to
qmail-ifenvexec
are passed as arguments to the new program.
If the variable is not set,
prog
is executed.
EXAMPLES
If a
tcprules
CDB has the entry:
-
192.168.1.0:allow,RECORDIO="/usr/local/bin/recordio"
and a service is started with the following command:
-
tcpserver -x rules.cdb 0 25 qmail-ifenvexec RECORDIO qmail-smtpd
then connections from 192.168.1.0 will have the SMTP conversation recorded in
the logs, while connections from other IP addresses will not.
SEE ALSO
tcpserver, tcprules
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- EXAMPLES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 09:21:51 GMT, May 04, 2005