Before do this, please make sure that you have installed all the MySQL components, including mysql-devel.

2.

Then do the make

3.

DO the make install. At the end of this phase you will be prompt with many questions, answer them appropriate.

4.

Then start configure your Postfix, normally you can find the configuration in main.cf

The important settings (though there are several settings) you need to add are :

data_directory = /var/lib/postfixmail_owner = postfix - make sure that you have created the user postfixmyhostname = mail.yy.xx.lkmydomain = XX,cc.lkmyorigin = $mydomaininet_interfaces = allmydestination = $myhostname, localhost.$mydomain, localhostrelayhost = 192.NN.N.Nhome_mailbox = Maildir/ - This is important, and this is where you say that you want to use MailDir, not Mailboxvirtual_gid_maps = static:506virtual_mailbox_base = /var/mail/vhostsvirtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cfvirtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cfvirtual_minimum_uid = 100virtual_transport = virtualvirtual_uid_maps = static:504 - You must create another user, may be vmail, who should have permission to write mails to maildir. After adding those user, you need to specify the uid and gid of that user here in uid_maps and gid_maps. Also make sure that you have given sufficient permission to the mailbox_base to the user that you have created.

After doing all these settings in the main.cf file, you need to create another two files that you have given in "virtual_mailbox_domains" and "virtual_mailbox_maps".

This is used to select the MailDir name for the respective email account. For example if someone sends a mail to sarves@xyz.com, this will find and tells that where that message should go in the virtual_mailbox_base.