Juan Antonio Cuesta: > Hello, > > i have installed Postfix with support for Mysql, i want to write my > virtual file over a Mysql table. > I have 5 servers with postfix and is very simple shared the conf with > the 5 servers. > > All works very very well, but if the Server of Mysql y down the emails > are rejected and the smtp server stop working. Can i resolv this? i > would like that postfix do failover of mysql and continue with other > files: > > main.cf: > > virtual_maps = mysql:/etc/postfix/mysql-aliases.cf, hash:/etc/postfix/virtual
Sorry, Postfix maps are not a fail-over feature. They are searched in order until a result is found, so that you can use a local file for fast lookup and more expensive mechanisms for other lookups. If you already have the data in local files, then you don't need the MySQL server. If the data in your files is not accurate, then it is wrong to use the file data, because Postfix will mis-deliver or reject mail. Wietse