127 lines · 2.1 KB · Text
RawDownload
.TH SEND 8.SH NAMEsend \- mail routing and delivery.SH SYNOPSIS.PP.B upas/send[.B -b] [.B -i] [.B -r] [.B -x] [.B -#] [.I mailaddr ...].SH DESCRIPTION.I Sendis not normally run directly by the user.  Instead, mail protocolagents like.I smtpd(see.IR smtp (8))and mail preparers like.IR marshal (1)fork and execute.IR send ..PP.I Sendreads a message from standard input and disposes of it in oneof four ways:.IP \(bu 3If.I mailaddrrefers to a local mailbox, it appends it to therecipient's mailbox..IP \(buIf.I mailaddris remote, it queues the mail for remote delivery..IP \(buIf the.B -roption is given and the mail is undeliverable, itreturns the mail to the sender..IP \(buif the.B -roption is not given and the mail is undeliverable, itappends the mail to.BI /mail/box/ username /dead.letterand prints a message to standard error..PPThe file.B /mail/lib/rewritedetermines exactly how to deliver or queue the mail.The decision is based purely on the recipient address..PPThe options are:.TF -b.TP.B -bsuppresses the addition of the.B To:line..TP.B -ilet the message input be terminated by a linecontaining only a period, forcompatibility withold mailers..TP.B -xdo not send mail, but instead reportthe full mail address of the recipient..TP.B -#do not send mail, but instead reportwhat command would be used to send the mail..TP.B -rinput is via a pipe from another program.Expect a Fromline at the start of the message to provide thename of the sender and timestamp.  This impliesthe.B -boption..PD.PP.I Senduses the login name as the reply address..SH FILES.TF /mail/box/*/dead.letter.TP.B /sys/log/mailmail log file.TP.B /mail/box/*/dead.letterunmailable text.TP.B /mail/lib/rewriterules for handling addresses.TP.B /mail/box/*/namespersonal alias files.TP.B /mail/lib/namefileslists names of files containing system aliases.SH SOURCE.TP.B /sys/src/cmd/upas/send.SH "SEE ALSO".IR aliasmail (8),.IR faces (1),.IR filter (1),.IR mail (1),.IR marshal (1),.IR mlmgr (1),.IR nedmail (1),.IR qer (8),.IR rewrite (6),.IR smtp (8),.IR upasfs (4)