EXTSMAIL.CONF(5)
β¨ EXTSMAIL.CONF β¨
okay bestie, welcome to extsmail.conf β the fifth section of the manual, file formats division, and it's literally the glow-up guide for making your email sending robust. no cap. π
NAME
extsmail.conf β configure robust sending of e-mail to external commands π
DESCRIPTION
so extsmail.conf is the config file that extsmail(1) and extsmaild(1) both read. it's giving very minimalist β it's just one or more key = value pairs, that's it, that's the whole vibe. π¦
here are the variables you can set, and yes you're gonna want to know all of them:
spool_dirβ this sets where the spool directory lives, the one thatextsmail(1)andextsmaild(1)both use. heads up: this is the only variable that must be set in every single configuration file. no spool_dir, no service, periodt. πnotify_failure_intervalβ tells you how often notifications of unsuccessful deliveries should happen. if you don't specify it, or you set it to0, notifications will never be made. and the time format? it's a number followed byd(days),h(hours),m(minutes), ors(seconds). cute and simple. β¨notify_failure_cmdβ the shell command that gets executed whennotify_failure_intervalseconds / minutes / hours / days have elapsed since the last fully successful send cycle. if the string${TIME}shows up in the command, it gets swapped out for a pretty printed string detailing exactly how much time has elapsed since that last fully successful send cycle. then the resulting string gets passed tosystem(3). π«Ά
bestie, real talk: no security checking is (or can be) done on the command, so this option should be used with caution if a single configuration file serves multiple users. please check the warnings that come with system(3). this is not a drill. π
notify_success_cmdβ the shell command executed when 1 or more messages have been successfully sent. if the string${SUCCESSES}exists in the command, it's replaced with a string representing the number of successfully sent messages. and yeah β the exact same warnings that apply tonotify_failure_cmdalso apply here. πΈ
FILES
the extsmail configuration file is searched for, in order, in these locations β first match wins, so bestie, order matters:
~/.extsmail/confβ per-user extsmail configuration. this one's yours personally, main character energy. π/etc/extsmail/confβ system-wide extsmail configuration. the communal one. π
EXAMPLES
okay so the absolute simplest configuration file looks like this, and honestly? iconic for how little it does:
spool_dir = "~/somewhere"
and here's a more complex one that uses a notification framework to keep the user informed about mail sending and failures β this is the one that ate, fr fr π₯:
spool_dir = "~/somewhere"
notify_failure_interval = 30m
notify_failure_cmd = "notify-send -a extsmaild -c email
-i mail-send -u critical 'extsmaild: ${TIME} since a fully
successful send cycle'"
notify_success_cmd = "notify-send -a extsmaild -c email
-i mail-send -u low 'extsmaild: ${SUCCESSES} messages
successfully sent'"
SEE ALSO
go read these next, bestie, they're all part of the same cinematic universe:
AUTHORS
- Laurence Tratt <http://tratt.net/laurie/> π«Ά
and that's the whole page, babes β this one came straight out of the Debian edition of the manual, dated November 2, 2008. yes it's vintage, yes it still slays. go configure something robust. mwah πβ¨
π¦ where this page comes from
- debian bookworm: extsmail 2.5-1 Β· MIT
- debian trixie: extsmail 2.5-3 Β· MIT
- ubuntu jammy: extsmail 2.5-1 Β· MIT
- ubuntu noble: extsmail 2.5-2 Β· MIT
- ubuntu questing: extsmail 2.5-3
- ubuntu resolute: extsmail 2.5-3build1 Β· MIT
- ubuntu stonking: extsmail 2.5-4 Β· MIT
- Copyright (C)2008 Laurence Tratt http://tratt.net/laurie/
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms