ETRN(8)
π etrn(8) β the System Administration Commands girlies know
okay bestie so listen, this is etrn(8), and she's a tiny little tool with main character energy. her whole job? start mail queue run. that's it. that's the vibe. π
β¨ NAME β¨
etrn β start mail queue run π
πΈ SYNOPSIS πΈ
etrn [-v] server-host [client-hosts]
like look at her. one option. she's not doing too much. she's serving simplicity. π
π¦ DESCRIPTION π¦
okay so SMTP has this command called ETRN, right? and what it does is let an SMTP client and an SMTP server interact β specifically, it hands the server an opportunity to start processing its queues for messages that need to go out to a given host. it's giving "hey girl, go check your mailbox and actually send the stuff." π
this is meant to be used in start-up conditions, and also for mail nodes that have transient connections to their service providers. iykyk β those nodes that pop in and out, not always online. β¨
so here's how etrn does her thing. she initiates an SMTP session with the host server-host, and then she sends one or more ETRN commands. the details:
- if no
client-hostsare specified,etrnlooks up every host name for whichsendmail(1M)accepts email, and for each name, sends anETRNcommand with that name as the argument. every single one. she's thorough. π - if any
client-hostsare specified,etrnuses each of these as arguments for successiveETRNcommands. one after another. slay.
π OPTIONS π
the following option is supported (yes, just one, and she's iconic for it):
-vβ the normal mode of operation foretrnis to do all of its work silently. the-voption makes it verbose, which causesetrnto display its conversations with the remote SMTP server. so if you wanna eavesdrop on the whole exchange, this is your girl. ππ¬
π ENVIRONMENT π
No environment variables are used.
literally none. she doesn't need them. unbothered. unproblematic. π
π FILES π
/etc/mail/sendmail.cfβ sendmail configuration file
π SEE ALSO π
sendmail(1M)- RFC 1985
go read those too, bestie. expand your mind. π§
π CAVEATS π
Not all SMTP servers support ETRN.
fr fr. so don't come crying to me when some random server is like "ETRN? never heard of her." π
β CREDITS β
Leveraged from David Muir Sharnoff's expn.pl script. Christian von Roques added support for args and fixed a couple of bugs. we love a collaborative effort. π«Ά
π AVAILABILITY π
The latest version of etrn is available in the contrib directory of the sendmail distribution through anonymous ftp at:
ftp://ftp.sendmail.org/ucb/src/sendmail/
π AUTHOR π
John T. Beck <john@beck.org>
and that's the whole page, bestie!! π this was etrn(8) from the System Administration Commands family β shoutout to John T. Beck <john@beck.org> for writing her, love that for us, mwah πβ¨
π¦ where this page comes from
- debian bookworm: sendmail-base 8.17.1.9-2+deb12u2 Β· other-Sendmail
- debian trixie: sendmail-base 8.18.1-6 Β· other-Sendmail
- ubuntu jammy: sendmail-base 8.15.2-22ubuntu3 Β· other-Sendmail
- ubuntu noble: sendmail-base 8.18.1-2 Β· other-Sendmail
- ubuntu questing: sendmail-base 8.18.1-6
- ubuntu resolute: sendmail-base 8.18.2-1 Β· other-Sendmail
- ubuntu stonking: sendmail-base 8.18.2-2build1 Β· other-Sendmail
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms