a509ea630c7f4922b87f03f9282b6baf30dfbde4
[mmh] / man / mh-tailor.man
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH MH-TAILOR %manext5% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 mh-tailor, mts.conf \- mail transport configuration for nmh message handler
7 .SH SYNOPSIS
8 .I %etcdir%/mts.conf
9 .SH DESCRIPTION
10 The file
11 .I %etcdir%/mts.conf
12 defines run-time options for those
13 .B nmh
14 programs which interact (in some form) with the message transport system.
15 At present, these (user) programs are:
16 .BR ap ,
17 .BR conflict ,
18 .BR inc ,
19 .BR msgchk ,
20 .BR msh ,
21 .BR post ,
22 .BR rcvdist ,
23 and
24 .BR rcvpack .
25 .PP
26 Each option should be given on a single line.  Blank lines and lines
27 which begin with `#' are ignored.  The options available along with
28 default values and a description of their meanings are listed below:
29 .PP
30 .BR mts :
31 .RS 5
32 The mail transport method to use.  The three acceptable options are
33 .B smtp
34 (which is the default),
35 .BR sendmail/smtp ,
36 and
37 .BR sendmail/pipe .
38 .PP
39 If you use
40 .BR smtp ,
41 this will enable a direct SMTP (simple mail transport
42 protocol) interface in
43 .BR nmh .
44 When sending mail, instead of passing the
45 message to the mail transport agent,
46 .B post
47 will open a socket connection
48 to the mail port on the machine specified in the
49 .B servers
50 entry.
51 .PP
52 If you use
53 .BR sendmail/smtp ,
54 then
55 .B post
56 will send messages by forking a
57 local copy of
58 .BR sendmail .
59 It will still speak SMTP with this local copy of
60 .BR sendmail .
61 .PP
62 The third alternative,
63 .BR sendmail/pipe ,
64 also forks a local copy of
65 .B sendmail
66 but feeds the message directly to it, using
67 .B sendmail
68 .BR -t .
69 This replaces the old, undocumented
70 .B spost
71 mechanism and retains some of its limitations, such as lack of
72 support for the
73 .B \-whom
74 switch and
75 \*(lqDcc:\*(rq header field.
76 .RE
77 .PP
78 .BR localname :
79 .RS 5
80 The hostname
81 .B nmh
82 considers local.  It should typically be a fully
83 qualified hostname.  If this is not set, depending on the version of
84 UNIX you're running,
85 .B nmh
86 will query the system for this value
87 (e.g. uname, gethostname, etc.), and attempt to fully qualify this
88 value.
89 .PP
90 If you are using POP to retrieve new messages, you may want to set this
91 value to the name of the POP server, so that outgoing message appear to
92 have originated on the POP server.
93 .RE
94 .PP
95 .BR localdomain :
96 .RS 5
97 If this is set, a `.' followed by this string will be appended to your
98 hostname.
99 .PP
100 This should only be needed, if for some reason
101 .B nmh
102 is not able to
103 fully qualify the hostname returned by the system (e.g. uname,
104 gethostname, etc.).
105 .RE
106 .PP
107 .BR clientname :
108 .RS 5
109 This option specifies the host name that
110 .B nmh
111 will give in the
112 SMTP
113 .B HELO
114 (and
115 .BR EHLO )
116 command, when posting mail.  If not
117 set, the default is to use the host name that
118 .B nmh
119 considers local
120 (see
121 .B localname
122 above).  If this option is set, but empty, no
123 .B HELO
124 command will be given.
125 .PP
126 Although the
127 .B HELO
128 command is required by RFC\-821, many SMTP servers
129 do not require it.  Early versions of
130 .I SendMail
131 will fail if the hostname
132 given in the
133 .B HELO
134 command is the local host.  Later versions of
135 .I SendMail
136 will complain if you omit the
137 .B HELO
138 command.  If you run
139 .IR SendMail ,
140 find out what your system expects and set this field if needed.
141 .RE
142 .PP
143 .BR systemname :
144 .RS 5
145 This option is only used for UUCP mail.  It specifies the name of the
146 local host in the UUCP \*(lqdomain\*(rq.  If not set, depending
147 on the version of UNIX you're running,
148 .B nmh
149 will query the system
150 for this value.  This has no equivalent in the
151 .B nmh
152 configuration
153 file.
154 .RE
155 .PP
156 .BR mmdfldir :
157 %mailspool%
158 .RS 5
159 The directory where maildrops are kept.  If this option is set, but empty,
160 the user's home directory is used.  This overrides the default value
161 chosen at the time of compilation.
162 .RE
163 .PP
164 .BR mmdflfil :
165 .RS 5
166 The name of the maildrop file in the directory where maildrops are kept.
167 If this is empty, the user's login name is used.  This overrides the default
168 value (which is empty).
169 .RE
170 .PP
171 .BR mmdelim1 :
172 \&\\001\\001\\001\\001\\n
173 .RS 5
174 The beginning-of-message delimiter for maildrops.
175 .RE
176 .PP
177 .BR mmdelim2 :
178 \&\\001\\001\\001\\001\\n
179 .RS 5
180 The end-of-message delimiter for maildrops.
181 .RE
182 .PP
183 .BR maildelivery :
184 %libdir%/maildelivery
185 .RS 5
186 The name of the system-wide default
187 .I maildelivery
188 file.
189 See
190 .BR slocal (1)
191 for the details.
192 .RE
193 .PP
194 .BR everyone :
195 200
196 .RS 5
197 The highest user-id which should NOT receive mail addressed to
198 \*(lqeveryone\*(rq.
199 .RE
200 .PP
201 .BR noshell :
202 .RS 5
203 If set, then each user-id greater than \*(lqeveryone\*(rq that has a
204 login shell equivalent to the given value (e.g., \*(lq/bin/csh\*(rq)
205 indicates that mail for \*(lqeveryone\*(rq should not be sent to them.
206 This is useful for handling admin, dummy, and guest logins.
207 .RE
208 .SS "SMTP support"
209 This option is only available if you set
210 .B mts
211 to
212 .BR smtp .
213 .PP
214 .BR servers :
215 localhost
216 .RS 5
217 A lists of hosts and networks which to look for SMTP servers when
218 posting non\-local mail.  It turns out this is a major win for hosts
219 which don't run an message transport system.  The value of
220 .B servers
221 should be one or more items.  Each item is the name of a host which
222 is (hopefully) running a SMTP server.
223 .SS "SendMail"
224 This option is only available if you set
225 .B mts
226 to
227 .BR sendmail .
228 .PP
229 .BR sendmail :
230 %sendmailpath%
231 .RS 5
232 The pathname to the
233 .B sendmail
234 program.
235 .RE
236 .SS "Post Office Protocol"
237 This option is only available if you have compiled
238 .B nmh
239 with POP support enabled (i.e., \*(lq--enable-pop\*(rq).
240 .PP
241 .BR pophost :
242 .RS 5
243 The name of the default POP service host.  If this is not set, then
244 .B nmh
245 looks in the standard maildrop areas for waiting mail, otherwise
246 the named POP service host is consulted.
247 .RE
248 \"  .SS "BBoards Delivery"
249 \"  This option is only available if you compiled \fInmh\fP with
250 \"  \*(lqbbdelivery:\ on\*(rq.
251 \"  .PP
252 \"  .BR bbdomain :
253 \"  .RS 5
254 \"  The local BBoards domain (a UCI hack).
255 \"  .RE
256
257 \"  .SS "BBoards & The POP"
258 \"  These options are only available if you compiled \fInmh\fP with
259 \"  \*(lqbboards:\ pop\*(rq and \*(lqpop:\ on\*(rq.
260
261 \"  .PP
262 \"  .BR popbbhost :
263 \"  .RS 5
264 \"  The POP service host which also acts as a BBoard server.  This variable
265 \"  should be set on the POP BBoards client host.
266 \"  .RE
267 \"  .PP
268 \"  .BR popbbuser :
269 \"  .RS 5
270 \"  The guest account on the POP/BB service host.  This should be a different
271 \"  login ID than either the POP user or the BBoards user.  (The user-id
272 \"  \*(lqftp\*(rq is highly recommended.)  This variable should be set on
273 \"  both the POP BBoards client and service hosts.
274 \"  .RE
275 \"  .PP
276 \"  .BR popbblist :
277 \"  %etcdir%/hosts.popbb
278 \"  .RS 5
279 \"  A file containing of lists of hosts that are allowed to use the POP
280 \"  facility to access BBoards using the guest account.  If this file is not
281 \"  present, then no check is made.  This variable should be set on the POP
282 \"  BBoards service host.
283 \"  .RE
284
285 .SS "File Locking"
286 A few words on locking:
287 .B nmh
288 has several methods for creating locks
289 on files.  When configuring
290 .BR nmh ,
291 you will need to decide on the
292 locking style and locking directory (if any).  The first controls the
293 method of locking, the second says where lock files should be created.
294 .PP
295 To configure
296 .B nmh
297 for kernel locking, use the \*(lq--with-locking=flock\*(rq configure option if
298 you want to use the
299 .B flock
300 system call; use \*(lq--with-locking=lockf\*(rq if
301 you want to use the
302 .B lockf
303 system call; or use \*(lq--with-locking=fcntl\*(rq
304 if you want to use the
305 .B fcntl
306 system call for kernel-level locking.
307 .PP
308 Instead of kernel locking, you can configure
309 .B nmh
310 to use dot locking by using \*(lq--with-locking=dot\*(rq.  Dot locking
311 specifies that
312 a file should be created whose existence means \*(lqlocked\*(rq and
313 whose non-existence means \*(lqunlocked\*(rq.  The name of this file is
314 constructed by appending \*(lq.lock\*(rq to the name of the file being
315 locked.  If \*(lq--enable-lockdir=directory\*(rq
316 is not specified at build time, lock files will be created
317 in the directory where the file being locked resides.  Otherwise, lock
318 files will be created in the directory specified by
319 \*(lq--enable-lockdir\*(rq.
320 .PP
321 Prior to installing
322 .BR nmh ,
323 you should see how locking is done at
324 your site, and set the appropriate values.
325
326 .SH FILES
327 .fc ^ ~
328 .nf
329 .ta \w'%etcdir%/ExtraBigFileName  'u
330 ^%etcdir%/mts.conf~^nmh mts configuration file
331 .fi
332
333 .SH "PROFILE COMPONENTS"
334 None
335
336 .SH "SEE ALSO"
337 mh\-mts(8), post(8)
338
339 .SH DEFAULTS
340 As listed above.  The path of the mail transport configuration
341 file can be changed with the
342 .B MHMTSCONF
343 environment variable and augmented with the
344 .B MHMTSUSERCONF
345 environment variable, see mh\-profile(5).
346
347 .SH BUGS
348 Failure to open any mail transport configuration file is silently
349 ignored.  Therefore, it's best to avoid dynamic creation of such
350 a file with the intent of use via the
351 .B MHMTSCONF
352 or
353 .B MHMTSUSERCONF
354 environment variables.  If such use is necessary, the ability
355 to successfully open the file should first be verified.