Tag: aliases

Migration from /etc/aliases to MySQL

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

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


3 comments » | articles