CentOS Linux Server Guide

E-Mail Security Virtual Appliance (ESVA)

Part 2: Hosting Email for Multiple Domains

ESVA able to handle email domains. This is particular useful if you host multiple email domains and let all the incoming email to be screened on the same ESVA box. Due to ESVA is compiled using Postfix, we need to enable virtual hosting at Postfix configuration file.

 

Step 1. Specify the mail relay domain

First we edit /etc/postfix/transport file using VI.

vim /etc/postfix/transport

 

Step 2. Add relay domain.

The /etc/postfix/transport is where we specify where mail for each relay domain will be forwarded to. Here we specify the relay as the following.

 

email-domain  smtp:[ipaddress-or-fqdn-hostname-of-mail-server-that-hosted-email-domain]

 
www.1a-centossever.com smtp:[mail.1a-centosserver.com]
mydomain.com smtp:[192.168.1.22]
mydomain3.com.uk smtp:[192.168.1.25]
3
]

 

Step 4. Save it

:wq

 

Step 5. Run Postmap Command

Next we must run them through postmap command to create hashes for portmap

postmap hash:/etc/postfix/transport

 

Step 6. Reboot the postfix

service postfix restart

 

Now, sent a mail from Gmail or Hotmail. Then, go to  dashboard> Recent Messages.  You will notice email received much faster as compare to before (approx taking 5 mins).

 

Read More about E-Mail Security Virtual Appliance



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy