debian/rules: Use `git' potty wrapper.
[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
212b6f5d 28should contain a username,
2117e02e
MW
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) .
212b6f5d
MW
43.SH "FILESYSTEM RESTRICTIONS"
44.B qmail-queue
45imposes two constraints on the queue structure:
46each
47.B mess
48subdirectory must be in the same filesystem as the
49.B pid
50directory; and each
51.B todo
52subdirectory must be in the same filesystem as the
53.B intd
54directory.
2117e02e 55.SH "EXIT CODES"
2117e02e 56.B qmail-queue
212b6f5d
MW
57does not print diagnostics.
58It exits
590 if
60it has successfully queued the message.
61It exits between 1 and 99 if
62it has failed to queue the message.
63
64All
2117e02e 65.B qmail-queue
212b6f5d
MW
66error codes between 11 and 40
67indicate permanent errors:
68.TP 5
69.B 11
70Address too long.
71.TP
72.B 31
73Mail server permanently refuses to send the message to any recipients.
74(Not used by
75.BR qmail-queue ,
76but can be used by programs offering the same interface.)
77.PP
78All other
2117e02e 79.B qmail-queue
212b6f5d
MW
80error codes indicate temporary errors:
81.TP 5
82.B 51
83Out of memory.
84.TP
85.B 52
86Timeout.
87.TP
88.B 53
89Write error; e.g., disk full.
90.TP
91.B 54
92Unable to read the message or envelope.
93.TP
94.B 55
95Unable to read a configuration file.
96(Not used by
97.BR qmail-queue .)
98.TP
99.B 56
100Problem making a network connection from this host.
101(Not used by
102.BR qmail-queue .)
103.TP
104.B 61
105Problem with the qmail home directory.
106.TP
107.B 62
108Problem with the queue directory.
109.TP
110.B 63
111Problem with queue/pid.
112.TP
113.B 64
114Problem with queue/mess.
115.TP
116.B 65
117Problem with queue/intd.
118.TP
119.B 66
120Problem with queue/todo.
121.TP
122.B 71
123Mail server temporarily refuses to send the message to any recipients.
124(Not used by
125.BR qmail-queue .)
126.TP
127.B 72
128Connection to mail server timed out.
129(Not used by
130.BR qmail-queue .)
131.TP
132.B 73
133Connection to mail server rejected.
134(Not used by
135.BR qmail-queue .)
136.TP
137.B 74
138Connection to mail server succeeded,
139but communication failed.
140(Not used by
141.BR qmail-queue .)
142.TP
143.B 81
144Internal bug; e.g., segmentation fault.
145.TP
146.B 91
147Envelope format error.
2117e02e
MW
148.SH "SEE ALSO"
149addresses(5),
150envelopes(5),
151qmail-header(5),
152qmail-inject(8),
212b6f5d 153qmail-qmqpc(8),
2117e02e
MW
154qmail-send(8),
155qmail-smtpd(8)