FDM(1)

NAME
fdm - fetch and deliver mail

SYNOPSIS
fdm [-klmnv] [-f conffile] [-u user] [-a account] [-x account] [fetch | poll]

DESCRIPTION
The fdm program fetches mail from a POP3 or IMAP server or from stdin and delivers it based on a ruleset in the configuration file.

The options are as follows:

-a name
    Process only the specified account. This option may appear multiple times. The account name may include shell glob characters to match multiple accounts.

-f conffile
    Specify the configuration file location. Default is ~/fdm.conf, or /etc/fdm.conf if that doesn't exist.

-k  Keep all mail after delivery, regardless of whether it matches a drop action. Note that mails kept in this way will be refetched by fdm if it is run again on the same account.

-l  Log using syslog(3) rather than to stderr.

-m  Ignore the lock file and run regardless of other instances of fdm.

-n  Do not process any accounts, just verify the configuration file syntax and exit.

-u user
    Specify the default user for delivery. This overrides the default-user option in the configuration file.

-v  Request verbose logging. This option may be specified multiple times. -vv will print information on configuration (useful with -n). -vvvv duplicates all traffic to and from remote servers to stdout, but note that this feature is disabled when using the -l flag.

-x name
    Exclude the named account. Multiple -x options may be specified. As with -a, shell glob characters may be used.

fetch | poll
    The fetch command instructs fdm to fetch and deliver messages. The poll command polls the accounts in the configuration file and reports a message count for each.

FILES
~/.fdm.conf
    default fdm configuration file
/etc/fdm.conf
    default system-wide configuration file
~/.fdm.lock
    default lock file
/var/db/fdm.lock
    lock file for root user

SEE ALSO
mail(1), fdm.conf(5), sendmail(8)

AUTHORS
Nicholas Marriott <nicm@users.sourceforge.net>