QuickInstall
From Virtual postfix admin
How to install
- How to install
- copy the content of the tar.gz to your www server, something like http://myserv.com/virtual_mail
- create a pgsql db with the name virtual_mail.To do this type createdb virtual_mail -h sql_server_name
- import in your new created db, the file from sql dir.To do this type psql -U db_user_name -d virtual_mail -h sql_host_name -f virtual_mail.sq
- Configure your postfix server
- 1 Main.cf
add this lines in your main.cf file
virtual_mailbox_domains = proxy:pgsql:/etc/postfix/virtual-domains_sql virtual_mailbox_base = /var/spool/mail/virtual virtual_mailbox_maps = pgsql:/etc/postfix/virtual_mailbox_sql virtual_uid_maps = pgsql:/etc/postfix/virtual_uid_sql virtual_gid_maps = pgsql:/etc/postfix/virtual_gid_sql virtual_alias_maps = proxy:pgsql:/etc/postfix/virtual_sql
- 2 virtual-domains_sql
add this lines in your virtual-domains_sql file
hosts = sql_server__name user = user_name password = password dbname = virtual_mail table = domains select_field = domain where_field = domain
- 3 virtual_mailbox_sql
add this lines in your virtual_mailbox_sql file
hosts = sql_server_name user = user_name password = password dbname = virtual_mail table = postfix_accounts select_field = mailbox where_field = address
- 4 virtual_uid_sql
add this lines in your virtual_uid_sql file
hosts = sql_server_name user = user_name password = password dbname = virtual_mail table = postfix_accounts select_field = uid where_field = address
- 5 virtual_gid_sql
add this lines in your virtual_gid_sql file
hosts = sql_server_name user = user_name password = password dbname = virtual_mail table = postfix_accounts select_field = gid where_field = address
- 6 virtual_alias_maps
add this lines in your virtual_sql file
hosts = sql_host_name user = user_name password = password dbname = virtual_mail table = postfix_aliases select_field = target_address where_field = address
Your postfix server must know pgsql.For more info read here http://www.postfix.org/PGSQL_README.html
- Connect to your virtual_mail web page
Just type in your browser http://yourserver.com/virtual_mail
To connect admin, user:admin, password:admin , user type:administrator. After login you can change your password.
Autoinstall script
For bugs questions etc contact me at this address
Enjoy :)

