send 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .TH SEND 8
  2. .SH NAME
  3. send \- mail routing and delivery
  4. .SH SYNOPSIS
  5. .PP
  6. .B upas/send
  7. [
  8. .B -b
  9. ] [
  10. .B -i
  11. ] [
  12. .B -r
  13. ] [
  14. .B -x
  15. ] [
  16. .B -#
  17. ] [
  18. .I mailaddr ...
  19. ]
  20. .SH DESCRIPTION
  21. .I Send
  22. is not normally run directly by the user. Instead, mail protocol
  23. agents like
  24. .IR smtpd (8)
  25. and mail preparers like
  26. .IR marshal (1)
  27. fork and execute
  28. .IR send .
  29. .PP
  30. .I Send
  31. reads a message from standard input and disposes of it in one
  32. of four ways:
  33. .IP \(bu 3
  34. If
  35. .I mailaddr
  36. refers to a local mailbox, it appends it to the
  37. recipient's mailbox.
  38. .IP \(bu
  39. If
  40. .I mailaddr
  41. is remote, it queues the mail for remote delivery.
  42. .IP \(bu
  43. If the
  44. .B -r
  45. option is given and the mail is undeliverable, it
  46. returns the mail to the sender.
  47. .IP \(bu
  48. if the
  49. .B -r
  50. option is not given and the mail is undeliverable, it
  51. appends the mail to
  52. .BI /mail/box/ username /dead.letter
  53. and prints a message to standard error.
  54. .PP
  55. The file
  56. .B /mail/lib/rewrite
  57. determines exactly how to deliver or queue the mail.
  58. The decision is based purely on the recipient address.
  59. .PP
  60. The options are:
  61. .TF -b
  62. .TP
  63. .B -b
  64. suppresses the addition of the
  65. .B To:
  66. line.
  67. .TP
  68. .B -i
  69. let the message input be terminated by a line
  70. containing only a period, for
  71. compatibility with
  72. old mailers.
  73. .TP
  74. .B -x
  75. do not send mail, but instead report
  76. the full mail address of the recipient.
  77. .TP
  78. .B -#
  79. do not send mail, but instead report
  80. what command would be used to send the mail.
  81. .TP
  82. .B -r
  83. input is via a pipe from another program.
  84. Expect a From
  85. line at the start of the message to provide the
  86. name of the sender and timestamp. This implies
  87. the
  88. .B -b
  89. option.
  90. .PD
  91. .PP
  92. .I Send
  93. uses the login name as the reply address.
  94. .SH FILES
  95. .TF /mail/box/*/dead.letter
  96. .TP
  97. .B /sys/log/mail
  98. mail log file
  99. .TP
  100. .B /mail/box/*/dead.letter
  101. unmailable text
  102. .TP
  103. .B /mail/lib/rewrite
  104. rules for handling addresses
  105. .TP
  106. .B /mail/box/*/names
  107. personal alias files
  108. .TP
  109. .B /mail/lib/namefiles
  110. lists names of files containing system aliases
  111. .SH SOURCE
  112. .TP
  113. .B /sys/src/cmd/upas/send
  114. .SH "SEE ALSO"
  115. .IR aliasmail (8),
  116. .IR faces (1),
  117. .IR filter (1),
  118. .IR mail (1),
  119. .IR marshal (1),
  120. .IR mlmgr (1),
  121. .IR nedmail (1),
  122. .IR qer (8),
  123. .IR rewrite (6),
  124. .IR smtp (8),
  125. .IR upasfs (4)