summaryrefslogtreecommitdiffstats
path: root/qmail-smtpd.8
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2013-02-04 02:32:40 +0100
committermanuel <manuel@mausz.at>2013-02-04 02:32:40 +0100
commit8514473287c9594137c6fbc39f5619672ebc2430 (patch)
treea5b965d8c7b60dee396bf8ebe25dd3eddfaa6753 /qmail-smtpd.8
parent35ddb916045abafaa4ae2c778b9383059fa06726 (diff)
downloadqmail-8514473287c9594137c6fbc39f5619672ebc2430.tar.gz
qmail-8514473287c9594137c6fbc39f5619672ebc2430.tar.bz2
qmail-8514473287c9594137c6fbc39f5619672ebc2430.zip
[PATCH] qregex-starttls-2way-auth-20060423-mm
Diffstat (limited to 'qmail-smtpd.8')
-rw-r--r--qmail-smtpd.8133
1 files changed, 131 insertions, 2 deletions
diff --git a/qmail-smtpd.8 b/qmail-smtpd.8
index c4640b8..ce0dc02 100644
--- a/qmail-smtpd.8
+++ b/qmail-smtpd.8
@@ -14,6 +14,15 @@ must be supplied several environment variables;
14see 14see
15.BR tcp-environ(5) . 15.BR tcp-environ(5) .
16 16
17If the environment variable
18.B SMTPS
19is non-empty,
20.B qmail-smtpd
21starts a TLS session (to support the deprecated SMTPS protocol,
22normally on port 465). Otherwise,
23.B qmail-smtpd
24offers the STARTTLS extension to ESMTP.
25
17.B qmail-smtpd 26.B qmail-smtpd
18is responsible for counting hops. 27is responsible for counting hops.
19It rejects any message with 100 or more 28It rejects any message with 100 or more
@@ -23,7 +32,30 @@ or
23header fields. 32header fields.
24 33
25.B qmail-smtpd 34.B qmail-smtpd
26supports ESMTP, including the 8BITMIME and PIPELINING options. 35supports ESMTP, including the 8BITMIME, DATA, PIPELINING, SIZE, and AUTH options.
36.B qmail-smtpd
37includes a \'MAIL FROM:\' parameter parser and obeys \'Auth\' and \'Size\' advertisements.
38.B qmail-smtpd
39can accept LOGIN, PLAIN, and CRAM-MD5 AUTH types. It invokes
40.IR checkprogram ,
41which reads on file descriptor 3 the username, a 0 byte, the password
42or CRAM-MD5 digest/response derived from the SMTP client,
43another 0 byte, a CRAM-MD5 challenge (if applicable to the AUTH type),
44and a final 0 byte.
45.I checkprogram
46invokes
47.I subprogram
48upon successful authentication, which should in turn return 0 to
49.BR qmail-smtpd ,
50effectively setting the environment variables $RELAYCLIENT and $TCPREMOTEINFO
51(any supplied value replaced with the authenticated username).
52.B qmail-smtpd
53will reject the authentication attempt if it receives a nonzero return
54value from
55.I checkprogram
56or
57.IR subprogram .
58
27.SH TRANSPARENCY 59.SH TRANSPARENCY
28.B qmail-smtpd 60.B qmail-smtpd
29converts the SMTP newline convention into the UNIX newline convention 61converts the SMTP newline convention into the UNIX newline convention
@@ -37,11 +69,26 @@ accepts messages that contain long lines or non-ASCII characters,
37even though such messages violate the SMTP protocol. 69even though such messages violate the SMTP protocol.
38.SH "CONTROL FILES" 70.SH "CONTROL FILES"
39.TP 5 71.TP 5
72.I badhelo
73Unacceptable HELO/EHLO host names.
74.B qmail-smtpd
75will reject every recipient address for a message if
76the host name is listed in,
77or matches a POSIX regular expression pattern listed in,
78.IR badhelo .
79If the
80.B NOBADHELO
81environment variable is set, then the contents of
82.IR badhelo
83will be ignored.
84For more information, please have a look at doc/README.qregex.
85.TP 5
40.I badmailfrom 86.I badmailfrom
41Unacceptable envelope sender addresses. 87Unacceptable envelope sender addresses.
42.B qmail-smtpd 88.B qmail-smtpd
43will reject every recipient address for a message 89will reject every recipient address for a message
44if the envelope sender address is listed in 90if the envelope sender address is listed in, or matches a POSIX regular expression
91pattern listed in,
45.IR badmailfrom . 92.IR badmailfrom .
46A line in 93A line in
47.I badmailfrom 94.I badmailfrom
@@ -49,6 +96,45 @@ may be of the form
49.BR @\fIhost , 96.BR @\fIhost ,
50meaning every address at 97meaning every address at
51.IR host . 98.IR host .
99For more information, please have a look at doc/README.qregex.
100.TP 5
101.I badmailfromnorelay
102Functions the same as the
103.IR badmailfrom
104control file but is read only if the
105.B RELAYCLIENT
106environment variable is not set.
107For more information, please have a look at doc/README.qregex.
108.TP 5
109.I badmailto
110Unacceptable envelope recipient addresses.
111.B qmail-smtpd
112will reject every recipient address for a message if the recipient address
113is listed in,
114or matches a POSIX regular expression pattern listed in,
115.IR badmailto .
116For more information, please have a look at doc/README.qregex.
117.TP 5
118.I badmailtonorelay
119Functions the same as the
120.IR badmailto
121control file but is read only if the
122.B RELAYCLIENT
123environment variable is not set.
124For more information, please have a look at doc/README.qregex.
125
126.TP 5
127.I clientca.pem
128A list of Certifying Authority (CA) certificates that are used to verify
129the client-presented certificates during a TLS-encrypted session.
130
131.TP 5
132.I clientcrl.pem
133A list of Certificate Revocation Lists (CRLs). If present it
134should contain the CRLs of the CAs in
135.I clientca.pem
136and client certs will be checked for revocation.
137
52.TP 5 138.TP 5
53.I databytes 139.I databytes
54Maximum number of bytes allowed in a message, 140Maximum number of bytes allowed in a message,
@@ -76,6 +162,18 @@ If the environment variable
76.B DATABYTES 162.B DATABYTES
77is set, it overrides 163is set, it overrides
78.IR databytes . 164.IR databytes .
165
166.TP 5
167.I dh1024.pem
168If these 1024 bit DH parameters are provided,
169.B qmail-smtpd
170will use them for TLS sessions instead of generating one on-the-fly
171(which is very timeconsuming).
172.TP 5
173.I dh512.pem
174512 bit counterpart for
175.B dh1024.pem.
176
79.TP 5 177.TP 5
80.I localiphost 178.I localiphost
81Replacement host name for local IP addresses. 179Replacement host name for local IP addresses.
@@ -151,6 +249,19 @@ may include wildcards:
151 249
152Envelope recipient addresses without @ signs are 250Envelope recipient addresses without @ signs are
153always allowed through. 251always allowed through.
252
253.TP 5
254.I rsa512.pem
255If this 512 bit RSA key is provided,
256.B qmail-smtpd
257will use it for TLS sessions instead of generating one on-the-fly.
258
259.TP 5
260.I servercert.pem
261SSL certificate to be presented to clients in TLS-encrypted sessions.
262Should contain both the certificate and the private key. Certifying Authority
263(CA) and intermediate certificates can be added at the end of the file.
264
154.TP 5 265.TP 5
155.I smtpgreeting 266.I smtpgreeting
156SMTP greeting message. 267SMTP greeting message.
@@ -169,6 +280,24 @@ Number of seconds
169.B qmail-smtpd 280.B qmail-smtpd
170will wait for each new buffer of data from the remote SMTP client. 281will wait for each new buffer of data from the remote SMTP client.
171Default: 1200. 282Default: 1200.
283
284.TP 5
285.I tlsclients
286A list of email addresses. When relay rules would reject an incoming message,
287.B qmail-smtpd
288can allow it if the client presents a certificate that can be verified against
289the CA list in
290.I clientca.pem
291and the certificate email address is in
292.IR tlsclients .
293
294.TP 5
295.I tlsserverciphers
296A set of OpenSSL cipher strings. Multiple ciphers contained in a
297string should be separated by a colon. If the environment variable
298.B TLSCIPHERS
299is set to such a string, it takes precedence.
300
172.SH "SEE ALSO" 301.SH "SEE ALSO"
173tcp-env(1), 302tcp-env(1),
174tcp-environ(5), 303tcp-environ(5),