summaryrefslogtreecommitdiff
path: root/doc/Old/README.mav
blob: 761155f1ae157616df4aed7c7d755a6cff31f88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Mail Address Verification (MAV)
===============================

Introduction
------------

Mail Address Verification (MAV) makes the
'Mail From:' envelope sender address authoritive.
This is facilitated by comparing the received 
'Mail From:' address in the SMTP dialoge, with a list
of addresses/domains included in a list matching

(1) the userid (=> $TCPREMOTEINFO).
(2) the IP (=> $TCPREMOTEIP),
(3) the FQDN (=> $TCPREMOTHOST),

of the connecting SMTP client to qmail-smtpd.


MAV invocation
--------------

Use the evironment variable 'LOCALMFCHECK' by
means of the qmail-smtpd start script or by means
of tcpserver's cdb file with the following definitions:

(1) LOCALMFCHECK="" - unqualified checking against 
    control/rcpthosts
(2) LOCALMFSCHECK="!" - qualified checking against
    control/mailfromrules.cdb
(3) LOCALMFCHECK="example.com" - qualified checking
    with fixed name 


MAV database
------------

Include into the file contol/mailfromrules
a list of assigned senders and designated 'Mail From:' 
addresses in the following format:

12.34.56.:@example.com
12.34.56.78:jffy@example.com,fred@noexample.com
=example.com:@example.com
joe@example.com:joe.stein@example.com

 
Note 1: The addresses are included in a tcpserver
compatible format.

Note 2: The length of the assigned email 'Mail From:'
addresses is only limited by memory.

Note 3: All assigned 'Mail From:' addresses have to
include a '@'. Checks are done for spaces. Comments
are allowed.

Note 4: All addresses are evaluated in lower case.


Run bin/qmail-mfrules to construct control/mailfromrules.cdb
out of control/mailfromrules.


Return codes
------------

In case, the match was not successful, the sending MTA
client receives the following message:

"553 sorry, invalid sender address specified (#5.7.1)"

The message can be customized by means of the environment 
variable REPLYMAV="texstring" including 'textstring' between
'specified' and the EMSSC code.


Others information
------------------

Read PROPOSAL.mav.

Read man qmail-mfrules.
Read man qmail-smtpd.
Read man qmail-control.
Perform qmail-showctl.


Erwin Hoffmann, Cologne 2005-04-26.