Upstream qmail 1.01
[qmail] / qmail-queue.8
CommitLineData
2117e02e
MW
1.TH qmail-queue 8
2.SH NAME
3qmail-queue \- queue a mail message for delivery
4.SH SYNOPSIS
5.B qmail-queue
6.SH DESCRIPTION
7.B qmail-queue
8reads a mail message from descriptor 0.
9It then reads envelope information from descriptor 1.
10It places the message into the outgoing queue
11for future delivery by
12.BR qmail-send .
13
14The envelope information is
15an envelope sender address
16followed by a list of envelope recipient addresses.
17The sender address is preceded by the letter F
18and terminated by a 0 byte.
19Each recipient address is preceded by the letter T
20and terminated by a 0 byte.
21The list of recipient addresses is terminated by an extra 0 byte.
22If
23.B qmail-queue
24sees end-of-file before the extra 0 byte,
25it aborts without placing the message into the queue.
26
27Every envelope recipient address
28must contain a username,
29an @ sign,
30and a fully qualified domain name.
31
32.B qmail-queue
33always adds a
34.B Received
35line to the top of the message.
36Other than this,
37.B qmail-queue
38does not inspect the message
39and does not enforce any restrictions on its contents.
40However, the recipients probably expect to see a proper header,
41as described in
42.BR qmail-header(5) .
43.SH "EXIT CODES"
440 if
45.B qmail-queue
46has successfully queued the message,
47nonzero if
48.B qmail-queue
49has failed to queue the message.
50.B qmail-queue
51does not print diagnostics.
52.SH "SEE ALSO"
53addresses(5),
54envelopes(5),
55qmail-header(5),
56qmail-inject(8),
57qmail-send(8),
58qmail-smtpd(8)