faqts : Computers : Internet : Mail Servers : qmail : Installation and Configuration : .qmail files

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

60 of 67 people (90%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How to create a secondary redundant qmail server, in a geographically separated location.?

Jan 27th, 2004 20:29
Richard G., Jacob Paulose,


* Add the domain name for which you will be accepting email into your 
rcpthost file.

*IF* you are passing this email to an INTERNAL server you will need to 
remember that qmail looks up MX records in DNS and ignores hosts 
files.  To solve this problem you will need to either add an MX entry 
into a private DNS server that is accessed by the qmail server

-or-

you can setup a file called /var/qmail/control/SMTPROUTES that points 
to the IP address where you want to send the email.

The format for the SMTPROUTES file is
domain:where.to.route
domain:[ipaddress]
:host (or [ipaddress]

example:

widgets.com:[192.168.99.1] #route email destined for widgets.com  
                           # to internal ip address

salesforce.net:mail.salesforce.net #route mail for salesforse.net back
                                   #back to their mail server


:ms1.sendmymail.com        #send all mail to host ms1.sendmymail.com

:[192.168.99.2]            #send all mail to ip address 192.168.99.2