Manual Reference Pages - QMAIL-MFRULES (8)
qmail-mfrules - prepare mfrules for qmail-smtpd
qmail-mfrules reads the addresses provided in
/var/qmail/control/mailfromrules, converts them into lowercase, and writes them into
/var/qmail/control/mailfromrules.cdb in a binary format suited
for quick access by
If there is a problem with
qmail-mfrules complains and leaves
qmail-mfrules ensures that
control/mailfromrules.cdb is updated atomically,
qmail-smtpd never has to wait for
qmail-mfrules to finish.
qmail-mfrules makes no attempt to protect against two simultaneous updates of
control/mailfromrules.cdb format is portable across machines.
A rule is one line. A file containing rules may also contain comments: lines
beginning with # are ignored. All addresses are evaluated case-insensitive.
Each rule contains an address, a colon, and a list of strings separated by
commas to be used for Mail From: Address Verification (MAV). When
receives a connection from that address, it checks whether the received
envelope sender address correspondes with a MAV string (from the right
to the left).
The MAV string for an address may be NULL in order to allow any envelope
sender address. NULLSENDER envelope addresses are not subject of the MAV.
looks for rules with various addresses in the following order:
employes the first matching rule for the MAV check. You should use the
-p option to
if you rely on $TCPREMOTEHOST here.
$TCPREMOTEINNFO, if $TCPREMOTEINFO is set (e.g. by SMTP Authentication);
$TCPREMOTEINFO@$TCPREMOTEIP, if $TCPREMOTEINFO is set;
$TCPREMOTEINFO@=$TCPREMOTEHOST, if $TCPREMOTEINFO is set and $TCPREMOTEHOST is
=$TCPREMOTEHOST, if $TCPREMOTEHOST is set;
shorter and shorter prefixes of $TCPREMOTEIP ending with a dot;
shorter and shorter suffixes of $TCPREMOTEHOST starting with a dot, preceded
by =, if $TCPREMOTEHOST is set; and finally
=, if $TCPREMOTEHOST is set.
For example, here are some rules:
qmail-smtpd treats 22.214.171.124-53:ins as an abbreviation for the rules 126.96.36.199:ins,
188.8.131.52:ins, and so on up through 184.108.40.206:ins. Similarly, 10.2-3.:ins is an
abbreviation for 10.2.:ins and 10.3.:ins.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.