SMTPD(8)
π SMTPD(8) β the System Manager's Manual, but make it cute
okay bestie, gather round, because today we're talking about smtpd, the Simple Mail Transfer Protocol (SMTP) daemon. it's a manual page, it lives in section 8, and it's genuinely iconic. this is the system manager's manual version and i'm translating it for you with zero information lost. periodt. π
β¨ NAME β¨
smtpd β Simple Mail Transfer Protocol (SMTP) daemon. that's it. that's the name. she's simple, she's a protocol, she's a daemon. π
π SYNOPSIS π
smtpd [-dFhnv] [-D macro=value] [-f file] [-P system] [-T trace]
look at her. all those little flags. a whole wardrobe. π
πΈ DESCRIPTION πΈ
so smtpd is a Simple Mail Transfer Protocol (SMTP) daemon, and she can literally be used as a machine's primary mail system. main character energy fr fr.
she can listen on a network interface and handle SMTP transactions, and she can also be fed messages through the standard sendmail(8) interface. versatile queen. she can relay messages through remote mail transfer agents, or she can store them locally using either the mbox or maildir format. whatever vibe you're on, she's on it too. β¨
this implementation supports SMTP as defined by RFC 5321, plus several extensions, because she's generous like that.
and here's the cute part: a running smtpd can be controlled through smtpctl(8). so you're never just yelling into the void, you have a whole remote control. π«Ά
the options are as follows:
π OPTIONS π
-Dmacro=valueβ Define macro to be set to value on the command line. this overrides the definition of macro in the configuration file. command line said it first, command line wins, no cap.-dβ Do not daemonize. if you specify this,smtpdwill run in the foreground and log to stderr. so you get to watch everything happen live, like a reality show. π-Fβ Do not daemonize. if you specify this,smtpdwill run in the foreground and log tosyslogd(8). same energy as-d, different logging destination. choose your fighter.-ffileβ Specify an alternative configuration file. not feeling the default one? pick your own.-hβ Display version and usage. she'll introduce herself. π-nβ Configtest mode. Only check the configuration file for validity. just a vibe check on your config, she won't actually start anything.-Psystemβ Pause a specific subsystem at startup. normal operation can be resumed usingsmtpctl(8). this option can be used multiple times. the accepted values are:mdaβ Do not schedule local deliveries.mtaβ Do not schedule remote transfers.smtpβ Do not listen on SMTP sockets.
she's just taking a lil nap on that one subsystem, that's all. π΄
-Ttraceβ Enables real-time tracing at startup. normal operation can be resumed usingsmtpctl(8). this option can be used multiple times. the accepted values are:imsgiosmtp(incoming sessions)filterstransfer(outgoing sessions)bounceschedulerexpand(aliases/virtual/forward expansion)lookup(user/credentials lookups)statrules(matched by incoming sessions)mprocall
all of them is right there if you're feeling unhinged. π₯
-vβ Produce more verbose output. more words! more info! more everything! she's telling you everything now. π
π¦ FILES π¦
/etc/opensmtpd/mailnameβ Alternate server name to use./etc/opensmtpd/smtpd.confβ Default smtpd configuration file. this is the one./run/smtpd.sockβ Ux -domain socket used for communication withsmtpctl(8). that's her little phone line to her bestie. βοΈ/var/spool/smtpd/β Spool directories for mail during processing. where the mail hangs out mid-journey.~/.forwardβ User email forwarding information.
π SEE ALSO π
forward(5), smtpd.conf(5), mailwrapper(8), smtpctl(8)
go read those too. they're the friend group. π
β STANDARDS β
Rs %A J. Klensin %D October 2008 %R RFC 5321 %T Simple Mail Transfer Protocol Re
π HISTORY π
The smtpd program first appeared in OpenBSD 4.6. she's been around, she's got lore, she's a legend. π
a lil note for the group chat: nothing here is dangerous in a scary way, but remember-dand-Fboth mean do not daemonize, and-nmeans she only checks the config, she doesn't actually run. don't get it twisted. π
and that's the whole page bestie!! this was $Mdocdate: March 2 2023 $ from the SMTPD(8) manual β system manager's manual energy, delivered with love. mwah. π β¨ π¦ π
π¦ where this page comes from
- epel 10: opensmtpd 7.9.0p0-1.el10_3 Β· 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