⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmail.8

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 8
字号:
.TH sendmail 8.SH Namesendmail, newaliases, mailq \- send mail over the internet.SH Syntax.B /usr/lib/sendmail[.I flags] [.I address ...].PP.B newaliases.PP.B mailq.SH Description.NXR "sendmail program"The .PN sendmailcommand sends a message to one or more people,routing the message over whatever networksare necessary.  The.PN sendmailcommand does internetwork forwarding as necessaryto deliver the message to the correct place..PPThe .PN sendmailcommand is not intended as a user interface routine.  Other programs provide user-friendly front ends, while.PN sendmailis used only to deliver pre-formatted messages..PPWith no flags,.PN sendmailreads its standard inputup to a CTRL/Dor a line with a single dotand sends a copy of the letter found thereto all of the addresses listed.It determines the network to usebased on the syntax and contents of the addresses..PPLocal addresses are looked up in a fileand aliased appropriately.Aliasing can be prevented by preceding the addresswith a backslash.Normally the sender is not included in any aliasexpansions, for example,if `john' sends to `group',and `group' includes `john' in the expansion,then the letter will not be delivered to `john'..SH Flags.IP \-ba 15Go into \s-1ARPANET\s0 mode.All input lines must end with a CR-LF,and all messages will be generated with a CR-LF at the end.Also,the `From:' and `Sender:'fields are examined for the name of the sender..IP \-bdRun as a daemon.  This requires Berkeley IPC..IP \-biInitialize the alias database..IP \-bmDeliver mail in the usual way (default)..IP \-bpPrint a listing of the queue..IP \-bsUse the \s-2SMTP\s0 protocol as described in RFC 821.This flag implies all the operations of the.B \-baflag that are compatible with \s-2SMTP\s0..IP \-btRun in address test mode.This mode reads addresses and shows the steps in parsing;it is used for debugging configuration tables..IP \-bvVerify names only.  Do not try to collect or deliver a message.Verify mode is normally used for validatingusers or mailing lists..IP \-bzCreate the configuration freeze file..IP \-C\fIfile\fRUse alternate configuration file..\" .IP \-d\fIX\fR.\" Set debugging value to.\" \fIX\fR..IP \-F\fIfullname\fRSet the full name of the sender..IP \-f\fIname\fRSets the name of the from person, that is, the sender of the mail.The .PN \-fflag can only be usedby the special users.PN root ,.PN daemon ,and.PN network ,or if the person you are trying to becomeis the same as the person you are..IP \-h\fIN\fRSet the hop count to.I N.The hop count is incremented every time the mail isprocessed.When it reaches a limit,the mail is returned with an error message,the victim of an aliasing loop..IP \-nDo not do aliasing..IP "\-o\fIx value\fR"Set option.I xto the specified.I value.Options are described below..IP "\-q[ \fItime\fR ]"Process saved messages in the queue at given intervals.If.I timeis omitted, process the queue once.  The.I timeargument is given as a tagged number,with `s' being seconds,`m' being minutes,`h' being hours,`d' being days,and`w' being weeks.For example,`\-q1h30m' or `\-q90m'would both set the timeout to one hour thirty minutes..IP \-r\fIname\fRAn alternate and obsolete form of the.PN \-fflag..IP \-tRead message for recipients.To:, Cc:, and Bcc: lines will be scanned for people to send to.The Bcc: line will be deleted before transmission.Any addresses in the argument list will be suppressed..IP \-vGo into verbose mode.For example, alias expansions will be announced..SH OptionsThere are also a number of processing options that may be set.Normally these will only be used by a system administrator.Options may be set either on the command lineusing the.PN \-oflagor in the configuration file..IP A\fIfile\fR 15Use alternate alias file..IP cDo not initiate immediate connection to mailers that are considered expensive to connect to.  This requires queueing..IP d\fIx\fRSet the delivery mode to.I x.Delivery modes are`i' for interactive (synchronous) delivery,`b' for background (asynchronous) delivery,and`q' for queue only \- that is,actual delivery is done the next time the queue is run..IP DTry to automatically rebuild the alias databaseif necessary..IP e\fIx\fRSet error processing to mode.I x.Valid modes are`m' to mail back the error message,`w' to write back the error message(or mail it back if the sender is not logged in),`p' to print the errors on the terminal(default),`q' to throw away error messages(only exit status is returned),and `e'to do special processing for the BerkNet.If the text of the message is not mailed backbymodes `m' or `w'and if the sender is local to this machine,a copy of the message is appended to the file.PN dead.letter in the sender's home directory..IP F\fImode\fRThe mode to use when creating temporary files..IP fSave UNIX \f(CWFrom\fP lines at the front of messages..IP g\fIN\fRThe default group id to use when calling mailers..IP H\fIfile\fRThe SMTP help file..IP iDo not take dots on a line by themselvesas a message terminator..IP L\fIn\fRThe log level..IP mSend to me (the sender) also if I am in an alias expansion..IP oIf set, this message may haveold style headers.If not set,this message is guaranteed to have new style headers(that is, commas instead of spaces between addresses).If set, an adaptive algorithm is used that will correctlydetermine the header format in most cases..IP Q\fIqueuedir\fRSelect the directory in which to queue messages..IP r\fItimeout\fRThe timeout on reads;if none is set,.PN sendmailwill wait forever for a mailer..IP S\fIfile\fRSave statistics in the named file..IP sAlways instantiate the queue file,even under circumstances where it is not strictly necessary..IP T\fItime\fRSet the timeout on messages in the queue to the specified time.After sitting in the queue for this amount of time,they will be returned to the sender.The default is three days..IP t\fIstz,dtz\fRSet the name of the time zone..IP u\fIN\fRSet the default user id for mailers..PPIf the first character of the user nameis a vertical bar,the rest of the user name is used as the name of a programto pipe the mail to.It may be necessary to quote the name of the userto keep.PN sendmailfrom suppressing the blanks from between arguments..PP.PN Sendmailreturns an exit statusdescribing what it did.The codes are defined in.RI < sysexits.h >./".ta 3n +\w'EX_UNAVAILABLE'u+3n./".de XX./".ti \n(.iu./".../".in +\w'EX_UNAVAILABLE'u+6n./".XX.TP 20EX_OK	Successful completion on all addresses..TP 20./".XXEX_NOUSER	Username not recognized../".XX.TP 20EX_UNAVAILABLE	Catchall meaning necessary resources were not available../".XX.TP 20EX_SYNTAX	Syntax error in address../".XX.TP 20EX_SOFTWARE	Internal software error, including bad arguments../".XX.TP 20EX_OSERR	Temporary operating system error, such as .PN cannot fork ../".XX.TP 20 	EX_NOHOST	Host name not recognized../".XX.TP 20EX_TEMPFAIL	Message could not be sent immediately, but was queued..PPIf invoked as.PN newaliases ,.PN sendmailwill rebuild the alias database.If invoked as.PN mailq ,.PN sendmailwill print the contents of the mail queue..SH Restrictions.PN Sendmailconverts blanks in addresses to dots.This is incorrect according to theold ARPANETmail protocol RFC 733 (NIC 41952),but is consistent with thenew protocols(RFC 822)..SH FilesExcept for.PN /usr/lib/sendmail.cf ,these pathnames are all specified in.PN /usr/lib/sendmail.cf .Thus,these values are only approximations..PP.TP 20.PN /etc/aliases	Raw data for alias names.TP 20.PN /etc/aliases.pag.TP 20.PN /etc/aliases.dir	Database of alias names.TP 20.PN /var/yp/src/mail.aliasesRaw data for alias names.TP 20.PN /var/yp/DOMAINNAME/mail.aliases.pagYellow Pages alias database.  DOMAINNAME is the YPdomainname for the local area network..TP 20.PN /var/yp/DOMAINNAME/mail.aliases.dirYellow Pages alias database.  DOMAINNAME is the YPdomainname for the local area network..TP 20.PN /var/dss/namedb/src/aliasesRaw data for alias names.TP 20.PN /var/dss/namedb/aliases.dbBIND/Hesiod alias database .TP 20.PN /usr/lib/sendmail.cf	Configuration file.TP 20.PN /usr/lib/sendmail.fc	Frozen configuration.TP 20.PN /usr/lib/sendmail.hf	Help file.TP 20.PN /usr/lib/sendmail.st	Collected statistics.TP 20.PN /usr/bin/uux	To deliver .PN uucp mail.TP 20.PN /usr/lib/mailers/arpa	To deliver ARPANET mail.TP 20.PN /usr/spool/mqueue/*	Temp files.SH See Alsobiff(1),binmail(1),mail(1),rmail(1),aliases(5),mailaddr(7).brDARPA Internet Request For Comments:RFC 819, RFC 821, RFC 822.br\fISendmail \- An Internetwork Mail Router\fP

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -