Virtual Users And Domains With Postfix, Courier And MySQL (Ubuntu 7.10) - Page 6
13 Populate The Database And TestTo populate the database you can use the MySQL shell: mysql -u root -p At least you have to create entries in the tables domains and users: INSERT INTO `domains` (`domain`) VALUES ('example.com'); (Please take care you use the ENCRYPT syntax in the second INSERT statement in order to encrypt the password!) If you want to make entries in the other two tables, that would look like this: INSERT INTO `forwardings` (`source`, `destination`) VALUES ('info@example.com', 'sales@example.com'); To leave the MySQL shell, type quit; For most people it is easier if they have a graphical front-end to MySQL; therefore you can also use phpMyAdmin (in this example under http://192.168.0.100/phpmyadmin/ or http://server1.example.com/phpmyadmin/) to administrate the mail database. Again, when you create a user, go sure that you use the ENCRYPT function to encrypt the password:
I do not think I have to explain the domains and users table further. The forwardings table can have entries like the following:
The transport table can have entries like these:
See man transport for more details. Please keep in mind that the order of entries in the transport table is important! The entries will be followed from the top to the bottom. Important: Postfix uses a caching mechanism for the transports, therefore it might take a while until you changes in the transport table take effect. If you want them to take effect immediately, run postfix reload after you have made your changes in the transport table.
14 References
15 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





![Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License [Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License]](http://creativecommons.org/images/public/somerights20.gif)

print: 
Recent comments
21 hours 29 min ago
22 hours 57 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 11 hours ago