Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-2010, 08:38 PM
Member
 
Posts: 10
Question "Pending" Domains?

We frequently migrate customers from other mail systems into our hosted Zimbra platform, and I'm looking for a way to provision a whole domain including getting distribution lists and such all setup, but to have the domain be totally invisible until we "flip the switch".

The obvious answer to this is "don't change the MX record until you're ready", but that doesn't do any good for people actually on the same Zimbra system since Zimbra will attempt local delivery regardless of the MX record.

An OK approximation of this behavior can be had by juggling the Closed domain status along with Pending account statuses, but that's a good bit of fooling around and doesn't address Distribution Lists.

Is there a way to do this, perhaps by manually forcing Postfix to relay mail for domain x to a specific host even if it thinks it should be delivering it locally?
Reply With Quote
  #2 (permalink)  
Old 02-02-2010, 03:06 AM
Moderator
 
Posts: 7,928
Default

Split Domain - Zimbra :: Wiki
__________________
Reply With Quote
  #3 (permalink)  
Old 02-02-2010, 09:29 PM
Member
 
Posts: 10
Default

I've used the steps outlined there to do a split configuration before, but that isn't quite what I'm looking to do here.

I want to have a domain with accounts, distribution lists, etc. provisioned in Zimbra, but have Zimbra essentially ignore them and route mail via the prevailing MX record in DNS (or via a static smarthost value that I can define, that's OK too.)

I've been able to do this by configuring a split domain as described in the article and then marking every single account in the domain as "Closed", but that isn't scalable.

I tried just setting the zimbraMailTransport value for that domain to the old system, but that setting alone doesn't seem to have an effect as the test messages I sent still went to the boxes on the Zimbra system.

Any other ideas?
Reply With Quote
  #4 (permalink)  
Old 02-02-2010, 09:55 PM
Moderator
 
Posts: 7,928
Default

Hmmm, I thought that would have done it actually. What did you set the zimbraMailTransport value to ? When you sent the email how was it processed in /var/log/zimbra.log ?
__________________
Reply With Quote
  #5 (permalink)  
Old 02-03-2010, 07:40 AM
Member
 
Posts: 10
Default

I changed the zimbraMailTransport value for the domain in question to the old provider's MX value. Call it mail.thirdparty.tld.

So, I ran:
zmprov md testdomain.tld zimbraMailTransport smtp:mail.thirdparty.tld
postfix stop
postfix start

And then sent a message to user@testdomain.tld, a user which does exist on the Zimbra system. It was delivered to the local Zimbra mailbox, not the remote system like the zimbraMailTransport parameter would seem to force.

Here's a relevant log snippet:
Feb 2 23:24:45 zimbra postfix/lmtp[22338]: 7DEFD9C14251: to=<user@testdomain.tld>, relay=zimbra.ourdomain.tld[xx.xx.xx.xx]:7025, delay=0.11, delays=0.03/0/0/0.07, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)

Last edited by matt.miller; 02-03-2010 at 08:12 AM..
Reply With Quote
  #6 (permalink)  
Old 02-03-2010, 09:19 AM
Moderator
 
Posts: 7,928
Default

Instead try
Code:
su - zimbra
zmprov ma user@testdomain.tld zimbraMailTransport smtp:mail.thirdparty.tld
__________________
Reply With Quote
  #7 (permalink)  
Old 02-03-2010, 09:22 AM
Member
 
Posts: 10
Default

I'll give that a shot and report back, but that still seems like it wouldn't scale too well and wouldn't account for properly relaying mail sent to distribution lists, etc.

But, I'll let you know if that at least does it on a per-account level.
Reply With Quote
  #8 (permalink)  
Old 02-04-2010, 08:33 AM
Member
 
Posts: 10
Default

OK, that does work for a single account.

Any ideas for how to sanely scale this up for a whole domain though? Also, I still don't think that this will force a relay to non-Account addresses in the domain, e.g., distribution lists.

Thanks for the help.
Reply With Quote
  #9 (permalink)  
Old 02-04-2010, 08:36 AM
Moderator
 
Posts: 7,928
Default

Hmmm ... it should do when the DL is expanded. I think you will need to set those details for each account as Zimbra is the final hop for that domain Postfix assumes that it is authoritative for it. You could easily script it.
__________________
Reply With Quote
  #10 (permalink)  
Old 02-04-2010, 09:18 AM
Active Member
 
Posts: 47
Default

Not to step on anyone's toes here. But this is what works for us. As long as DNS is working properly.

If you want the Zimbra server to relay all mail destined for a particular domain (say, example.com) to another mta (say, other-mta.domain.com), you can forward the domain.

zmprov
md example.com zimbraMailCatchAllAddress @example.com
md example.com zimbraMailCatchAllForwardingAddress @example.com
md example.com zimbraMailTransport smtp:other-mta.domain.com

I think you can also do this as another way to make a sort of local domain alias:

zmprov
md example.com zimbraMailCatchAllAddress @example.com
md example.com zimbraMailCatchAllForwardingAddress @domain.com
md example.com zimbraMailTransport lmtp:zimbra.domain.com

For non-zimbra domains, this might prove useful as well: Transport_Table_for_external_servers
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.