Debianization, and minor fixes.
[fastforward] / fastforward.1
CommitLineData
8d5530c4
MW
1.TH fastforward 1
2.SH NAME
3fastforward \- forward mail according to a cdb database
4.SH SYNOPSIS
5in
6.BR .qmail-default :
7.B | fastforward
8[
9.B \-nNpPdD
10]
11.I cdb
12.SH DESCRIPTION
13.B fastforward
14forwards each incoming message
15according to instructions in
16.I cdb
17created by
18.BR setforward .
19
20If there is no forwarding instruction in
21.I cdb
22for the incoming recipient address,
23.B fastforward
24will bounce the message.
25
26You can override
27.B .qmail-default
28with a specific
29.BR .qmail-\fIrecipient ;
30see
31.BR dot-qmail (5).
32
33Warning to system administrators:
34Messages do not reach
35.B ~alias/.qmail-default
36unless they are controlled by the
37.B alias
38user.
39See
40.BR qmail-getpw (8).
41
42.B SECURITY WARNING:
43If
44.I cdb
45includes instructions pointing to a mailing list owned by another user,
46that user gains some amount of control over
47.BR fastforward 's
48behavior.
49In particular, he can force
50.B fastforward
51to open any file that you can access,
52and to read any world-readable file that you own,
53even if the file is in a world-inaccessible directory.
54.SH "OPTIONS"
55.TP 5
56.B \-n
57No delivery.
58.B fastforward
59will print a description of its actions,
60but will not actually read or forward a message.
61.TP
62.B \-N
63(Default.)
64Forward a message as usual.
65.TP
66.B \-p
67Pass through.
68If
69.B fastforward
70does not find the recipient in
71.IR cdb ,
72it exits 0,
73giving the message to further commands in
74.BR .qmail-default .
75If
76.B fastforward
77finds the recipient,
78it forwards the message and exits 99,
79so that further commands are skipped.
80.TP
81.B \-P
82(Default.)
83Do not pass through.
84If
85.B fastforward
86finds the recipient,
87it forwards the message and exits 0.
88Otherwise it bounces the message.
89.TP
90.B \-d
91Use
92.B $DEFAULT@$HOST
93as the recipient address, or
94.B $EXT@$HOST
95if
96.B $DEFAULT
97is not set.
98.TP
99.B \-D
100(Default.)
101Use
102.B $RECIPIENT
103as the recipient address.
104.SH VERSION
105This is
106.B fastforward
1070.51.
108The
109.B fastforward
110home page is
111.BR http://pobox.com/~djb/fastforward.html .
112.SH "SEE ALSO"
113newaliases(1),
114printforward(1),
115setforward(1),
116dot-qmail(5),
117qmail-command(8),
118qmail-local(8),
119qmail-getpw(8)