SMTP-SOURCE(1)

πŸ“¦
version 3.11.7 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– SMTP-SOURCE πŸ’–

okay bestie, welcome to smtp-source β€” she lives in the General Commands Manual, section 1, and she's a whole vibe. parallelized SMTP/LMTP test generator, no cap. let's get into it πŸ¦‹


✨ NAME ✨

smtp-source β€” parallelized SMTP/LMTP test generator 🌸


✨ SYNOPSIS ✨

smtp-source [options] [inet:]host[:port]

smtp-source [options] unix:pathname

✨ DESCRIPTION ✨

so smtp-source connects to the named host and TCP port (default port is 25, iykyk) and sends one or more messages to it β€” either one at a time or all in parallel, her choice πŸ’…. the program speaks either SMTP (that's the default) or LMTP. connections can be made to UNIX-domain servers and to IPv4 or IPv6 servers, and IPv4 and IPv6 are the default. periodt.

🚨 Note: this is an unsupported test program. No attempt is made to maintain compatibility between successive versions. so like, she's experimental, she's unbothered, she's not promising stability. fr fr, don't build your whole life on her.

πŸŽ€ Arguments πŸŽ€

here's the whole menu, bestie, every single one πŸ‘‘

  • -4 β€” Connect to the server with IPv4. This option has no effect when Postfix is built without IPv6 support. πŸ™ˆ
  • -6 β€” Connect to the server with IPv6. This option is not available when Postfix is built without IPv6 support.
  • -A β€” Don't abort when the server sends something other than the expected positive reply code. she's chill like that 🧘
  • -c β€” Display a running counter that is incremented each time an SMTP DATA command completes. number goes up, serotonin goes up ✨
  • -C count β€” When a host sends RESET instead of SYN|ACK, try count times before giving up. The default 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 β€” Don't disconnect after sending a message; send the next message over the same connection. reusing connections, sustainable queen 🌈
  • -f from β€” Use the specified sender address (default: <foo@my-hostname>).
  • -F file β€” 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 length β€” Send length bytes as message payload. The length does not include message headers.
  • -L β€” Speak LMTP rather than SMTP. plot twist πŸ¦‹
  • -m message_count β€” Send the specified number of messages (default: 1).
  • -M my-hostname β€” Use the specified hostname or [address] in the HELO command and in the default sender and recipient addresses, instead of the machine hostname.
  • -N β€” Generate each recipient address by appending a number (a per-process recipient counter) to the recipient address localpart specified with the -t option.
⚠️ Note: to use the number as an address extension, specify an explicit address delimiter at the end of the recipient localpart, as in "-t localpart+@domain" or "-t localpart+", where "+" is a Postfix recipient address delimiter.

Benefits πŸ’–:

  • A non-constant recipient address avoids an unrealistic 100% cache hit rate in clients of the Postfix trivial-rewrite service, better approximating performance under real-life work-loads. πŸ”₯
  • A fixed recipient address local-part with a non-constant address extension avoids the need to configure a large number of valid recipient addresses in the receiving Postfix server. iconic.
  • -o β€” Old mode: don't send HELO, and don't send message headers. retro πŸ•°οΈ
  • -r recipient_count β€” Send the specified number of recipients per transaction (default: 1), and generate recipient addresses as described under the -N option.
  • -R interval β€” Wait a random time (0 <= n <= interval) between messages. Suspending one thread does not affect other delivery threads.
  • -s session_count β€” Run the specified number of SMTP sessions in parallel (default: 1). multitasking main character energy πŸ‘‘
  • -S subject β€” Send mail with the named subject line (default: none).
  • -t to β€” Use the specified recipient address (default: <foo@my-hostname>).
  • -T windowsize β€” Override the default TCP window size. To work around broken TCP window scaling implementations, specify a value > 0 and < 65536.
  • -v β€” Make the program more verbose, for debugging purposes. spill the tea β˜•
  • -w interval β€” Wait a fixed time between messages. Suspending one thread does not affect other delivery 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. that's it, that's the whole bug list, she said what she said 😭


🌈 SEE ALSO 🌈

smtp-sink(1), 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


and that's the whole page, bestie 🫢 shoutout to the footer, which is literally just SMTP-SOURCE(1) chillin' down there, living in the General Commands Manual, section 1 β€” no date, no version, just vibes. go forth and test your SMTP servers responsibly πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from