chiark / gitweb /
Upstream qmail 1.01
[qmail] / qmail-smtpd.8
CommitLineData
2117e02e
MW
1.TH qmail-smtpd 8
2.SH NAME
3qmail-smtpd \- receive mail via SMTP
4.SH SYNOPSIS
5.B qmail-smtpd
6.SH DESCRIPTION
7.B qmail-smtpd
8receives mail messages via the Simple Mail Transfer Protocol (SMTP)
9and invokes
10.B qmail-queue
11to deposit them into the outgoing queue.
12.B qmail-smtpd
13must be supplied several environment variables;
14see
15.BR tcp-environ(5) .
16
17.B qmail-smtpd
18is responsible for counting hops.
19It rejects any message with 100 or more
20.B Received
21or
22.B Delivered-To
23header fields.
24
25.B qmail-smtpd
26supports ESMTP, including the 8BITMIME and PIPELINING options.
27.SH TRANSPARENCY
28.B qmail-smtpd
29converts the SMTP newline convention into the UNIX newline convention
30by converting CR LF into LF.
31
32.B qmail-smtpd
33accepts messages that contain long lines or non-ASCII characters,
34even though such messages violate the SMTP protocol.
35.SH "CONTROL FILES"
36.TP 5
37.I badmailfrom
38Unacceptable envelope sender addresses.
39.B qmail-smtpd
40will reject every recipient address for a message
41if the envelope sender address is listed in
42.IR badmailfrom .
43A line in
44.I badmailfrom
45may be of the form
46.BR @\fIhost ,
47meaning every address at
48.IR host .
49.TP 5
50.I localiphost
51Replacement host name for local IP addresses.
52Default:
53.IR me ,
54if that is supplied.
55.B qmail-smtpd
56is responsible for recognizing dotted-decimal addresses for the
57current host.
58When it sees a recipient address of the form
59.IR box@[d.d.d.d] ,
60where
61.I d.d.d.d
62is a local IP address,
63it replaces
64.IR [d.d.d.d]
65with
66.IR localiphost .
67This is done before
68.IR rcpthosts .
69.TP 5
70.I rcpthosts
71Allowed RCPT domains.
72If
73.I rcpthosts
74is supplied,
75.B qmail-smtpd
76will reject
77any envelope recipient address with a domain not listed in
78.IR rcpthosts .
79
80Exception:
81If the environment variable
82.B RELAYCLIENT
83is set,
84.B qmail-smtpd
85will ignore
86.IR rcpthosts ,
87and will append the value of
88.B RELAYCLIENT
89to each incoming recipient address.
90
91.I rcpthosts
92may include wildcards:
93
94.EX
95 heaven.af.mil
96 .heaven.af.mil
97.EE
98
99Envelope recipient addresses without @ signs are
100always allowed through.
101.TP 5
102.I smtpgreeting
103SMTP greeting message.
104Default:
105.IR me ,
106if that is supplied;
107otherwise
108.B qmail-smtpd
109will refuse to run.
110The first word of
111.I smtpgreeting
112should be the current host's name.
113.TP 5
114.I timeoutsmtpd
115Number of seconds
116.B qmail-smtpd
117will wait for each new buffer of data from the remote SMTP client.
118Default: 1200.
119.SH "SEE ALSO"
120tcp-env(1),
121tcp-environ(5),
122qmail-control(5),
123qmail-inject(8),
124qmail-queue(8),
125qmail-remote(8)