Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Dual delivery
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
I'd like to be able to deliver simultaneously to two email servers for redundancy/failover.

Does anyone have any knowledge of how to set this up?

Using Google Apps I can direct incoming mail to google with my MX records and google can forward to my KMS. That works fine and incoming messages display correctly on both servers. It is outgoing mail from my clients that is the problem.

If a client sends messages through KMS and they are then delivered using MX records, then they will not appear in google apps mail as sent items. I thought that relaying from KMS to google's smtp server might solve it, but then all messages are delivered "from" the email address used for authentication in KMS->SMTP Server->SMTP Delivery->Use SMTP Relay Server...meaning the message does not appear as sent by the original author.

How can I get both incoming and outgoing messages synced between two servers?

Thanks,
Eric
  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
So you want to have failover/redundancy between two completely different brands of mail servers: KMS and GoogleMail. I don't think this is possible and it is also not a good idea. How would you fail over efficiently? How would people keep their mails in sync if they have it in two places?

I'd rather use the archiving and backup functions of KMS and have a second standby server if the main server goes down.

Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
Well, that's the question isn't it? Wink

Google advertises dual delivery on their end as a means to backup/archive and to transition between systems. Of course this will always be between two different mail systems anyway.

When dual delivery is setup with google apps, smtp delivery goes first through google and then is routed through any other smtp server of your choosing. I have it setup this way and all incoming mail is consistent between google and KMS. No problem there.

Outgoing mail is the issue. I suspect my issue can be resolved if I could smtp relay through my google apps account (from KMS). I have tried this, but relaying to google apps requires authentication. If I authenticate with my credentials then ALL messages sent through the relay appear "sent" from me and not the original sender. If that could be avoided then all would be well.

Google appears to do the same thing on their end without changing the sender to the smtp authorized user when routing through my KMS server. When KMS relays to google the sender is changed. I'm not sure how to avoid that.

KMS archiving and backup doesn't resolve the downtime issue. If there is a power outage, fire or other catastrophe then we're screwed without a mirror server in another location. Maybe I am naive to how that really works, but surely there is a way to accomplish this.
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
Here is some reference material from google regarding dual delivery/gateway setup on its end:

http://www.google.com/support/a/bin/answer.py?hl=en&answ er=60730

It doesn't seem to address my issues directly, though.

Eric

  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
The problem here is that you try to use the relay machanism between two mail servers as a sync mechanism. But sync doesn't mean to copy new mails to the two mail servers only. Sync would also mean when one mail is deleted or moved on one server it should be deleted or moved on the other server as well.

When a mail is sent, it should appear in the sent items of both mail servers. The relay (forward and store) mechanism can't do that properly, it was not designed for this.

[Updated on: Fri, 23 January 2009 16:17]


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
I can understand the sync problem you describe and I'm not really trying to accomplish that. I don't need synchronization, I just need dual delivery.

I would think that if there is a way for incoming messages to hit two servers, then the same could happen with outgoing messages. The google documentation seems to suggest that, I just haven't been able to realize it.

Other than that, how does one create an offsite mail server that mirrors the primary mail server for redundancy purposes? There must be an obvious way to achieve this simple level of protection.
  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
Mirroring Mail servers is not that easy and simple. Clustering is rather complex and costly.

http://en.wikipedia.org/wiki/Two-node_cluster

see section "Logical-host based"

Also see this forum thread:

http://forums.kerio.com/index.php?t=msg&th=12655

Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
Also, have a look at third party high availability solutions:

http://www.kerio.eu/kms_third_party_tools.html#ha


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
OK, I'm still thinking there is a way to make this work. A few questions:


1. In KMS\SMTP Server\SMTP Delivery...if I set it to use a relay SMTP server for message delivery why does the sender's address get changed in outgoing messages? It is changed to that of the authentication settings. If the sender address was not changed this should work like I expect.

2. Is there a way in KMS, KWF or otherwise (DNS, MX?) to direct outgoing mail from KMS to a gateway? If this is possible I may be able to route my messages through the google gateway.

Thanks
Eric
  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
1. The sender address is not changed by KMS if it is using a relay server. It is probably the Google relay that does this because it only trusts the authenticated user and only sends the mail on in the authenticated user's name.

2. What kind of gateway do you mean? SMTP gateway (See 1), IP gateway, Router?

Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
ebatte

Messages: 175
Karma: 0
Send a private message to this user
1. Maybe so

2. A gateway computer (IP or name)
  •  
anthony.somerset

Messages: 144

Karma: 0
Send a private message to this user
this might be a slightly old problem but i may have a suggestion for the solution

if kerio is the main user domain with gmail being the backup, you can send using the gmail smtp (from the individual user account not the server) and then (i know this is possible in apples mail.app) you set the account to save sent messages in the servers sent items folder, this is because gmail automatically puts the message in the accounts sent folder when it goes through there smtp server (there advice is you disable the save in sent items feature to prevent duplicates)

not sure how you would solve this the other way around, i am not sure if kerio does a similar thing

Mac Xserve Intel - 2x 2.7GHz Dual Core Xeon
Leopard 10.5.8
4GB Ram
1.25 TB HDD Raid 5
Kerio 6.7.1
~60 Users (varying windows and mac Exchange or IMAP)
18 iPhones
Previous Topic: Problem with MS Active Directory domain
Next Topic: Pop3 downloader
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Wed Nov 22 00:19:23 CET 2017

Total time taken to generate the page: 0.00457 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.