Koozali.org: home of the SME Server

how to synchronize two servers qmail

Offline verti

  • *
  • 30
  • +0/-0
    • http://www.davidmartinez.org
how to synchronize two servers qmail
« on: April 14, 2006, 09:54:51 AM »
Hello,

I Have two servers SME 601, and I configured mx record for redundant service, but I not know the science for synchronize two servers when the first stoped.

Sorry for my english.
Thanks for your help me

David.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: how to synchronize two servers qmail
« Reply #1 on: April 14, 2006, 06:16:39 PM »
Quote from: "verti"

I Have two servers SME 601, and I configured mx record for redundant service, but I not know the science for synchronize two servers when the first stoped.


If I've understood correctly, you want to configure one SME server to be a backup MX for another. This is not a standard SME server feature. You would need to create a custom configuration to configure qmail to work in this mode (at least update rcpthosts) - once you've done that, there is no special action to "synchronise" - qmail will do it automatically if MX records are set up correctly.

Search here thoroughly - somebody may have written a HOWTO.

vertical

how to synchronize two servers qmail
« Reply #2 on: April 14, 2006, 06:59:42 PM »
ok, I understand you, but I think my problems is diferent:

I have two servers

mx10 mail.test.com
mx20 mail2.test.com

When any send me e-mail, the first server will be recibed it (mail.test.com).
When the first server stoped, then the email will be recibed in second server (mail2.test.com).
When the first server wakeup, the mail conteined in second server howto go to the first server?

Sorry again for my english, and thak you.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
how to synchronize two servers qmail
« Reply #3 on: April 14, 2006, 08:18:53 PM »
Quote from: "vertical"
ok, I understand you, but I think my problems is diferent:


No, your problem is as I described it. You want mail2.test.com to accept mail for mail.com, but not to treat it as local mail.

Hmmm, if you configure the DelegateMailServer on mail2.test.com to be the IP address of mail.test.com, then things should work as you wish.

vertical

how to synchronize two servers qmail
« Reply #4 on: April 14, 2006, 08:55:48 PM »
CharlieBrady,

OK! it works, but I need just one more thing;

Now the mail is quenqued and relayed to primary server when is alive, but if I check the mailbox of user in second server this is empty. I meant the quenqued mail is not readable. It has solution?.

Thanks again!!

Offline crazybob

  • ****
  • 894
  • +0/-0
    • Stalzer R&D
how to synchronize two servers qmail
« Reply #5 on: April 14, 2006, 09:04:35 PM »
If you do not need to read the mail on  the backup mail server, check out

http://sme.swerts-knudsen.com/index.html?frame=http%3A//sme.swerts-knudsen.com/howtos/howto_14.htm

I think this mught be what you are looking for. I currently use it, and it seems to work just fine

Bob
If you think you know whats going on, you obviously have no idea whats going on!

vertical

how to synchronize two servers qmail
« Reply #6 on: April 14, 2006, 09:08:20 PM »
crazybob,

I need to read the mail in both servers.

This is my problem.

Thanks!!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
how to synchronize two servers qmail
« Reply #7 on: April 19, 2006, 05:26:25 PM »
Quote from: "vertical"

I need to read the mail in both servers.


You can't - it will go to one place or the other for final delivery. It will only be "in transit" (and not readable) while it is in the backup server.

vertical

how to synchronize two servers qmail
« Reply #8 on: April 19, 2006, 11:45:04 PM »
ok, now I understand it.

Thanks to all!!!

Offline kryptos

  • ****
  • 245
  • +0/-0
how to synchronize two servers qmail
« Reply #9 on: December 07, 2006, 06:08:12 AM »
hi all,

I have a question on this. Is it needed also to create the same account(username) on the backup mail server same as the primary mail server?

Thanks!

Kryptos

Offline crazybob

  • ****
  • 894
  • +0/-0
    • Stalzer R&D
how to synchronize two servers qmail
« Reply #10 on: December 07, 2006, 07:03:03 AM »
Kryptos,
  You don't set up an account, it is just a temporary repository until you main mail server comes back on line.
Also take a look at http://www.schirrms.net/sme/MXBackup.php

He has a nice panel for server manager that makes it very easy to set up the mail server.

bob
If you think you know whats going on, you obviously have no idea whats going on!

Offline kryptos

  • ****
  • 245
  • +0/-0
how to synchronize two servers qmail
« Reply #11 on: December 07, 2006, 08:23:32 AM »
bob,

Thanks! I have already installed that contrib its great. Just a follow up. Is there anything i would be concerned of as i will implement on our company? If i only add my primary domain on the backup server rcpthost does it mean it will only accept emails intended for that domain nothing else? sorry for the many questions....thanks again!


Kryptos

Offline Gert

  • ****
  • 208
  • +0/-0
    • http://www.huge.co.za
how to synchronize two servers qmail
« Reply #12 on: January 31, 2007, 09:36:53 PM »
If the 2 servers are in the same location you can setup a server cluster (high availability) to synchronize them.

take a look at this:

http://forums.contribs.org/index.php?topic=13074.0