UPDATE-EXIM4DEFAULTS(8)
π UPDATE-EXIM4DEFAULTS π
okay bestie, so this one is update-exim4defaults β it's the little helper that lives in your System Manager's Manual and handles the Exim daemon's default file. She's giving "glue script that other packages depend on" and honestly? iconic behavior.
β¨ NAME β¨
update-exim4defaults β manage the exim4 daemon default file. that's it, that's the job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
update-exim4defaults [ --qflags flags ] [ --queuerunner
combined|queueonly|separate|ppp|no|nodaemon ] [ --queuetime time ] [
--commonoptions options ] [ --queuerunneroptions options ] [
--smtplisteneroptions options ] [ --remove-common options ] [
--remove-queue options ] [ --remove-smtp options ] [ --force|-f ] [
--help|-h ] [ --init ]
π DESCRIPTION π
so update-exim4defaults lets you set the run parameters for the Exim daemon inside /etc/default/exim4. lowkey its whole main character purpose is interacting with other packages that enhance Exim β think virus-scanners and friends β because those packages need to change the way the exim daemon gets started, and they need a polite, official way to do it instead of just raw-editing your config like a menace π
π OPTIONS π
--help,-hβ prints a short usage instruction and dips. that's all, she's brief π«--qflagsflags β sets qflags, which are the special flags handed to exim directly right after the-q. peek atexim(8)if you want the full lore.--queuerunnercombined|queueonly|separate|ppp|no|nodaemon β the big vibe question: how should this whole thing run? okay so your choices are:- combined β one single daemon that listens on the smtp port for incoming connections and runs the queue at regular intervals.
- separate β two separate daemons, one listening on the smtp port and the other running the queue.
- ppp β the queue only gets run by
/etc/ppp/ip-up.d/exim4. - no β don't run the queue at all, like, say, if you'd rather handle it with cron yourself (respect).
- queueonly β only start a queuerunner.
- nodaemon β no daemon at all. nothing. silence. ghost mode π»
--queuetimetime β how often do we run the queue? this gets passed to Exim as the option-q<qflags>time, so for example-q30mor-qq1h.--commonoptionsoptions β options that get passed to both the queue-running instance and the listening instance of Exim. shared custody π«Ά--queuerunneroptionsoptions β options passed only to the instance of Exim that runs the queue.--smtplisteneroptionsoptions β options passed only to the instance of Exim listening on the SMTP port.--force,-fβ without this,update-exim4defaultswill exit with an error if at least one of--queuetime,--commonoptions,--queuerunneroptionsor--smtplisteneroptionsis used and the corresponding value in/etc/default/exim4is already set to a nonempty value. so like, she's checking if you're about to clobber something that already exists.--forceis you saying "yes bestie, I know, overwrite it anyway" π--remove-commonoption β try to remove the given option fromCOMMONOPTIONS.--remove-queueoption β try to remove the given option fromQUEUERUNNEROPTIONS.--remove-smtpoption β try to remove the given option fromSMTPLISTENEROPTIONS.
okay important, no skipping: the--remove-commandscannot be used at the same time as any of--commonoptions,--queuerunneroptionsor--smtplisteneroptions. and the--remove-commandswill additionally strip whitespace off the beginning and the end of the option, and swap multiple spaces out for a single one. tidy queen β¨
--initβ create a default/etc/default/exim4file and exit immediately. unless--forcewas also specified,update-exim4defaultsexits (successfully!) without doing anything at all if/etc/default/exim4already exists. and heads up: all other options are ignored when you use this one. π
π¦ EXIT STATUS π¦
0β the change was successful, or literally nothing needed to be done. we love a chill outcome.1β generic error: wrong options, unreadable configuration file, etc. the classic.2βQUEUEINTERVALwas already set.4βCOMMONOPTIONSwas already set.8βQUEUERUNNEROPTIONSwas already set.16βSMTPLISTENEROPTIONSwas already set.32βQFLAGSwas already set.64β--remove-somethingfailed, i.e. the value of the option was not changed. π
and here's the math part: exit codes 2 to 32 get summed up if more than one unsuccessful option was given. so yes, you can absolutely receive a cursed little number that is the sum of several disappointments. no cap.
π FILES π
/etc/default/exim4β the configuration file. the whole point. the moment./etc/init.d/exim4β the Exim init-script./etc/ppp/ip-up.d/exim4β the queuerunner in this file also usesCOMMONOPTIONSandQUEUERUNNEROPTIONS, and it does not run ifQUEUERUNNER=no.
π BUGS π
okay so the page itself is spilling the tea: this manual page needs a major re-work. if somebody knows better groff than us and has more experience writing manual pages, any patches would be greatly appreciated. (not me volunteering, but alsoβ¦ π)
π SEE ALSO π
exim(8), /usr/share/doc/exim4-base/
π AUTHOR π
Andreas Metzler <ametzler at downhill.at.eu.org>
and that's the whole thing, bestie π«Ά this was the EXIM4 page, dated March 26, 2003, and yes she's still out here doing update-exim4defaults(8) duties. slay, periodt π
β¨
π¦ where this page comes from
- debian bookworm: exim4-config 4.96-15+deb12u10
- ubuntu jammy: exim4-config 4.95-4ubuntu2
- ubuntu jammy: exim4-config 4.95-4ubuntu2.12
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms