# smtp-source(1) - man - phpMan

[SMTP-SOURCE(1)](https://www.chedong.com/phpMan.php/man/SMTP-SOURCE/1/markdown)                         General Commands Manual                        [SMTP-SOURCE(1)](https://www.chedong.com/phpMan.php/man/SMTP-SOURCE/1/markdown)



## NAME
       smtp-source - parallelized SMTP/LMTP test generator

## SYNOPSIS
       **smtp-source** [_options_] [**inet:**]_host_[:_port_]

       **smtp-source** [_options_] **unix:**_pathname_

## DESCRIPTION
       **smtp-source**  connects to the named _host_ and TCP _port_ (default: port 25) and sends one or more
       messages to it, either sequentially or in parallel. The program speaks either SMTP  (default)
       or LMTP.  Connections can be made to UNIX-domain and IPv4 or IPv6 servers.  IPv4 and IPv6 are
       the default.

       Note: this is an unsupported test program. No attempt is made to maintain  compatibility  be‐
       tween successive versions.

       Arguments:

### -4
              out IPv6 support.

### -6
              without IPv6 support.

### -A
              code.

### -c
              pletes.

### -C
              When  a host sends RESET instead of SYN|ACK, try _count_ times before giving up. The de‐
              fault count is 1. Specify a larger count in order to work around a problem with TCP/IP
              stacks that send RESET when the listen queue is full.

### -d
              tion.

### -f
              Use the specified sender address (default: <foo@myhostname>).

### -F
              Send the pre-formatted message header and body in the specified _file_, while prepending
              '.' before lines that begin with '.', and while appending CRLF after each line.

### -l
              Send _length_ bytes as message payload. The length does not include message headers.

### -L

### -m
              Send the specified number of messages (default: 1).

### -M
              Use  the specified hostname or [address] in the HELO command and in the default sender
              and recipient addresses, instead of the machine hostname.

### -N
              tificial  100%  hit  rate  in  the resolve and rewrite client caches and exercises the
              trivial-rewrite daemon,  better  approximating  Postfix  performance  under  real-life
              work-loads.

### -o

### -r
              Send the specified number of recipients per transaction (default: 1).  Recipient names
              are generated by prepending a number to the recipient address.

### -R
              Wait for a random period of time 0 <= n <= interval between messages.  Suspending  one
              thread does not affect other delivery threads.

### -s
              Run the specified number of SMTP sessions in parallel (default: 1).

### -S
              Send mail with the named subject line (default: none).

### -t

### -T
              Override  the default TCP window size. To work around broken TCP window scaling imple‐
              mentations, specify a value > 0 and < 65536.

### -v

### -w
              Wait a fixed time between messages.  Suspending one thread does not affect  other  de‐
              livery threads.

       [**inet:**]_host_[:_port_]
              Connect via TCP to host _host_, port _port_. The default port is **smtp**.

       **unix:**_pathname_
              Connect to the UNIX-domain socket at _pathname_.

## BUGS
       No SMTP command pipelining support.

## SEE ALSO
       [smtp-sink(1)](https://www.chedong.com/phpMan.php/man/smtp-sink/1/markdown), SMTP/LMTP message dump

## LICENSE
       The Secure Mailer license must be distributed with this software.

**AUTHOR(S)**
       Wietse Venema
       IBM T.J. Watson Research
       P.O. Box 704
       Yorktown Heights, NY 10598, USA

       Wietse Venema
       Google, Inc.
       111 8th Avenue
       New York, NY 10011, USA



                                                                                      [SMTP-SOURCE(1)](https://www.chedong.com/phpMan.php/man/SMTP-SOURCE/1/markdown)
