According to google, Postfix runs on Linux (not windows) and Mercury runs on Windows (not Linux)!
I hope you are running Linux and not Windows. If Linux use postfix. (exim is another but Postfix is easier and fast)
Just how easy is it to set up virtual mailboxes? Easy as 1 2 3 ... see below.
apt-get install postfix
Configure it as Internet Site
Edit main.cf below:
Change YOURDOMAIN.COM to your own domain...
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = YOURDOMAIN.COM
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.com, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
Add the following lines at the end of main.cf ...
transport_maps = hash:/etc/postfix/transport
local_recipient_maps = hash:/etc/postfix/maildir
virtual_gid_maps = static:113
virtual_mailbox_base = /home/nulled/mailstorage/
virtual_mailbox_maps = hash:/etc/postfix/maildir
virtual_maps = hash:/etc/postfix/virtual
virtual_uid_maps = static:105
home_mailbox = Maildir/
Change *virtual_gid_maps* and *virtual_uid_maps* to the user/group id of your postfix install.
Change *virtual_mailbox_base* to where all your maildirs will be stored. Note: All Maildir/ MUST end with a / to indicate it is a Maildir type mailbox and not the old school lame way.
The key is transport_maps and local_recipient_maps
*transport_maps* allow you to add as many domains you want to manage that you have control over (ex: coolsite.com, my_other_site.com, another.com) /etc/postfix/transport example is below.
coolsite.com virtual:
my_other_site.com virtual:
another.com virtual:
*local_recipient_maps* let you create mailboxes with a single line added to /etc/postfix/maildir (no need to create a unix/linux user account! )
do_not_reply@coolsite.com coolsite.com/root/Maildir/
accounts@coolsite.com coolsite.com/accounts/Maildir/
root@another.com coolsite.com/root/Maildir/
www-data@another.com another.com/root/Maildir/
do_not_reply@my_other_site.com my_other_site.com/root/Maildir/
If you look closely, you will notice I directed mail from one domain into any folder I want, including into folders of other Emailbox domains! So if you have 3 email accounts, you can direct it all to be piled into a single maildir!
Be sure to run:
postmap /etc/postfix/maildir /etc/postfix/transport
No need to reload or restart postfix, changes happen as soon as you run postmap!
But changes to main.cf will require a postfix stop and start.