GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  QMAIL-MFRULES (8)

NAME

qmail-mfrules - prepare mfrules for qmail-smtpd

CONTENTS

Synopsis
Description
Addresses
Address Ranges

SYNOPSIS

qmail-mfrules

DESCRIPTION

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 qmail-smtpd.

If there is a problem with control/mailfromrules, qmail-mfrules complains and leaves control/mailfromrules.cdb alone.

qmail-mfrules ensures that control/mailfromrules.cdb is updated atomically, so qmail-smtpd never has to wait for qmail-mfrules to finish. However, qmail-mfrules makes no attempt to protect against two simultaneous updates of control/mailfromrules.cdb.

The binary control/mailfromrules.cdb format is portable across machines.

RULE FORMAT

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 qmail-smtpd(8) 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.

ADDRESSES

qmail-smtpd(8) looks for rules with various addresses in the following order:
1 $TCPREMOTEINNFO, if $TCPREMOTEINFO is set (e.g. by SMTP Authentication);
2. $TCPREMOTEINFO@$TCPREMOTEIP, if $TCPREMOTEINFO is set;
3. $TCPREMOTEINFO@=$TCPREMOTEHOST, if $TCPREMOTEINFO is set and $TCPREMOTEHOST is set;
4. $TCPREMOTEIP;
5. =$TCPREMOTEHOST, if $TCPREMOTEHOST is set;
6. shorter and shorter prefixes of $TCPREMOTEIP ending with a dot;
7. shorter and shorter suffixes of $TCPREMOTEHOST starting with a dot, preceded by =, if $TCPREMOTEHOST is set; and finally
8. =, if $TCPREMOTEHOST is set.
qmail-smtpd(1) employes the first matching rule for the MAV check. You should use the -p option to tcpserver(1) if you rely on $TCPREMOTEHOST here.

For example, here are some rules:

jsmith@virtualdomain.com:john.smith@virtualdomain.com
joe@18.23.0.32:joe@example.com
18.23.0.32:@example.com
=.heaven.mil:god@heaven.mil,st.peter@heaven.mil,-angles@heaven.mil
127.:localhost

ADDRESS RANGES

qmail-smtpd treats 1.2.3.37-53:ins as an abbreviation for the rules 1.2.3.37:ins, 1.2.3.38:ins, and so on up through 1.2.3.53:ins. Similarly, 10.2-3.:ins is an abbreviation for 10.2.:ins and 10.3.:ins.

SEE ALSO

qmail-smtpd(8)
Search for    or go to Top of page |  Section 8 |  Main Index


QMAIL-MFRULES (8) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.