/etc/postfix/mysql-forward.cf

Create this file as root, and insert these lines. Brackets indicate server-specific information.
# mysql config file for forward lookups on postfix
# comments are ok.
#

# the user name and password to log into the mysql server
hosts = <mysql ip>
user = mail
password = <the mysql user mail's password>

# the database name on the servers
dbname = mail

# the table name
table = virtual

#
select_field = dest
where_field = alias


Amin Astaneh 2007-02-28