Krzysztof Trybowski:
> Hello all,
> I've been setting up Postfix recently. I'm using virtual mailboxes and
> store user data in MySQL. I'm aiming to create an elegant solution and
> there's one thing that bugs me: I have several mysql-virtual_*.cf
> files, each holding query to a different MySQL table. Each of those
> files also contain all database access details, such as database name,
> username, password.
> 
> Can these be moved to just one file? I don't like the complexity of
> how this is done, in case then the database access details change, I'd
> have to edit five different files.

On the Postfix side, you usually need one .cf file per Postfix map.

On the MySQL side, you can store everything in one table.

        Wietse

Reply via email to