-
-
Notifications
You must be signed in to change notification settings - Fork 3
qmail cdb.8
qmail-cdb - prepare data in cdb format for qmail.
qmail-cdb [ -r -m ] filename
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.
qmail-sql(8), cdb-database(8), qmail-smtpd(8), spawn-filter(8), setforward(1), fastforward(1), qmail-multi(8),