#1  
Old 23rd April 2010, 05:59
acumen acumen is offline
Member
 
Join Date: Jun 2009
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
Default redundant mail server

can I setup 2 machine running ISPConfig 3.x and both of them can redundant each other? e.g. server A got domain abc.com (IP 1.2.3.4)and server B got 123.com (IP 5.6.7.8) and running as mail server. If server A is down, all abc.com will forward to 5.6.7.8 and temp store in server B, when Server A up again, the mail will send back to Server A. Same when server B is down. I know this also need DNS MX record to help. I already setup MX 10 point to 1.2.3.4 and MX 20 point to 5.6.7.8. the remaining should be how can postfix receive the emails if there's no such domain record? Is there any way I can set in ISPConfig? or I need to amend relay domain in main.cf ?
Reply With Quote
Sponsored Links
  #2  
Old 23rd April 2010, 09:03
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

You need to tell postfix on server B that it should accept mail for abc.com, and relay it to server A when possible.

This can be done with the "relay_domains" settings of postfix.

in your main.cf put:
relay_domains = $mydestination, abc.com

Now every mail for abc.com will be accepted, server B will automatically try to relay the mail to server A, if it fails it'll try it again after some time.
Reply With Quote
  #3  
Old 23rd April 2010, 09:19
acumen acumen is offline
Member
 
Join Date: Jun 2009
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I saw relay_domains in main.cf point to mysql-virtual_relaydomains.cf, and in that file, it point to a mail_transport in dbispconfig. After all checkings, I know that it's about Email Routing in ispconfig. So, is that means I only need to add a abc.com in Email Routing section?

In Email Routing, there is a destination field, what I have to put in? the 123.com's IP?
Reply With Quote
  #4  
Old 23rd April 2010, 09:26
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
 
Default

Ah yes, ispc3, i forgot

you can add an Email routing for abc.com yes

then test it something like this:
- add it
- turn off postfix on server a
- "tail -f /var/log/mail.log" on server b
- send mail to someone@abc.com
- check the log if it's accepted
- turn on postfix on server a
- check logs if it relays
- check mailbox on server a
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Catchall and Forwarding not working simmo General 6 22nd March 2014 00:54
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 21:06
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 16:30
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 01:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.