SMTPPROX(1)

πŸ“¦ version 1.2, in ubuntu jammy

✨ SMTPPROX(1) ✨

so bestie, you opened the General Commands Manual and landed on the page for smtpprox πŸ’– pull up a chair, this one's short and honestly kind of iconic.


🌸 NAME 🌸

smtpprox β€” a trivial transparent SMTP proxy. that's the whole name section. short, sweet, slays πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

smtpprox [options] listen.addr:port talk.addr:port

like… you give it where to listen, you give it where to talk, and it does the thing. listen.addr:port and talk.addr:port, in that order, no cap 🫢


πŸ’– DESCRIPTION πŸ’–

okay so first things first: this manual page only documents the smtpprox command briefly. it's a vibe check, not a whole dissertation, got it? πŸŽ€

now the actual tea: smtpprox is a trivial transparent SMTP proxy β€” and the way that works is it's literally an SMTP server and client combination wearing a trenchcoat. one side catches the mail, the other side hands it off. 🧚

and here's the part that's lowkey genius: it uses its own SMTP server and client modules, and those modules are designed so that every single step of the protocol dialogue gets exposed to the calling program. every. step. πŸ‘‘

why do we care?? because that gives you the greatest flexibility when you wanna hook in envelope and content controls and scanning. you're not fighting the library, bestie β€” the library is handing you the receipts. πŸ’…βœ¨


πŸ‘‘ OPTIONS πŸ‘‘

OPTIONS

(no fr, the original lists the OPTIONS heading twice and I'm not about to erase history. two headings, one girl. πŸ’€)

  • --children=N β€” how many child processes you want chillin' in the service pool. and listen: each child doesn't live forever, it dips out after servicing a random number of messages somewhere between minperchild and maxperchild. [default 16]
  • --minperchild=N β€” the minimum number of messages a child process will service before it's done. [default 100]
  • --maxperchild=N β€” the maximum number of messages a child process will service. [default 200]
  • --debugtrace=filename_prefix β€” okay so if you pass debugtrace, that prefix gets the PID appended to it, which gives you a separate logfile for each child πŸŽ€. and what goes in there? all the SMTP dialogues that child services. it looks like a snooper sitting on the client side of the proxy. ngl, it's giving surveillance but make it helpful. πŸ™ˆ

πŸŽ€ AUTHOR πŸŽ€

smtpprox was written by Bennett Todd, bet@rahul.net. πŸ‘‘

this manual page was written by Jesse Norell <jesse@kci.net>, for the Debian project (and may be used by others). 🫢


and that's the whole page, bestie!! this cutie came out of the GNUj source, dated 2012-12-11, and it lives at SMTPPROX(1) in the manual β€” go forth and proxy transparently πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from