News

Mar 14, 2010
Category: General
Posted by: admin

18 May 2010, We just release Postfixrocks V1 for Slackware 12.x
You can download the packages from Download Menu

28 April 2010, We just release Postfixrocks V1 for CentOS/RHEL 5.x x86_64
You can download the packages from Download Menu

15 April 2010, We just release Postfixrocks V2 for OpenSUSE 11.1 X86_64
You can download the packages from Download menu

Postfixrocks V2 Release included :

- All previous postfixrocks packages
- Add Mailscanner
- Add ClamAV
- Add Spamassassin

 

Make a Donation

Does this site make your life easier? Help me keep it online.

 

Create Postfix MySQL Config

We will need to create all mysql virtual files.
This will contains a config to let postfix to connect to MySQL DB
So postfix will be able to recognize the domains mapping, domain alias and mailbox mapping.

$usr/local/etc/postfix
$pico mysql_virtual_alias_maps.cf

user = postfix
password = yourpostfixpassword
hosts = localhost
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'

$pico mysql_virtual_domains_maps.cf

user = postfix
password = yourpostfixpassword
hosts = localhost
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' AND active = '1'

$pico mysql_virtual_mailbox_maps.cf

user = postfix
password = yourpostfixpassword
hosts = localhost
dbname = postfix
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'

Note :

You need to change a user , password and dbname to suit your MySQL DB info