I wrote a small shellscript which converts existing mail relays in /etc/aliases to a SQL database. It worked for me in this simple form but I can take no responsibility whatsover for any other setup.

The usage is pretty much straight forward - simply give the script the needed information as to where the aliases file is located, the account for MySQL and so forth. Note: In the current implementation you have to create the database, a user and a valid relay table yourself. If you don't know how to do that you can extract this information in my howto on migrating Postfix to MySQL.
download
Comments:

Post a Comment:
Comments are closed for this entry.

This blog copyright 2009 by Alain M. Lafon / Felix Baumann