Skip to content

qmail cdb.8

Manvendra Bhangui edited this page Feb 8, 2023 · 6 revisions

NAME

qmail-cdb - prepare data in cdb format for qmail.

SYNOPSIS

qmail-cdb [ -r -m ] filename

DESCRIPTION

With the -r option qmail-cdb does a chdir to /etc/indimail/users and reads the addresses provided in recipients, converts them into lowercase, and writes them into filename.cdb in a binary format suited for quick access by qmail-smtpd. Each line in filename should be a local email address. filename.cdb is compatible with setforward(1)'s generated 'fastforward' cdbs and it's format is portable across machines. With the -r option, and /etc/indimail/users/recipients is used as the filename.

Without the -r option qmail-cdb does a chdir to /etc/indimail/control and reads the instructions in filename, converts them into lowercase, and writes them into filename.cdb in a binary format suited for quick access by qmail-smtpd or spawn-filter.

If there is a problem with filename, qmail-cdb complains and leaves filename.cdb alone.

qmail-cdb ensures that filename.cdb is updated atomically, so qmail-smtpd or spawn-filter never has to wait for qmail-cdb to finish. However, qmail-cdb makes no attempt to protect against two simultaneous updates of filename.cdb.

The binary filename.cdb format is portable across machines. qmail-cdb renames filename to filename.bak if it succeeds.

The -m option moves filename to filename.bak after a successfull conversion to cdb.

The following control files can also be converted to cdb format using qmail-cdb(8).

authdomains, badhelo, badext, badmailfrom, badrcptto, blackholedsender, blackholedrcpt, chkrcptdomains, goodrcptto, relaymailfrom, spamignore, greylist.white, tlsa.white, tlsadomains, morercpthosts, badip, and recipients.

SEE ALSO

qmail-sql(8), cdb-database(8), qmail-smtpd(8), spawn-filter(8), setforward(1), fastforward(1), qmail-multi(8),

Clone this wiki locally