Mailfromd Manual (split by section):   Section:   Chapter:FastBack: Mailfromd Configuration   Up: Mailfromd Configuration   FastForward: Invocation   Contents: Table of ContentsIndex: Concept Index

7.9 Database Configuration

Syntax

database dbname {
  file name;
  enable bool;
  expire-interval interval;
  positive-expire-interval interval;
  negative-expire-interval interval;
}
Mailfromd Conf: database dbname

The database statement controls run-time parameters of a DBM database identified by dbname. Allowed values for the latter are: ‘cache’, ‘rate’ and ‘greylist’ for main cache, DNS lookup, sending rate and greylisting databases, correspondingly.

Statements

database: file name

Set the database file name.

database: enable bool

Enable or disable this database.

database: expire-interval time

Set the expiration interval for this database dbname. See time interval specification, for a description of time format.

database: positive-expire-interval time

This statement is valid only for ‘cache’ database. It sets the expiration interval for positive (‘success’) cache entries.

database: negative-expire-interval time

This statement is valid only for ‘cache’ database, where it sets expiration interval for negative (‘not_found’) cache entries.

Additional Statements

Mailfromd Conf: database-type type

Set default database type. type is one of the database types supported by mailutils (i.e., for Mailutils 3.0: ‘gdbm’, ‘ndbm’, ‘bdb’, ‘kc’, and ‘tc’). Run

mailfromd --show-defaults | grep 'supported databases:'

to get a list of type names supported by your build of mailfromd.

Mailfromd Conf: database-mode mode

Defines file mode for newly created database files. mode must be a valid file mode in octal.

Mailfromd Conf: lock-retry-count number

Set maximum number of attempts to acquire the lock. The time between each two successive attempts is given by lock-retry-timeout statement (see below). After the number of failed attempts, mailfromd gives up.

Mailfromd Conf: lock-retry-timeout time

Set the time span between the two locking attempts. Any valid time interval specification (see time interval specification) is allowed as argument.

Mailfromd Manual (split by section):   Section:   Chapter:FastBack: Mailfromd Configuration   Up: Mailfromd Configuration   FastForward: Invocation   Contents: Table of ContentsIndex: Concept Index