Upstream qmail 1.01
[qmail] / qmail-upgrade.9
CommitLineData
2117e02e
MW
1.TH qmail-upgrade 7
2.SH "NAME"
3qmail-upgrade \- user-visible differences between qmail and sendmail
4.SH "INTRODUCTION"
5You will notice some differences
6when the system switches from
7.B sendmail
8to
9.BR qmail .
10.TP 5
111.
12.B qmail-local
13sends incoming mail to
14.B ~\fIyou\fB/Mailbox
15by default,
16not
17.BR /usr/spool/mail/\fIyou\fB .
18Your system administrator has changed your
19.B MAIL
20environment variable so that your mail reader looks for
21.BR ~\fIyou\fB/Mailbox .
22.B \fR(\fB/usr/spool/mail
23is a massive security problem.)
24.TP 5
252.
26.B qmail-local
27pays no attention to
28.BR .forward .
29It has a much better mechanism,
30.BR .qmail ,
31so that you can handle not only forwarding
32but even your own mailing lists.
33See below for more details.
34.TP 5
353.
36.B qmail-local
37pays no attention to
38.BR /etc/aliases .
39Your system administrator
40can use the
41.B .qmail
42mechanism instead.
43See below.
44.TP 5
454.
46.B qmail
47does not support the
48.B \e\fIyou\fB
49mechanism
50for ignoring aliases.
51The
52.B .qmail
53mechanism is much more flexible;
54see below.
55.TP 5
565.
57.B qmail-inject
58has a completely different philosophy from
59.B sendmail
60on interpreting non-fully-qualified host names.
61It uses fixed rules, not DNS.
62Some examples at UIC:
63
64.EX
65 russet -> russet.math.uic.edu
66.br
67 newton -> newton.math.uic.edu
68.br
69 ut.ee -> ut.ee (a host in Estonia)
70.br
71 ut.ee+ -> ut.ee.uic.edu
72.br
73 uicvm+ -> uicvm.uic.edu
74.EE
75
76Here the
77.I default domain name
78(for hosts without dots)
79is
80.B math.uic.edu\fP,
81and the
82.I plus domain name
83is
84.B uic.edu\fP.
85.TP 5
866.
87Unlike
88.BR sendmail ,
89.B qmail-inject
90doesn't replace host names with canonical names.
91Example:
92.B qmail-inject
93won't change
94.B postmaster@ftp.cs.berkeley.edu
95in your header to
96.BR postmaster@kohler.cs.berkeley.edu .
97.TP 5
987.
99.B qmail-local
100adds a new field,
101.BR Delivered-To ,
102before every delivery.
103It uses the contents of
104.B Delivered-To
105to prevent mail forwarding loops.
106.TP 5
1078.
108If you send a message with only
109.B Bcc
110recipients,
111.B qmail-inject
112will add
113.B Cc: recipient list not shown:;\fR,
114rather than
115.BR sendmail 's
116privacy-invading
117.B Apparently-To
118header field.
119.SH "QMAIL MAILING LISTS"
120.B sendmail
121deals with aliases, forwarding, and mailing lists
122at the very heart of the mail system.
123
124.B qmail
125takes a radically different approach.
126It gives you the power to set up your own mailing lists without
127pestering your system administrator.
128
129Under
130.BR qmail ,
131you are in charge of all addresses of the form
132.B \fIyou\fBBREAK\fIanything\fR.
133The delivery of
134.B \fIyou\fBBREAK\fIanything
135is controlled by
136.B ~\fIyou\fB/.qmail-\fIanything\fR,
137a file in your home directory.
138
139For example, if you want to set up a
140bug-of-the-month-club mailing list,
141you can put a list of addresses into
142.BR ~\fIyou\fB/.qmail-botmc .
143Any mail to
144.B \fIyou\fBBREAKbotmc
145will be forwarded to all of those addresses.
146Mail directly to
147.B \fIyou\fB
148is controlled by
149.BR ~\fIyou\fB/.qmail .
150You can even set up a catch-all,
151.BR ~\fIyou\fB/.qmail-default ,
152to handle unknown
153.B \fIyou\fBBREAK
154addresses.
155
156Your
157.B .qmail
158files, like your old
159.BR .forward ,
160may list files,
161forwarding addresses,
162or other programs to run.
163(But beware that the syntax is a bit different;
164see
165.B dot-qmail(5)
166for more details.)
167.B qmail-local
168automatically
169detects forwarding loops the instant they occur,
170even if they happen indirectly through other hosts.
171
172As a helpful special case, if a
173.B .qmail
174file is empty, it refers to
175.BR ~\fIyou\fB/Mailbox .
176For example, if you touch
177.BR ~\fIyou\fB/.qmail-direct ,
178mail for
179.B \fIyou\fBBREAKdirect
180will act like
181.B \e\fIyou\fB
182did under
183.BR sendmail .
184
185Addresses that don't contain a username are handled by the
186.B alias
187user.
188For example, your system administrator has set up
189.B ~alias/.qmail-postmaster
190to handle mail for
191.BR Postmaster .
192(Note to administrators:
193.B ~alias
194doesn't apply to addresses that start with a user name,
195with certain exceptions.)
196.SH "SEE ALSO"
197addresses(5),
198dot-qmail(5),
199envelopes(5),
200qmail-header(8),
201qmail-inject(8)