📄 tmail.1
字号:
.ig * ======================================================================== * Copyright 1988-2007 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * * ========================================================================...TH TMAIL 1 "September 27, 2007".SH NAMEtmail \- Mail Delivery Module.nh.SH SYNOPSIS.B tmail.I [-b format] [\-D] [-f from_name] [\-I inbox_specifier] user[+folder] ....SH DESCRIPTION.I tmaildelivers mail to a user's INBOX or a designated folder..I tmailmay be configured as a drop-in replacement for.IR binmail (1),.IR mail.local (1)or any program intended for use for mail delivery by a mail delivery programsuch as.IR sendmail (8)..PP.I tmailis intended to be used for direct delivery by the mailer daemon;.IR dmail (1)is the preferred tool for user applications, e.g. a mail deliveryfilter such as.IR procmail (1) .If.I tmailis used for a user application,then the calling program must be aware of the restrictions noted below..PPWhen.I tmailexits, it returns exit status values to enable the mail delivery programto determine whether a message was delivered successfully or had atemporary (requeue for later delivery) or permanent (return to sender)failure..PPIf the .I +folderextension is included in the user argument, .I tmailwill attempt to deliver to the designated folder. If the folder does not exist or the extension is not included, the message is delivered to the user's INBOX.If delivery is to INBOX and no INBOX currently exists,.I tmailwill create a new INBOX, using the \fB-I\fR or \fB-b\fR flag if specified..I tmailrecognizes the format of an existing INBOX or folder, and appends the newmessage in that format..PPThe \fB-b\fR flag specifies a format to create INBOX if INBOX does notalready exist. This flag requires privileges, and can not be used with\fB-I\fR. The argument isa format name such as mix, mbx, etc..PPThe \fB-D\fR flag specifies debugging; this enables additional messagetelemetry..PPThe \fB-f\fR or \fB-r\fR flag is used bythe mail delivery program to specify a Return-Path. The header.br Return-Path: <\fIfrom_name\fR> .br is prepended to the message before delivery. .PPThe \fB-I\fR flag is used by the mail delivery programto specify an alternative INBOX name. This flag requires privileges,and can not be used with \fB-b\fR. This affects the location and formatof INBOX. If specified, it should be in one of three forms:.spThe first form of argument to \fB-I\fR is the string "INBOX", whichmeans to write to the system default inbox using the system defaultmailbox format. These system defaults are defined when the c-clientlibrary is built..spThe second form of argument to \fB-I\fR is a delivery specification,consisting of "#driver.", a c-client mailbox format driver name, "/",and a file name. This will write to the specified file in thespecified format. For example, #driver.mbx/INBOX will write to file"INBOX" in the home directory in mbx format; and#driver.unix/mail/incoming will write to file "incoming" in theuser's "mail" subdirectory in unix (default UNIX) format..spThe third form of argument to \fB-I\fR is any other name. Normally,this will write to the specified file on the user's home directory inthe specified format. However, certain names are special. These are:.PP.nf value equivalant to ----- ------------- INBOX.MTX #driver.mtx/INBOX.MTX mbox #driver.unix/mbox mail.txt #driver.tenex/mail.txt.fi.PPIf \fB-I\fR is not specified, the default action is \fB-I INBOX\fR..PPIf multiple recipients are specified on the command line,.I tmailspawns one child process per recipient to perform actual delivery. Thisway of calling.I tmailis not recommended; see below under.IR RESTRICTIONS ..SH INSTALLATIONIf .I tmailis to be used for mail delivery from the mail delivery program, it .I mustbe installed setuid root..spIf sendmail is the mail delivery program,.I tmailis invoked from sendmail.cf. Look for the "Mlocal" line, and substitutethe path name for the.I tmailbinary in place of /bin/mail, /usr/lib/mail.local, etc. You should alsoadd the flag to invoke.I tmailwith CRLF style newlines; this is usually done with E=\\r\\n in the Mlocalline..spHere is an example of an Mlocal line in sendmail version 8:.sp.nfMlocal, P=/usr/local/etc/tmail, F=lsDFMAw5:/|@qPrn+, S=10/30, R=20/40, E=\\r\\n, T=DNS/RFC822/X-Unix, A=tmail $u.fi.PPIf.I tmailis to be called with the \fB-I\fR flag, it must be invoked with bothreal and effective UID root. Many sendmail configurations invoke thelocal mailer as the sending user when that user is local, whichwill prevent \fB-b\fR or \fB-I\fR from working..SH SECURITY CONSIDERATIONSIf.I tmailis invoked by an ordinary user, the Received: header line willindicate the name or UID of the user that invoked it..PPOrdinary users are not permitted to use the \fB-b\fR or \fB-I\fR flag sinceotherwise a user could create any file on another user's directory..PP.I tmailcan deliver mail to home directories. In addition,.I tmailcan be used to deliver mail to other mail folders in a home directoryor an inferior directory of a home directory..SH RESTRICTIONSThe calling program should invoke.I tmailwith CRLF newlines, otherwise.I tmailwill complain in syslog..PPAbsolute pathnames and .I ~userspecifications are not permitted in.I +folderextensions..PPOrdinary users are not permitted to use the \fB-I\fR flag..PPIMAP4 namespace names are not yet supported in .I +folderextensions..PPIt is not possible to use.I tmailto deliver to.IR mh (1)format mailboxes..PPIf delivery to multiple users is specified and delivery to any single userfails, the entire delivery will be reported as having failed, even thoughdelivery to other users may have succeeded. If.I tmailis used for mail delivery from.IR sendmail (8),a separate tmail invocation should be done for each user. Otherwise adelivery failure for a single user in a message going to multiple userswill cause multiple deliveries to all the other users every time.IR sendmail (8),retries..SH AUTHORMark Crispin, MRC@CAC.Washington.EDU.SH "SEE ALSO"binmail(1).brsendmail(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -