{
    "content": [
        {
            "type": "text",
            "text": "# smtp-source(1) (man)\n\n**Summary:** smtp-source - parallelized SMTP/LMTP test generator\n\n**Synopsis:** smtp-source [options] [inet:]host[:port]\nsmtp-source [options] unix:pathname\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -4 | — | — | out IPv6 support. |\n| -6 | — | — | without IPv6 support. |\n| -A | — | — | code. |\n| -c | — | — | pletes. |\n| -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 |\n| -d | — | — | tion. |\n| -f | — | — | Use the specified sender address (default: <foo@myhostname>). |\n| -F | — | — | Send the pre-formatted message header and body in the specified file, while prepending '.' before lines that begin with  |\n| -l | — | — | Send length bytes as message payload. The length does not include message headers. |\n| -L | — | — |  |\n| -m | — | — | Send the specified number of messages (default: 1). |\n| -M | — | — | Use the specified hostname or [address] in the HELO command and in the default sender and recipient addresses, instead o |\n| -N | — | — | tificial 100% hit rate in the resolve and rewrite client caches and exercises the trivial-rewrite daemon, better approxi |\n| -o | — | — |  |\n| -r | — | — | Send the specified number of recipients per transaction (default: 1). Recipient names are generated by prepending a numb |\n| -R | — | — | Wait for a random period of time 0 <= n <= interval between messages. Suspending one thread does not affect other delive |\n| -s | — | — | Run the specified number of SMTP sessions in parallel (default: 1). |\n| -S | — | — | Send mail with the named subject line (default: none). |\n| -t | — | — |  |\n| -T | — | — | Override the default TCP window size. To work around broken TCP window scaling imple‐ mentations, specify a value > 0 an |\n| -v | — | — |  |\n| -w | — | — | Wait a fixed time between messages. Suspending one thread does not affect other de‐ livery threads. [inet:]host[:port] C |\n\n## See Also\n\n- smtp-sink(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (10 lines) — 22 subsections\n  - -4 (2 lines)\n  - -6 (2 lines)\n  - -A (2 lines)\n  - -c (2 lines)\n  - -C (4 lines)\n  - -d (2 lines)\n  - -f (2 lines)\n  - -F (3 lines)\n  - -l (2 lines)\n  - -L (1 lines)\n  - -m (2 lines)\n  - -M (3 lines)\n  - -N (4 lines)\n  - -o (1 lines)\n  - -r (3 lines)\n  - -R (3 lines)\n  - -s (2 lines)\n  - -S (2 lines)\n  - -t (1 lines)\n  - -T (3 lines)\n  - -v (1 lines)\n  - -w (9 lines)\n- **BUGS** (2 lines)\n- **SEE ALSO** (2 lines)\n- **LICENSE** (16 lines)\n\n## Full Content\n\n### NAME\n\nsmtp-source - parallelized SMTP/LMTP test generator\n\n### SYNOPSIS\n\nsmtp-source [options] [inet:]host[:port]\n\nsmtp-source [options] unix:pathname\n\n### DESCRIPTION\n\nsmtp-source  connects to the named host and TCP port (default: port 25) and sends one or more\nmessages to it, either sequentially or in parallel. The program speaks either SMTP  (default)\nor LMTP.  Connections can be made to UNIX-domain and IPv4 or IPv6 servers.  IPv4 and IPv6 are\nthe default.\n\nNote: this is an unsupported test program. No attempt is made to maintain  compatibility  be‐\ntween successive versions.\n\nArguments:\n\n#### -4\n\nout IPv6 support.\n\n#### -6\n\nwithout IPv6 support.\n\n#### -A\n\ncode.\n\n#### -c\n\npletes.\n\n#### -C\n\nWhen  a host sends RESET instead of SYN|ACK, try count times before giving up. The de‐\nfault count is 1. Specify a larger count in order to work around a problem with TCP/IP\nstacks that send RESET when the listen queue is full.\n\n#### -d\n\ntion.\n\n#### -f\n\nUse the specified sender address (default: <foo@myhostname>).\n\n#### -F\n\nSend the pre-formatted message header and body in the specified file, while prepending\n'.' before lines that begin with '.', and while appending CRLF after each line.\n\n#### -l\n\nSend length bytes as message payload. The length does not include message headers.\n\n#### -L\n\n#### -m\n\nSend the specified number of messages (default: 1).\n\n#### -M\n\nUse  the specified hostname or [address] in the HELO command and in the default sender\nand recipient addresses, instead of the machine hostname.\n\n#### -N\n\ntificial  100%  hit  rate  in  the resolve and rewrite client caches and exercises the\ntrivial-rewrite daemon,  better  approximating  Postfix  performance  under  real-life\nwork-loads.\n\n#### -o\n\n#### -r\n\nSend the specified number of recipients per transaction (default: 1).  Recipient names\nare generated by prepending a number to the recipient address.\n\n#### -R\n\nWait for a random period of time 0 <= n <= interval between messages.  Suspending  one\nthread does not affect other delivery threads.\n\n#### -s\n\nRun the specified number of SMTP sessions in parallel (default: 1).\n\n#### -S\n\nSend mail with the named subject line (default: none).\n\n#### -t\n\n#### -T\n\nOverride  the default TCP window size. To work around broken TCP window scaling imple‐\nmentations, specify a value > 0 and < 65536.\n\n#### -v\n\n#### -w\n\nWait a fixed time between messages.  Suspending one thread does not affect  other  de‐\nlivery threads.\n\n[inet:]host[:port]\nConnect via TCP to host host, port port. The default port is smtp.\n\nunix:pathname\nConnect to the UNIX-domain socket at pathname.\n\n### BUGS\n\nNo SMTP command pipelining support.\n\n### SEE ALSO\n\nsmtp-sink(1), SMTP/LMTP message dump\n\n### LICENSE\n\nThe Secure Mailer license must be distributed with this software.\n\nAUTHOR(S)\nWietse Venema\nIBM T.J. Watson Research\nP.O. Box 704\nYorktown Heights, NY 10598, USA\n\nWietse Venema\nGoogle, Inc.\n111 8th Avenue\nNew York, NY 10011, USA\n\n\n\nSMTP-SOURCE(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "smtp-source",
        "section": "1",
        "mode": "man",
        "summary": "smtp-source - parallelized SMTP/LMTP test generator",
        "synopsis": "smtp-source [options] [inet:]host[:port]\nsmtp-source [options] unix:pathname",
        "flags": [
            {
                "flag": "-4",
                "long": null,
                "arg": null,
                "description": "out IPv6 support."
            },
            {
                "flag": "-6",
                "long": null,
                "arg": null,
                "description": "without IPv6 support."
            },
            {
                "flag": "-A",
                "long": null,
                "arg": null,
                "description": "code."
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "pletes."
            },
            {
                "flag": "-C",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "tion."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "Use the specified sender address (default: <foo@myhostname>)."
            },
            {
                "flag": "-F",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "Send length bytes as message payload. The length does not include message headers."
            },
            {
                "flag": "-L",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-m",
                "long": null,
                "arg": null,
                "description": "Send the specified number of messages (default: 1)."
            },
            {
                "flag": "-M",
                "long": null,
                "arg": null,
                "description": "Use the specified hostname or [address] in the HELO command and in the default sender and recipient addresses, instead of the machine hostname."
            },
            {
                "flag": "-N",
                "long": null,
                "arg": null,
                "description": "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."
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-r",
                "long": null,
                "arg": null,
                "description": "Send the specified number of recipients per transaction (default: 1). Recipient names are generated by prepending a number to the recipient address."
            },
            {
                "flag": "-R",
                "long": null,
                "arg": null,
                "description": "Wait for a random period of time 0 <= n <= interval between messages. Suspending one thread does not affect other delivery threads."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "Run the specified number of SMTP sessions in parallel (default: 1)."
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": "Send mail with the named subject line (default: none)."
            },
            {
                "flag": "-t",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-T",
                "long": null,
                "arg": null,
                "description": "Override the default TCP window size. To work around broken TCP window scaling imple‐ mentations, specify a value > 0 and < 65536."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-w",
                "long": null,
                "arg": null,
                "description": "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."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "smtp-sink",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/smtp-sink/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": [
                    {
                        "name": "-4",
                        "lines": 2,
                        "flag": "-4"
                    },
                    {
                        "name": "-6",
                        "lines": 2,
                        "flag": "-6"
                    },
                    {
                        "name": "-A",
                        "lines": 2,
                        "flag": "-A"
                    },
                    {
                        "name": "-c",
                        "lines": 2,
                        "flag": "-c"
                    },
                    {
                        "name": "-C",
                        "lines": 4,
                        "flag": "-C"
                    },
                    {
                        "name": "-d",
                        "lines": 2,
                        "flag": "-d"
                    },
                    {
                        "name": "-f",
                        "lines": 2,
                        "flag": "-f"
                    },
                    {
                        "name": "-F",
                        "lines": 3,
                        "flag": "-F"
                    },
                    {
                        "name": "-l",
                        "lines": 2,
                        "flag": "-l"
                    },
                    {
                        "name": "-L",
                        "lines": 1,
                        "flag": "-L"
                    },
                    {
                        "name": "-m",
                        "lines": 2,
                        "flag": "-m"
                    },
                    {
                        "name": "-M",
                        "lines": 3,
                        "flag": "-M"
                    },
                    {
                        "name": "-N",
                        "lines": 4,
                        "flag": "-N"
                    },
                    {
                        "name": "-o",
                        "lines": 1,
                        "flag": "-o"
                    },
                    {
                        "name": "-r",
                        "lines": 3,
                        "flag": "-r"
                    },
                    {
                        "name": "-R",
                        "lines": 3,
                        "flag": "-R"
                    },
                    {
                        "name": "-s",
                        "lines": 2,
                        "flag": "-s"
                    },
                    {
                        "name": "-S",
                        "lines": 2,
                        "flag": "-S"
                    },
                    {
                        "name": "-t",
                        "lines": 1,
                        "flag": "-t"
                    },
                    {
                        "name": "-T",
                        "lines": 3,
                        "flag": "-T"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "-w",
                        "lines": 9,
                        "flag": "-w"
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 16,
                "subsections": []
            }
        ]
    }
}