FDM(1)
π FDM(1) β fetch and deliver mail π
okay bestie, sit down, hydrate, because this one is a whole system. We're in the General Commands Manual section, and this is fdm β the fetch-and-deliver-mail icon. β¨
πΈ NAME πΈ
fdm β fetch and deliver mail π«Ά
β¨ SYNOPSIS β¨
fdm [-hklmnqv] [-a account] [-D name=value] [-f conffile] [-u user]
[-x account] [fetch | poll | cache]
π DESCRIPTION π
Okay so the whole vibe of fdm is this: it fetches mail from a POP3 or IMAP server, or straight from stdin, and then delivers it based on a ruleset living in the configuration file. That's it. That's the girl. π
Here are the options, no skips, no skimming, we're doing all of them: π
π OPTIONS π
-aname β Process only the specified account. You can drop this option multiple times, no cap. And the account name can include shell glob characters so you can match a bunch of accounts in one go. π-Dname=value β Defines a macro for use when parsing the configuration file. Heads up bestie: the macro name must be prefixed with$or%β$means a string macro,%means a numeric one. This option may appear multiple times too. β¨-fconffile β Specify where the configuration file lives. Default is~/.fdm.conf, or/etc/fdm.confif that first one doesn't exist. ποΈ-hβ Look at theHOMEenvironment variable to figure out the user's home directory. π-kβ Keep all mail after delivery, regardless of whether it matches a drop action.
β οΈ Careful though: mails kept this way will be refetched by fdm if you run it again on the same account. Not a vibe, just a fact. π
-lβ Log usingsyslog(3)instead of tostderr. π-mβ Ignore the lock file and run anyway, regardless of other instances offdmrunning. Chaotic behavior, but okay! π-nβ Don't process any accounts at all β just verify the configuration file syntax and exit. A lil dry run for the grammar girlies. β-qβ Quiet mode. Only errors get printed. π€«-uuser β Specify the default user for delivery. This overrides thedefault-useroption in the configuration file. π-vβ Request verbose logging. May be specified multiple times, and each level gives you more tea:-vvprints information on configuration (super useful with-n) π-vvvvduplicates all traffic to and from remote servers tostdoutπ- This feature is disabled when using the
-lflag.
-xname β Exclude the named account. Multiple-xoptions may be specified, and just like with-a, shell glob characters may be used. π«fetch|poll|cacheβ The command, and here's the rundown:fetchtellsfdmto fetch and deliver messages. π¬pollpolls the accounts in the configuration file and reports a message count for each. πcachelets you manipulatefdmcache files β see the next section, bestie. π
π¦ CACHE COMMANDS π¦
The following cache manipulation commands are supported, and yes we're listing every single one: π«Ά
cache addpath stringcache removepath string
Add or remove string as a key in the cache at path. ποΈ
cache list[path] β List the number of keys in the specified cache. If path is omitted, it lists them in all caches declared in the configuration file. π’cache dumppath β Dump the contents of the cache path tostdout. Each key is printed followed by a space and the timestamp as Unix time. π°οΈcache clearpath β Delete all keys from the cache at path. Poof. Gone. π¨
π§ FILES π§
~/.fdm.confβ defaultfdmconfiguration file π/etc/fdm.confβ default system-wide configuration file ποΈ~/.fdm.lockβ default lock file π/var/db/fdm.lockβ lock file for the root user π
β SEE ALSO β
mail(1), fdm.conf(5), sendmail(8) β go read your sisters, they ate. π
π AUTHORS π
Nicholas Marriott <nicholas.marriott@gmail.com> β the icon, the legend, the moment. π
and that's the whole page bestie, every flag, every file, every cache command, nothing skipped, we ate and left no crumbs. π
This cutie was brought to you by Debian, dated December 22, 2008, and filed under FDM(1) β periodt. πβ¨
π¦ where this page comes from
- alpine 3.24: fdm-doc 2.2-r2 Β· ISC
- arch rolling: fdm 2.2-3 Β· BSD
- debian bookworm: fdm 1.9+git20181219-1+b2 Β· ISC
- nixos 26.05: fdm 2.2
- nixpkgs unstable: fdm 2.2
- ubuntu jammy: fdm 1.9+git20181219-1build1 Β· ISC
- ubuntu noble: fdm 1.9+git20181219-1.1build2 Β· ISC
- ubuntu questing: fdm 1.9+git20181219-1.1build2
- ubuntu resolute: fdm 2.2+git20250202-3 Β· ISC
- ubuntu stonking: fdm 2.2+git20250202-3build1 Β· ISC
- Copyright (c) 2006 Nicholas Marriott <nicholas.marriott@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms