smtpfeed.8 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .\"
  2. .\" smtpfeed.8 -- SMTPfeed Unix Manual Page
  3. .\"
  4. .TH SMTPFEED 8 "December 2001" Unix "User Manuals"
  5. .SH NAME
  6. .PP
  7. smtpfeed \- SMTP Fast Exploding External Deliverer
  8. .SH SYNOPSIS
  9. .PP
  10. \fBsmtpfeed\fP
  11. [\fB-1\fP]
  12. [\fB-5\fP]
  13. [\fB-A\fP]
  14. [\fB-a\fP \fIalias\fP]
  15. [\fB-b\fP \fIbufsize\fP]
  16. [\fB-c\fP \fIname\fP]
  17. [\fB-d\fP \fIdebugopt\fP]
  18. [\fB-E\fP]
  19. [\fB-F\fP]
  20. [\fB-F -F\fP]
  21. [\fB-g\fP \fIpgateway\fP]
  22. [\fB-h\fP]
  23. [\fB-i\fP \fIqueue-id\fP]
  24. [\fB-I\fP \fIqueue-id\fP]
  25. [\fB-l\fP \fIfacility\fP]
  26. [\fB-M\fP \fImapfile\fP]
  27. [\fB-m\fP \fIfallback-mx\fP]
  28. [\fB-N\fP \fIdomain\fP]
  29. [\fB-n\fP \fInum\fP]
  30. [\fB-o\fP \fIsource-addr\fP]
  31. [\fB-p\fP \fIsource-port\fP]
  32. [\fB-r\fP \fInum\fP]
  33. [\fB-R\fP \fInum\fP]
  34. [\fB-S\fP \fIpattern\fP]
  35. [\fB-s\fP \fIsize\fP]
  36. [\fB-t\fP \fIcategory=value\fP]
  37. [\fB-u\fP]
  38. [\fB-V\fP]
  39. [\fB-x\fP]
  40. [\fB-y\fP]
  41. [\fB-z\fP]
  42. .SH DESCRIPTION
  43. .PP
  44. This manual page documents the \fBsmtpfeed\fP command, an
  45. LMTP-speaking mail delivery agent (MDA) dedicated to mass mail delivery, i.e.,
  46. the delivery of mails via SMTP, addressed to large number of recipients. So
  47. \fBsmtpfeed\fP is effective for delivery of large mailing lists.
  48. \fBsmtpfeed\fP is spawned by a mail transfer agent (MTA) like Sendmail or
  49. Postfix, receives the mail and recipients via LMTP on stdin/stdout and
  50. performs SMTP delivery by first processing DNS queries in parallel, followed
  51. by parallel processing of SMTP deliveries. \fBsmtpfeed\fP can not deliver
  52. huge messages because it stores all information (includes message data) in
  53. memory.
  54. .SH OPTIONS
  55. .PP
  56. A description of the available command options are included below.
  57. .IP "\fB-1\fP"
  58. Disable SMTP piggybacking (equivalent to \fB-R1\fP).
  59. .IP "\fB-5\fP"
  60. If \fBsmtpfeed\fP works only with IPv4 (IPv6) protocol
  61. (see option \fB-N\fP), and if peer host has
  62. only AAAA (A) RRs in DNS, message will not be
  63. bounced back with "Host not found" error, and fallback MX
  64. (option \fB-m\fP) will be used.
  65. .IP "\fB-A\fP"
  66. Try T_ANY DNS query first to get MX list.
  67. .IP "\fB-a\fP \fIalias\fP"
  68. Specify this host's alias name, which is used to check MX list.
  69. .IP "\fB-b\fP \fIbufsize\fP"
  70. Specify TCP send buffer size.
  71. .IP "\fB-c\fP \fIname\fP"
  72. Specify official full-qualified domain name (FQDN) of this host, which
  73. is used in SMTP HELO command.
  74. .IP "\fB-d\fP \fIdebugopt\fP"
  75. Specify debug options.
  76. Possible values for \fIdebugopt\fP are one or more of the following:
  77. A: all, a: address, c: connection, e: event, h: hash, l: LMTP,
  78. m: map, n: DNS, s: SMTP, t: transaction, u: resource usage, D: no delivery,
  79. Q: DNS query only.
  80. .IP "\fB-E\fP"
  81. Get queue-id information from Received: header.
  82. .IP "\fB-F\fP"
  83. Insert recipient information on Received: header line if number of recipients
  84. for an SMTP transaction is only one (see also option \fB-1\fP).
  85. .IP "\fB-F -F\fP"
  86. Modify envelope sender address like
  87. "SenderUser+RcptUser=RcptDomain@SenderDomain" when \fB-1\fP option is specified.
  88. If you want to use this feature, configure your mail server to receive such
  89. addresses. Note: this modification will not be done when envelope sender is
  90. "<>". See also option \fB-S\fP.
  91. .IP "\fB-g\fP \fIpgateway\fP"
  92. Protocol gateway host (Default: not defined). Option \fB-5\fP must be
  93. specified at the same time. Option \fB-N4\fP or \fB-N6\fP must also be
  94. specified at the same time if compiled with -DINET6. If \fB-N4\fP is specified
  95. (or compiled without -DINET6), if an MX has IPv6 addresses, \fIpgateway\fP
  96. will be used as first MX. This feature will be useful when delivery via
  97. \fIpgateway\fP with fat IPv6 network is faster than direct delivery with
  98. narrow IPv4 network. If \fB-N6\fP is specified, \fIpgateway\fP will be used if
  99. an MX has IPv4 addresses, conversely.
  100. .IP "\fB-h\fP"
  101. Show help message.
  102. .IP "\fB-i\fP \fIqueue-id\fB"
  103. The \fIqueue-id\fP
  104. as generated by the MTA - just for logging purposes.
  105. (macro name for \fIqueue-id\fP in sendmail.cf is $i.)
  106. .IP "\fB-I\fP \fIqueue-id\fB"
  107. Equivalent to option \fB-i\fP, but no purge on SMTP RSET command.
  108. .IP "\fB-l\fP \fIfacility\fB"
  109. Specify syslog(3) logging facility (default is "local5").
  110. .IP "\fB-M\fP \fImapfile\fB"
  111. Path of host map file (Default: not defined).
  112. Syntax of map file is: "DOMAIN DEST1:DEST2:... # comments"
  113. where DOMAIN can be "domain" (exact matching) or ".domain" (substring
  114. matching) and DEST can be
  115. "hostname" (MX for hostname),
  116. "[hostname]" (A for hostname),
  117. "[IPaddress]" (IP address),
  118. "MX" (MX for domain part of a mail address),
  119. "MX?" (same as MX (skip to following dest. even under DNS lookup failure),
  120. "A" (A for domain part of a mail address),
  121. "=alias" (MX for an aliased mail address).
  122. .IP "\fB-m\fP \fIfallback-mx\fB"
  123. Fallback MX host.
  124. .IP "\fB-N\fP \fIdomain\fB"
  125. Specify network domain.
  126. Possible .I domain
  127. specifiers are:
  128. 4: use IPv4 only, 6: use IPv6 only, B: use both of IPv4/IPv6
  129. at random, B4: IPv4 then IPv6, B6: IPv6 then IPv4.
  130. .IP "\fB-n\fP \fInum\fB"
  131. Specify maximum number of available sockets for use.
  132. (Default: FD_SETSIZE-1).
  133. .IP "\fB-o\fP \fIsource-addr\fB"
  134. Source TCP/IP address for outgoing SMTP connections.
  135. (Default: an appropriate address will be dynamically assigned.)
  136. .IP "\fB-p\fP \fIsource-port\fB"
  137. Source TCP/IP port for outgoing SMTP connections.
  138. (Default: a free port will be dynamically assigned.)
  139. .IP "\fB-R\fP \fInum\fB"
  140. Specify maximum number of recipients in a single SMTP transaction.
  141. (Default: 100)
  142. .IP "\fB-r\fP \fInum\fB"
  143. Specify minimum number of recipients required for an SMTP transaction.
  144. (Default: 1)
  145. .IP "\fB-S\fP \fIpattern\fB"
  146. Format to be used at envelope sender address conversion when
  147. \fB-F -F\fP option specified. (Default: <%s+%s=%s@%s>)
  148. .IP "\fB-s\fP \fIsize\fB"
  149. Specify maximum message size.
  150. (Default: unlimited)
  151. .IP "\fB-t\fP \fIcategory=value\fB"
  152. Set communication timeouts.
  153. Numbers followed by 's' means 'in seconds', by 'm' means
  154. 'in minutes' and by 'h' means 'in hours'. default is 'm'.
  155. Values for \fIcategory\fP are:
  156. "total" (total processing limit (55m), it will be take "total + quit"),
  157. "connect" (till TCP connection establishment (5m)),
  158. "greet" (till get SMTP greeting message (5m)),
  159. "helo" (till get response for HELO (5m)),
  160. "mail" (till get response for MAIL (10m)),
  161. "rcpt" (till get response for RCPT (60m)),
  162. "data" (till get response for DATA (5m)),
  163. "body" (till send next datablock (20m)),
  164. "term" (till get response for DATA termination (60m)),
  165. "cache" (for idle SMTP connection (5m)),
  166. "rset" (till get response for RSET (5m)),
  167. "quit" (till get response for QUIT (2m)).
  168. .IP "\fB-u\fP"
  169. Reuse SMTP connection for other MX.
  170. (default: off)
  171. .IP "\fB-V\fP"
  172. Force to insert version number in Received: line.
  173. .IP "\fB-x\fP"
  174. No error even if MX RRs point to absent A/AAAA RRs.
  175. .IP "\fB-y\fP"
  176. Refer to DNS A RR if this host is the first MX.
  177. .IP "\fB-z\fP"
  178. Disable SMTP pipelining.
  179. .SH AUTHOR
  180. .PP
  181. This manual page was written by Ralf S. Engelschall
  182. <rse@engelschall.com> for the OpenPKG \fBsmtpfeed\fP
  183. package.