debian/rules: Use `git' potty wrapper.
[qmail] / qmail-local.8
CommitLineData
2117e02e
MW
1.TH qmail-local 8
2.SH NAME
3qmail-local \- deliver or forward a mail message
4.SH SYNOPSIS
5.B qmail-local
6[
7.B \-nN
8]
9.I user
10.I homedir
11.I local
12.I dash
13.I ext
14.I domain
15.I sender
212b6f5d 16.I defaultdelivery
2117e02e
MW
17.SH DESCRIPTION
18.B qmail-local
19reads a mail message
20and delivers it to
21.I user
22by the procedure described in
23.BR dot-qmail(5) .
24
25The message's envelope recipient is
26.IR local@domain .
27.B qmail-local
28records
29.I local@domain
30in a new
31.B Delivered-To
32header field.
33If exactly the same
34.B Delivered-To: \fIlocal@domain
35already appears in the header,
36.B qmail-local
37bounces the message,
38to prevent mail forwarding loops.
39
40The message's envelope sender is
41.IR sender .
42.B qmail-local
43records
44.I sender
45in a new
46.B Return-Path
47header field.
48
49.I homedir
50is the user's home directory.
51It must be an absolute directory name.
52
53.I dash
54and
55.I ext
56identify the
57.B .qmail\fIdashext
58file used by
59.BR qmail-local ;
60see
61.BR dot-qmail(5) .
62Normally
63.I dash
64is either empty or a lone hyphen.
65If it is empty,
66.B qmail-local
67treats a nonexistent
68.B .qmail\fIext
69the same way as an empty
70.BR .qmail\fIext :
71namely, following the delivery instructions in
212b6f5d 72.IR defaultdelivery .
2117e02e
MW
73
74The standard input for
75.B qmail-local
76must be a seekable file,
77so that
78.B qmail-local
79can read it more than once.
80.SH "OPTIONS"
81.TP
82.B \-n
83Instead of reading and delivering the message,
84print a description of the delivery instructions.
85.TP
86.B \-N
87(Default.) Read and deliver the message.
88.SH "EXIT CODES"
890 if the delivery is completely successful;
90nonzero if any delivery instruction failed.
91Exit code 111
92indicates temporary failure.
93.SH "SEE ALSO"
94dot-qmail(5),
95envelopes(5),
96qmail-command(8),
97qmail-queue(8),
98qmail-send(8),
99qmail-lspawn(8)