autoupdate
[postfix-master.git] / postfix-master / smtp-source.1.html
blob969eecc3d403e4cafd55ed80c9cc11a53bec184b
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-source(1) </title>
6 </head> <body> <pre>
7 SMTP-SOURCE(1) SMTP-SOURCE(1)
9 <b>NAME</b>
10 smtp-source - multi-threaded SMTP/LMTP test generator
12 <b>SYNOPSIS</b>
13 <b>smtp-source</b> [<i>options</i>] [<b>inet:</b>]<i>host</i>[:<i>port</i>]
15 <b>smtp-source</b> [<i>options</i>] <b>unix:</b><i>pathname</i>
17 <b>DESCRIPTION</b>
18 <b>smtp-source</b> connects to the named <i>host</i> and TCP <i>port</i>
19 (default: port 25) and sends one or more messages to it,
20 either sequentially or in parallel. The program speaks
21 either SMTP (default) or LMTP. Connections can be made to
22 UNIX-domain and IPv4 or IPv6 servers. IPv4 and IPv6 are
23 the default.
25 Note: this is an unsupported test program. No attempt is
26 made to maintain compatibility between successive ver-
27 sions.
29 Arguments:
31 <b>-4</b> Connect to the server with IPv4. This option has no
32 effect when Postfix is built without IPv6 support.
34 <b>-6</b> Connect to the server with IPv6. This option is not
35 available when Postfix is built without IPv6 sup-
36 port.
38 <b>-A</b> Don't abort when the server sends something other
39 than the expected positive reply code.
41 <b>-c</b> Display a running counter that is incremented each
42 time an SMTP DATA command completes.
44 <b>-C</b> <i>count</i>
45 When a host sends RESET instead of SYN|ACK, try
46 <i>count</i> times before giving up. The default count is
47 1. Specify a larger count in order to work around a
48 problem with TCP/IP stacks that send RESET when the
49 listen queue is full.
51 <b>-d</b> Don't disconnect after sending a message; send the
52 next message over the same connection.
54 <b>-f</b> <i>from</i>
55 Use the specified sender address (default:
56 &lt;foo@<a href="postconf.5.html#myhostname">myhostname</a>&gt;).
58 <b>-F</b> <i>file</i>
59 Send the pre-formatted message header and body in
60 the specified <i>file</i>, while prepending '.' before
61 lines that begin with '.', and while appending CRLF
62 after each line.
64 <b>-l</b> <i>length</i>
65 Send <i>length</i> bytes as message payload. The length
66 does not include message headers.
68 <b>-L</b> Speak LMTP rather than SMTP.
70 <b>-m</b> <i>message</i><b>_</b><i>count</i>
71 Send the specified number of messages (default: 1).
73 <b>-M</b> <i><a href="postconf.5.html#myhostname">myhostname</a></i>
74 Use the specified hostname or [address] in the HELO
75 command and in the default sender and recipient
76 addresses, instead of the machine hostname.
78 <b>-N</b> Prepend a non-repeating sequence number to each
79 recipient address. This avoids the artificial 100%
80 hit rate in the resolve and rewrite client caches
81 and exercises the trivial-rewrite daemon, better
82 approximating Postfix performance under real-life
83 work-loads.
85 <b>-o</b> Old mode: don't send HELO, and don't send message
86 headers.
88 <b>-r</b> <i>recipient</i><b>_</b><i>count</i>
89 Send the specified number of recipients per trans-
90 action (default: 1). Recipient names are generated
91 by prepending a number to the recipient address.
93 <b>-R</b> <i>interval</i>
94 Wait for a random period of time 0 &lt;= n &lt;= interval
95 between messages. Suspending one thread does not
96 affect other delivery threads.
98 <b>-s</b> <i>session</i><b>_</b><i>count</i>
99 Run the specified number of SMTP sessions in paral-
100 lel (default: 1).
102 <b>-S</b> <i>subject</i>
103 Send mail with the named subject line (default:
104 none).
106 <b>-t</b> <i>to</i> Use the specified recipient address (default:
107 &lt;foo@<a href="postconf.5.html#myhostname">myhostname</a>&gt;).
109 <b>-T</b> <i>windowsize</i>
110 Override the default TCP window size. To work
111 around broken TCP window scaling implementations,
112 specify a value &gt; 0 and &lt; 65536.
114 <b>-v</b> Make the program more verbose, for debugging pur-
115 poses.
117 <b>-w</b> <i>interval</i>
118 Wait a fixed time between messages. Suspending one
119 thread does not affect other delivery threads.
121 [<b>inet:</b>]<i>host</i>[:<i>port</i>]
122 Connect via TCP to host <i>host</i>, port <i>port</i>. The
123 default port is <b>smtp</b>.
125 <b>unix:</b><i>pathname</i>
126 Connect to the UNIX-domain socket at <i>pathname</i>.
128 <b>BUGS</b>
129 No SMTP command pipelining support.
131 <b>SEE ALSO</b>
132 <a href="smtp-sink.1.html">smtp-sink(1)</a>, SMTP/LMTP message dump
134 <b>LICENSE</b>
135 The Secure Mailer license must be distributed with this
136 software.
138 <b>AUTHOR(S)</b>
139 Wietse Venema
140 IBM T.J. Watson Research
141 P.O. Box 704
142 Yorktown Heights, NY 10598, USA
144 SMTP-SOURCE(1)
145 </pre> </body> </html>