SMTP(1)
π SMTP(1) β the smtp girlies' field guide π
okay so bestie, gather round, because we're talking about smtp, aka the Simple Mail Transfer Protocol client from the General Commands Manual. she's giving mail girlie, she's giving handshake energy, and honestly? iconic. π
β¨ NAME β¨
smtp β Simple Mail Transfer Protocol client π
πΈ SYNOPSIS πΈ
smtp [-Chnv] [-a authfile] [-F from] [-H helo] [-s server] [-T params]
[recipient ...]
π¦ DESCRIPTION π¦
so the smtp utility is a Simple Mail Transfer Protocol (SMTP) client, and you literally use it to run an SMTP transaction against an SMTP server. that's the whole vibe. π«Ά
by default, smtp reads the mail content from the standard input, establishes an SMTP session, and runs an SMTP transaction for all the specified recipients. the content is sent unaltered as mail data β no edits, no glow-up, it goes out exactly as it came in. periodt. π
the options are as follows:
π OPTIONS π
-a authfileβ do a login before sending the message π the username and password are read from authfile and need to be on the first and second line respectively. this option requires a TLS or STARTTLS server β no TLS, no login, sorry babe.-Cβ do not require the server certificate to be valid. β οΈ heads up though: this flag is deprecated. use-T noverifyinstead, bestie.-F fromβ set the return-path (MAIL FROM) for the SMTP transaction. defaults to the current username. π«‘-H heloβ define the hostname to advertise (HELO) when establishing the SMTP session. she's introducing herself. πββοΈ-hβ display usage. the classic "help me bestie" flag.-nβ do not actually execute a transaction, just try to establish an SMTP session and quit. when this option is given, no message is read from the standard input. it's giving window shopping, not buying. ποΈ-s serverβ specify the server to connect to and the connection parameters. the format is[proto://[user:pass@]]host[:port]. the following protocols are available:smtpβ normal SMTP session with opportunistic STARTTLS. π€οΈsmtp+tlsβ normal SMTP session with mandatory STARTTLS. no TLS, no entry. π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. π₯
defaults to smtp://localhost:25. the default. the blueprint. β¨
-T paramsβ 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 the 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). π«noverifyβ do not require the server certificate to be valid. π¬ (the non-deprecated glow-up of-C)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. π·οΈ
-vβ be more verbose. this option can be specified multiple times, so stack her up like your skincare routine. the more-v, the more she tells you. π£οΈβ¨
π SEE ALSO π
smtpd(8)β the other half of the story, go read her too π
β HISTORY β
the smtp program first appeared in OpenBSD 6.4. a legend from day one, no cap. π
ngl, if you're doing the -a authfile thing, remember: TLS or STARTTLS server required. required. don't skip it, bestie, i'm literally begging. π
and that's the whole page, we ate and left no crumbs. π
this gorgeous little write-up is living in the Debian release from May 23, 2021, filed under SMTP(1) β so when you cite her, cite her right. bye babes, go send some mail! π¦ππΈ
π¦ where this page comes from
- alpine 3.24: opensmtpd-doc 7.8.0_p0-r0 Β· ISC
- arch rolling: opensmtpd 7.9.0p0-1 Β· custom
- debian trixie: opensmtpd 7.6.0p1-1 Β· ISC
- nixos 26.05: opensmtpd 7.8.0p0
- nixpkgs unstable: opensmtpd 7.8.0p0
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- opensuse-leap 16.0: OpenSMTPD 7.9.0p0-bp160.1.1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC
- ubuntu noble: opensmtpd 7.4.0p1-1build4 Β· ISC
- ubuntu questing: opensmtpd 7.7.0p0-1
- ubuntu resolute: opensmtpd 7.8.0p0-2 Β· ISC
- ubuntu stonking: opensmtpd 7.8.0p0-2build1 Β· ISC
- Copyright (c) 2018, Eric Faurot <eric@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms