1SMTP-SOURCE(1)              General Commands Manual             SMTP-SOURCE(1)
2
3
4

NAME

6       smtp-source - multi-threaded SMTP/LMTP test generator
7

SYNOPSIS

9       smtp-source [options] [inet:]host[:port]
10
11       smtp-source [options] unix:pathname
12

DESCRIPTION

14       smtp-source  connects to the named host and TCP port (default: port 25)
15       and sends one or more messages to it, either sequentially or in  paral‐
16       lel. The program speaks either SMTP (default) or LMTP.  Connections can
17       be made to UNIX-domain and IPv4 or IPv6 servers.  IPv4 and IPv6 are the
18       default.
19
20       Note:  this is an unsupported test program. No attempt is made to main‐
21       tain compatibility between successive versions.
22
23       Arguments:
24
25       -4     Connect to the server with IPv4. This option has no effect  when
26              Postfix is built without IPv6 support.
27
28       -6     Connect  to  the  server with IPv6. This option is not available
29              when Postfix is built without IPv6 support.
30
31       -A     Don't abort when the  server  sends  something  other  than  the
32              expected positive reply code.
33
34       -c     Display  a running counter that is incremented each time an SMTP
35              DATA command completes.
36
37       -C count
38              When a host sends RESET instead  of  SYN|ACK,  try  count  times
39              before giving up. The default count is 1. Specify a larger count
40              in order to work around a problem with TCP/IP stacks  that  send
41              RESET when the listen queue is full.
42
43       -d     Don't  disconnect after sending a message; send the next message
44              over the same connection.
45
46       -f from
47              Use the specified sender address (default: <foo@myhostname>).
48
49       -F file
50              Send the pre-formatted message header and body in the  specified
51              file, while prepending '.' before lines that begin with '.', and
52              while appending CRLF after each line.
53
54       -l length
55              Send length bytes  as  message  payload.  The  length  does  not
56              include message headers.
57
58       -L     Speak LMTP rather than SMTP.
59
60       -m message_count
61              Send the specified number of messages (default: 1).
62
63       -M myhostname
64              Use  the specified hostname or [address] in the HELO command and
65              in the default sender and recipient addresses,  instead  of  the
66              machine hostname.
67
68       -N     Prepend  a  non-repeating  sequence  number  to  each  recipient
69              address. This avoids the artificial 100% hit rate in the resolve
70              and rewrite client caches and exercises the trivial-rewrite dae‐
71              mon, better approximating Postfix  performance  under  real-life
72              work-loads.
73
74       -o     Old mode: don't send HELO, and don't send message headers.
75
76       -r recipient_count
77              Send   the   specified  number  of  recipients  per  transaction
78              (default: 1).  Recipient names are  generated  by  prepending  a
79              number to the recipient address.
80
81       -R interval
82              Wait for a random period of time 0 <= n <= interval between mes‐
83              sages.  Suspending one thread does  not  affect  other  delivery
84              threads.
85
86       -s session_count
87              Run  the specified number of SMTP sessions in parallel (default:
88              1).
89
90       -S subject
91              Send mail with the named subject line (default: none).
92
93       -t to  Use the specified recipient address (default: <foo@myhostname>).
94
95       -T windowsize
96              Override the default TCP window size. To work around broken  TCP
97              window scaling implementations, specify a value > 0 and < 65536.
98
99       -v     Make the program more verbose, for debugging purposes.
100
101       -w interval
102              Wait  a fixed time between messages.  Suspending one thread does
103              not affect other delivery threads.
104
105       [inet:]host[:port]
106              Connect via TCP to host host, port port.  The  default  port  is
107              smtp.
108
109       unix:pathname
110              Connect to the UNIX-domain socket at pathname.
111

BUGS

113       No SMTP command pipelining support.
114

SEE ALSO

116       smtp-sink(1), SMTP/LMTP message dump
117

LICENSE

119       The Secure Mailer license must be distributed with this software.
120

AUTHOR(S)

122       Wietse Venema
123       IBM T.J. Watson Research
124       P.O. Box 704
125       Yorktown Heights, NY 10598, USA
126
127
128
129                                                                SMTP-SOURCE(1)
Impressum