Postfix MySQL Howto
The Postfix mysql map type allows you to hook up Postfix to a
MySQL database. This implementation allows for multiple mysql
databases: you can use one for a
virtual(5) table, one for an
access(5) table, and one for an
aliases(5) table if you want. You
can specify multiple servers for the same database, so that Postfix
can switch to a good database server if one goes bad.
Busy mail servers using mysql maps will generate lots of
concurrent mysql clients, so the mysql server(s) should be run with
this fact in mind. You can reduce the number of concurrent mysql
clients by using the Postfix
proxymap(8) service.