SMTP-SOURCE(1)
π 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 SMTPDATAcommand completes. number goes up, serotonin goes up β¨-Ccount β When a host sendsRESETinstead ofSYN|ACK, try count times before giving up. The default count is1. Specify a larger count in order to work around a problem with TCP/IP stacks that sendRESETwhen 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 π-ffrom β Use the specified sender address (default:<foo@my-hostname>).-Ffile β Send the pre-formatted message header and body in the specified file, while prepending.before lines that begin with., and while appendingCRLFafter each line.-llength β Send length bytes as message payload. The length does not include message headers.-Lβ Speak LMTP rather than SMTP. plot twist π¦-mmessage_count β Send the specified number of messages (default:1).-Mmy-hostname β Use the specified hostname or[address]in theHELOcommand 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-toption.
β οΈ 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-rewriteservice, 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 sendHELO, and don't send message headers. retro π°οΈ-rrecipient_count β Send the specified number of recipients per transaction (default:1), and generate recipient addresses as described under the-Noption.-Rinterval β Wait a random time (0 <= n <= interval) between messages. Suspending one thread does not affect other delivery threads.-ssession_count β Run the specified number of SMTP sessions in parallel (default:1). multitasking main character energy π-Ssubject β Send mail with the named subject line (default: none).-tto β Use the specified recipient address (default:<foo@my-hostname>).-Twindowsize β Override the default TCP window size. To work around broken TCP window scaling implementations, specify a value> 0and< 65536.-vβ Make the program more verbose, for debugging purposes. spill the tea β-winterval β 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 issmtp.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
- arch rolling: postfix 3.11.7-1 Β· EPL-2.0 OR IPL-1.0 AND BSD-4-Clause-UC
- debian trixie: postfix 3.10.13-0+deb13u1
- fedora 43: postfix 2:3.10.14-1.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 43: postfix 2:3.10.3-3.fc43 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.14-1.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- fedora 44: postfix 2:3.10.7-2.fc44 Β· (IPL-1.0 OR EPL-2.0) AND GPL-2.0-or-later AND BSD-4-Clause-UC
- ubuntu questing: postfix 3.10.2-1ubuntu2
- ubuntu questing: postfix 3.10.2-1ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2
- ubuntu resolute: postfix 3.10.6-4ubuntu2.1
- ubuntu resolute: postfix 3.10.6-4ubuntu2.2
- ubuntu stonking: postfix 3.11.7-1ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms