SMTP(1)
okay bestie, pull up a chair and grab your emotional support iced coffee β because we're reading a manual page together and it's genuinely gonna be fine. this one is smtp, and it lives in the General Commands Manual (section 1, the user-facing girlies π
). no cap, it's shorter than it looks.
β¨ NAME β¨
smtp β Simple Mail Transfer Protocol client. that's her. that's the whole vibe. she speaks SMTP and she's very good at it. π¦
π SYNOPSIS π
smtp [-Chnv] [-a authfile] [-F from] [-H helo] [-s server] [-T params]
[recipient ...]
πΈ DESCRIPTION πΈ
the smtp utility is a Simple Mail Transfer Protocol (SMTP) client, and you use it to run an SMTP transaction against an SMTP server. that's the whole main character arc. π
by default? smtp reads the mail content from standard input, establishes an SMTP session, and runs an SMTP transaction for all the recipients you specified. the content gets sent unaltered as mail data β no glow-up, no edits, no notes. it goes out exactly as you wrote it, fr fr. π
the options are as follows, and yes we're doing all of them:
-aauthfile β perform a login before sending the message. the username and password are read from authfile, and they need to be on the first and second line respectively (username first, password second, no skipping lines bestie). this option requires a TLS or STARTTLS server. π-Cβ do not require server certificate to be valid. > this flag is deprecated. use-T noverifyinstead. okay so she still works but she's retired, like a queen stepping back from the throne π-Ffrom β set the return-path (MAIL FROM) for the SMTP transaction. defaults to the current username. so if you don't say anything, she's just gonna use who you are. identity theft? no. default behaviour? yes. π«Ά-Hhelo β define the hostname to advertise (HELO) when establishing the SMTP session. it's giving "hi, it's me" energy, but you get to pick which me. β¨-hβ display usage. the classic "help me I forgot the flags" button. π-nβ do not actually execute a transaction, just try to establish an SMTP session and quit. and when this option is given, no message is read from the standard input β so she's not even looking at your stdin, she's just vibing at the door. a vibe check, if you will. πͺ-sserver β specify the server to connect to and connection parameters. the format is:
[proto://[user:pass@]]host[:port]
and the following protocols are available:
smtpβ normal SMTP session with opportunistic STARTTLS.smtp+tlsβ normal SMTP session with mandatory STARTTLS. she said mandatory. πsmtp+notlsβ plain text SMTP session without TLS.lmtpβ LMTP session with opportunistic STARTTLS.lmtp+tlsβ LMTP session with mandatory STARTTLS.lmtp+notlsβ plain text LMTP session without TLS.smtpsβ SMTP session with forced TLS on connection. no negotiations, no small talk, TLS from the jump. π₯
defaults to smtp://localhost:25. so if you say nothing at all, she's knocking on localhost port 25 like it's her ex's door. π
-Tparams β set specific parameters for TLS sessions. the params string is a comma or space separated list of options. the available options are:cafile=filenameβ use filename as root certificates file instead of the system default.ciphers=valueβ specify the allowed ciphers. refer totls_config_set_ciphers(3)for value.nosniβ disable Server Name Indication (SNI). she's being mysterious on purpose. πΆοΈnoverifyβ do not require server certificate to be valid. (this is the glow-up replacement for that deprecated-Cup there, iykyk.)protocols=valueβ specify the protocols to use. refer totls_config_parse_protocols(3)for value.servername=valueβ use value for Server Name Indication (SNI). defaults to the specified server hostname. so she already has a name picked out, but you can rename her. π
-vβ be more verbose. and the bestie detail here: this option can be specified multiple times. stack them. pile them up. more-v, more words. π£οΈ
π SEE ALSO π
smtpd(8) β go read that one next, she's the server side of the story.
π HISTORY π
the smtp program first appeared in OpenBSD 6.4. a legend from day one, periodt. β
okay that's the whole page, you made it, I'm so proud of you π«Ά and for the record, this gorgeous little document is dated $Mdocdate: May 23 2021 $ and it signs off as SMTP(1) β so go send an email, bestie, you're literally qualified now πβ¨π§
π¦ where this page comes from
- epel 10: opensmtpd 7.9.0p0-1.el10_3 Β· ISC
- epel 9: opensmtpd 7.6.0p1-1.el9 Β· ISC
- fedora 43: opensmtpd 7.7.0p0-3.fc43 Β· ISC
- fedora 43: opensmtpd 7.8.0p0-1.fc43 Β· ISC
- fedora 44: opensmtpd 7.8.0p0-2.fc44 Β· ISC
- fedora 44: opensmtpd 7.9.0p0-1.fc44 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms