EXPN(1)
πΈ NAME πΈ
expn β recursively expand mail aliases. yes bestie, it's a section 1 manual page and it's serving π
β¨ SYNOPSIS β¨
expn [-a] [-v] [-w] [-d] [-1] user[@hostname] [user[@hostname]]...
π¦ DESCRIPTION π¦
so here's the tea: expn uses the SMTP expn and vrfy commands to expand mail aliases. it's giving detective energy fr fr π
first it looks up the addresses you handed it on the command line. if those expand into addresses on other systems, it connects to those other systems and expands again. and it keeps doing this, over and over, until no further expansion is possible. it literally does not stop until the expansion is done. periodt. π
π OPTIONS π
the default output of expn can contain many lines which are not valid email addresses. keep that in mind, because it's about to matter a LOT.
-a(the address flag) β with the-aaflag, only expansions that result in legal addresses are used. since many mailing lists have an illegal address or two, the single-aflag specifies that a few illegal addresses can be mixed into the results. more-aflags vary the ratio. ποΈ read the source to track down the formula (iykyk). with the-aoption, you should be able to construct a new mailing list out of an existing one. slay.-1β wanna cap how deepexpnrecurses while it traces addresses? that's this one. for each-1, another level will be traversed. so-111will traverse no more than three levels deep. πͺ-v(the verbose flag) β the normal mode of operation forexpnis to do all of its work silently. π€« the following options make it more verbose. it is not necessary to make it verbose to see what it's doing, because as it works, it changes itsargv[0]variable to reflect its current activity. to see how it's expanding things, the-vflag will causeexpnto show each address before and after translation as it works. π¬-w(the watch flag) β will causeexpnto show you its conversations with the mail daemons. eavesdropping, but make it productive. π-d(the debug flag) β will expose many of the inner workings so that it's possible to eliminate bugs. full main character transparency. π₯
π ENVIRONMENT π
No environment variables are used. not a single one. the vibes are entirely self-contained. π§
π FILES π
/tmp/expn$$β temporary file used as input tonslookup.
π SEE ALSO π
aliases(5), sendmail(8), nslookup(8), RFC 823, and RFC 1123.
π BUGS π
okay bestie, deep breaths, here's the not-so-cute part:
- not all mail daemons will implement
expnorvrfy. it is not possible to verify addresses that are served by such daemons. π - when attempting to connect to a system to verify an address,
expnonly tries one IP address. most mail daemons will try harder. we love an underachiever. π - it is assumed that you are running domain names and that the
nslookup(8)program is available. if not,expnwill not be able to verify many addresses. it will also pause for a long time unless you change the code where it says$have_nslookup = 1to read$have_nslookup = 0. βοΈ - lastly,
expndoes not handle every valid address. if you have an example, please submit a bug report. do it for the culture. π«Ά
π CREDITS π
in 1986 or so, Jon Broome wrote a program of the same name that did about the same thing. it has since suffered bit rot and Jon Broome has dropped off the face of the earth! (Jon, if you are out there, drop me a line) π‘
β AVAILABILITY β
the latest version of expn is available through anonymous ftp at:
ftp://ftp.idiom.com/pub/muir-programs/expn
πΈ AUTHOR πΈ
David Muir Sharnoff <muir@idiom.com>
and that's the whole page, bestie π this one's from the 7th Edition, dated March 11, 1993 β vintage, iconic, and still out here recursively expanding. periodt. πβ¨π¦
π¦ 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