Database

Read/Writeable
The database object is the essential backend for greylist. It's where greylist stores triplets and looks them up. It's also used for checking whitelisting.
It's possible to use multiple databases by defining multiple [database] sections. Each database section can use a different database type. It's possible to mix local databases (e.g. SQLite) for whitelisting and a networked MySQL database for greylisting.
Databases are made available to other objects through a datasource. Multiple datasources can be attached to a database so it is possible to run all whitelisting and greylisting using one database object.

[database]
name=greylistdb
type=mysql
spareconnections=10
...
name
The internal name of this database - referenced by datasource
type
the DBI type of the database - see libdbi documentation for all available types
spareconnections
maximum number of spare database connections

The rest of the parameters are identical with the DBI parameters - for a MySQL database these are:

[database]
name=greylistdb
type=mysql
host=localhost
dbname=greylist
username=root
password=
port=3306 #default