PageRenderTime 51ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/html/smtp-sink.1.html

https://bitbucket.org/jlh/postfix-xtls_policy
HTML | 279 lines | 215 code | 64 blank | 0 comment | 0 complexity | 1efe528f787e180c98f06ed728d9e46b MD5 | raw file
Possible License(s): IPL-1.0, AGPL-3.0
  1. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html> <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
  5. <title> Postfix manual - smtp-sink(1) </title>
  6. </head> <body> <pre>
  7. SMTP-SINK(1) SMTP-SINK(1)
  8. <b>NAME</b>
  9. smtp-sink - multi-threaded SMTP/LMTP test server
  10. <b>SYNOPSIS</b>
  11. <b>smtp-sink</b> [<i>options</i>] [<b>inet:</b>][<i>host</i>]:<i>port backlog</i>
  12. <b>smtp-sink</b> [<i>options</i>] <b>unix:</b><i>pathname backlog</i>
  13. <b>DESCRIPTION</b>
  14. <b>smtp-sink</b> listens on the named host (or address) and port.
  15. It takes SMTP messages from the network and throws them
  16. away. The purpose is to measure client performance, not
  17. protocol compliance.
  18. <b>smtp-sink</b> may also be configured to capture each mail
  19. delivery transaction to file. Since disk latencies are
  20. large compared to network delays, this mode of operation
  21. can reduce the maximal performance by several orders of
  22. magnitude.
  23. Connections can be accepted on IPv4 or IPv6 endpoints, or
  24. on UNIX-domain sockets. IPv4 and IPv6 are the default.
  25. This program is the complement of the <a href="smtp-source.1.html"><b>smtp-source</b>(1)</a> pro-
  26. gram.
  27. Note: this is an unsupported test program. No attempt is
  28. made to maintain compatibility between successive ver-
  29. sions.
  30. Arguments:
  31. <b>-4</b> Support IPv4 only. This option has no effect when
  32. Postfix is built without IPv6 support.
  33. <b>-6</b> Support IPv6 only. This option is not available
  34. when Postfix is built without IPv6 support.
  35. <b>-8</b> Do not announce 8BITMIME support.
  36. <b>-a</b> Do not announce SASL authentication support.
  37. <b>-A</b> <i>delay</i>
  38. Wait <i>delay</i> seconds after responding to DATA, then
  39. abort prematurely with a 550 reply status. Do not
  40. read further input from the client; this is an
  41. attempt to block the client before it sends ".".
  42. Specify a zero delay value to abort immediately.
  43. <b>-c</b> Display running counters that are updated whenever
  44. an SMTP session ends, a QUIT command is executed,
  45. or when "." is received.
  46. <b>-C</b> Disable XCLIENT support.
  47. <b>-d</b> <i>dump-template</i>
  48. Dump each mail transaction to a single-message file
  49. whose name is created by expanding the <i>dump-tem-</i>
  50. <i>plate</i> via strftime(3) and appending a pseudo-random
  51. hexadecimal number (example: "%Y%m%d%H/%M." expands
  52. into "2006081203/05.809a62e3"). If the template
  53. contains "/" characters, missing directories are
  54. created automatically. The message dump format is
  55. described below.
  56. Note: this option keeps one capture file open for
  57. every mail transaction in progress.
  58. <b>-D</b> <i>dump-template</i>
  59. Append mail transactions to a multi-message dump
  60. file whose name is created by expanding the <i>dump-</i>
  61. <i>template</i> via strftime(3). If the template contains
  62. "/" characters, missing directories are created
  63. automatically. The message dump format is
  64. described below.
  65. Note: this option keeps one capture file open for
  66. every mail transaction in progress.
  67. <b>-e</b> Do not announce ESMTP support.
  68. <b>-E</b> Do not announce ENHANCEDSTATUSCODES support.
  69. <b>-f</b> <i>command,command,...</i>
  70. Reject the specified commands with a hard (5xx)
  71. error code. This option implies <b>-p</b>.
  72. Examples of commands are CONNECT, HELO, EHLO, LHLO,
  73. MAIL, RCPT, VRFY, DATA, ., RSET, NOOP, and QUIT.
  74. Separate command names by white space or commas,
  75. and use quotes to protect white space from the
  76. shell. Command names are case-insensitive.
  77. <b>-F</b> Disable XFORWARD support.
  78. <b>-h</b> <i>hostname</i>
  79. Use <i>hostname</i> in the SMTP greeting, in the HELO
  80. response, and in the EHLO response. The default
  81. hostname is "smtp-sink".
  82. <b>-L</b> Enable LMTP instead of SMTP.
  83. <b>-m</b> <i>count</i> (default: 256)
  84. An upper bound on the maximal number of simultane-
  85. ous connections that <b>smtp-sink</b> will handle. This
  86. prevents the process from running out of file
  87. descriptors. Excess connections will stay queued in
  88. the TCP/IP stack.
  89. <b>-n</b> <i>count</i>
  90. Terminate after <i>count</i> sessions. This is for testing
  91. purposes.
  92. <b>-p</b> Do not announce support for ESMTP command pipelin-
  93. ing.
  94. <b>-P</b> Change the server greeting so that it appears to
  95. come through a CISCO PIX system. Implies <b>-e</b>.
  96. <b>-q</b> <i>command,command,...</i>
  97. Disconnect (without replying) after receiving one
  98. of the specified commands.
  99. Examples of commands are CONNECT, HELO, EHLO, LHLO,
  100. MAIL, RCPT, VRFY, DATA, ., RSET, NOOP, and QUIT.
  101. Separate command names by white space or commas,
  102. and use quotes to protect white space from the
  103. shell. Command names are case-insensitive.
  104. <b>-r</b> <i>command,command,...</i>
  105. Reject the specified commands with a soft (4xx)
  106. error code. This option implies <b>-p</b>.
  107. Examples of commands are CONNECT, HELO, EHLO, LHLO,
  108. MAIL, RCPT, VRFY, DATA, ., RSET, NOOP, and QUIT.
  109. Separate command names by white space or commas,
  110. and use quotes to protect white space from the
  111. shell. Command names are case-insensitive.
  112. <b>-R</b> <i>root-directory</i>
  113. Change the process root directory to the specified
  114. location. This option requires super-user privi-
  115. leges. See also the <b>-u</b> option.
  116. <b>-s</b> <i>command,command,...</i>
  117. Log the named commands to syslogd.
  118. Examples of commands are CONNECT, HELO, EHLO, LHLO,
  119. MAIL, RCPT, VRFY, DATA, ., RSET, NOOP, and QUIT.
  120. Separate command names by white space or commas,
  121. and use quotes to protect white space from the
  122. shell. Command names are case-insensitive.
  123. <b>-S start-string</b>
  124. An optional string that is prepended to each mes-
  125. sage that is written to a dump file (see the dump
  126. file format description below). The following C
  127. escape sequences are supported: \a (bell), \b
  128. (backslace), \f (formfeed), \n (newline), \r (car-
  129. riage return), \t (horizontal tab), \v (vertical
  130. tab), \<i>ddd</i> (up to three octal digits) and \\ (the
  131. backslash character).
  132. <b>-t</b> <i>timeout</i> (default: 100)
  133. Limit the time for receiving a command or sending a
  134. response. The time limit is specified in seconds.
  135. <b>-u</b> <i>username</i>
  136. Switch to the specified user privileges after open-
  137. ing the network socket and optionally changing the
  138. process root directory. This option is required
  139. when the process runs with super-user privileges.
  140. See also the <b>-R</b> option.
  141. <b>-v</b> Show the SMTP conversations.
  142. <b>-w</b> <i>delay</i>
  143. Wait <i>delay</i> seconds before responding to a DATA com-
  144. mand.
  145. [<b>inet:</b>][<i>host</i>]:<i>port</i>
  146. Listen on network interface <i>host</i> (default: any
  147. interface) TCP port <i>port</i>. Both <i>host</i> and <i>port</i> may be
  148. specified in numeric or symbolic form.
  149. <b>unix:</b><i>pathname</i>
  150. Listen on the UNIX-domain socket at <i>pathname</i>.
  151. <i>backlog</i>
  152. The maximum length the queue of pending connec-
  153. tions, as defined by the <b>listen</b>(2) system call.
  154. <b>DUMP FILE FORMAT</b>
  155. Each dumped message contains a sequence of text lines,
  156. terminated with the newline character. The sequence of
  157. information is as follows:
  158. <b>o</b> The optional string specified with the <b>-S</b> option.
  159. <b>o</b> The <b>smtp-sink</b> generated headers as documented
  160. below.
  161. <b>o</b> The message header and body as received from the
  162. SMTP client.
  163. <b>o</b> An empty line.
  164. The format of the <b>smtp-sink</b> generated headers is as fol-
  165. lows:
  166. <b>X-Client-Addr:</b> <i>text</i>
  167. The client IP address without enclosing []. An IPv6
  168. address is prefixed with "ipv6:". This record is
  169. always present.
  170. <b>X-Client-Proto:</b> <i>text</i>
  171. The client protocol: SMTP, ESMTP or LMTP. This
  172. record is always present.
  173. <b>X-Helo-Args:</b> <i>text</i>
  174. The arguments of the last HELO or EHLO command
  175. before this mail delivery transaction. This record
  176. is present only if the client sent a recognizable
  177. HELO or EHLO command before the DATA command.
  178. <b>X-Mail-Args:</b> <i>text</i>
  179. The arguments of the MAIL command that started this
  180. mail delivery transaction. This record is present
  181. exactly once.
  182. <b>X-Rcpt-Args:</b> <i>text</i>
  183. The arguments of an RCPT command within this mail
  184. delivery transaction. There is one record for each
  185. RCPT command, and they are in the order as sent by
  186. the client.
  187. <b>Received:</b> <i>text</i>
  188. A message header for compatibility with mail pro-
  189. cessing software. This three-line header marks the
  190. end of the headers provided by <b>smtp-sink</b>, and is
  191. formatted as follows:
  192. <b>from</b> <i>helo</i> <b>([</b><i>addr</i><b>])</b>
  193. The HELO or EHLO command argument and client
  194. IP address. If the client did not send HELO
  195. or EHLO, the client IP address is used
  196. instead.
  197. <b>by</b> <i>host</i> <b>(smtp-sink) with</b> <i>proto</i> <b>id</b> <i>random</i><b>;</b>
  198. The hostname specified with the <b>-h</b> option,
  199. the client protocol (see <b>X-Client-Proto</b>
  200. above), and the pseudo-random portion of the
  201. per-message capture file name.
  202. <i>time-stamp</i>
  203. A time stamp as defined in <a href="http://www.faqs.org/rfcs/rfc2822.html">RFC 2822</a>.
  204. <b>SEE ALSO</b>
  205. <a href="smtp-source.1.html">smtp-source(1)</a>, SMTP/LMTP message generator
  206. <b>LICENSE</b>
  207. The Secure Mailer license must be distributed with this
  208. software.
  209. <b>AUTHOR(S)</b>
  210. Wietse Venema
  211. IBM T.J. Watson Research
  212. P.O. Box 704
  213. Yorktown Heights, NY 10598, USA
  214. SMTP-SINK(1)
  215. </pre> </body> </html>