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 11-24-2008, 07:58 PM
Trained Alumni
 
Posts: 19
Default [SOLVED] Sendmail MTA to Zimbra Community Edition for Testing Zimbra

Good Day... I have a sendmail server (smtpgate.my.domain) that receives our email from the internet. Then uses the aliases database to forward it on to our current POP server or the new Zimbra Server ( zimbramail.my.domain) depending. I have one account that I am forwarding ( zmitg: zmtig@zimbramail.my.domain ) I have a local DNS entry for the MX record for kccjs.org to point to smtpgate.my.domain.

I have setup the new Zimbra Server also for the my.domain domain, and created one test user. zmtig@my.domain.

Since I thought this is setup is a split-domain. I used the Wiki so setup the Zimbra Server as a Secondary System.

zmprov md my.domain zimbraMailCatchAllAddress @my.domain
zmprov md my.domain zimbraMailCatchAllForwardingAddress @my.domain
zmprov md my.domian zimbraMialTransport smtp:smtpgate.my.domain

zmprov mcf zimbraMtaReplayHost smtpgate.my.domain
zmprov mcf zimbraMtaDnsLookupsEnabled False

postfix stop
postfix start

The problem I am having is that when I sendmail to zmtig@my.domain. It get bounced between the smtpgate.my.domain and zimbramail.my.domain.

I have redone the load etc etc etc.

I can run the Sendmail Chat script by hand from smtpgate.my.domain to zimbramail.my.domain with telnet zimbramail.my.domain 25 and fake a message, and it get delivered? But if I send it normally from a Mail Client, it gets bounced between the 2 until I hit the 28 bounce limit??

This is my first try to get a Zimbra Server up with the same domain as the sendmail server.

I am sure I am missing something obvious, but I sure don't see it??

Thanks
Tkerkman
Reply With Quote
  #2 (permalink)  
Old 11-26-2008, 05:43 AM
Moderator
 
Posts: 7,928
Default

Welcome to the forums

It sounds like a DNS issue on your ZCS server in that it is resolving the MX back to your Sendmail instance. To help resolve this please post the following from your ZCS server
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig my.domain mx
dig my.domain any
host `hostname` <- note backticks and not single quotes
__________________
Reply With Quote
  #3 (permalink)  
Old 11-26-2008, 07:43 AM
Trained Alumni
 
Posts: 19
Default Sendmail MTA continued

Obvioulsy my.domain is not real:

[root@zimbramail log]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
172.30.3.177 zimbramail.kccjs.org zimbramail

;; QUESTION SECTION:
;kccjs.org. IN MX

;; ANSWER SECTION:
kccjs.org. 86400 IN MX 10 smtpgate.kccjs.org.

;; AUTHORITY SECTION:
kccjs.org. 86400 IN NS dns1.kccjs.org.
kccjs.org. 86400 IN NS dns2.kccjs.org.
kccjs.org. 86400 IN NS localhost.

;; ADDITIONAL SECTION:
smtpgate.kccjs.org. 86400 IN A 172.30.3.201
localhost. 86400 IN A 127.0.0.1
localhost. 86400 IN AAAA ::1
;; QUESTION SECTION:
;kccjs.org. IN ANY

;; ANSWER SECTION:
kccjs.org. 86400 IN MX 10 smtpgate.kccjs.org.
kccjs.org. 86400 IN SOA localhost. root.localhost. 20080056 28800 14400 3600000 86400
kccjs.org. 86400 IN NS dns2.kccjs.org.
kccjs.org. 86400 IN NS localhost.
kccjs.org. 86400 IN NS dns1.kccjs.org.

;; ADDITIONAL SECTION:
smtpgate.kccjs.org. 86400 IN A 172.30.3.201
localhost. 86400 IN A 127.0.0.1
localhost. 86400 IN AAAA ::1

[root@zimbramail log]# cat /etc/resolv.conf
search kccjs.org
nameserver 172.30.3.4
nameserver 172.30.3.10

host `hostname`
zimbramail.kccjs.org has address 172.30.3.177
Reply With Quote
  #4 (permalink)  
Old 11-26-2008, 07:46 AM
Moderator
 
Posts: 7,928
Default

As I expected the MX is resolving to your Sendmail server. You have two options then 1) Change the MX to point too zimbramail.kccjs.org 2) Install BIND on the ZCS server and configure a Split DNS - Zimbra :: Wiki architecture.
__________________
Reply With Quote
  #5 (permalink)  
Old 11-26-2008, 07:50 AM
Trained Alumni
 
Posts: 19
Default DNS Lookups Off

Also, I thought that I turned off the DNS lookup with the following?

zmprov mcf zimbraMtaDnsLookupsEnabled False
Reply With Quote
  #6 (permalink)  
Old 11-26-2008, 07:52 AM
Moderator
 
Posts: 7,928
Default

Yes but ZCS requires a valid MX record.
__________________
Reply With Quote
  #7 (permalink)  
Old 11-26-2008, 07:59 AM
Trained Alumni
 
Posts: 19
Default

I thought I did do the Split domain setup? and I do have bind installed?
Can't I have a MX record pointing to our real mail server, and still have Zimbra as a secondary server and share the domain without a MX record as long as I have setup the Split Domain following the Wiki??
Reply With Quote
  #8 (permalink)  
Old 11-26-2008, 08:05 AM
Moderator
 
Posts: 7,928
Default

yes but the MX will point to your primary server and as you have a sendmail rule to forward for that account that is was is causing the email bounce. If you have installed BIND on your ZCS server setup the MX to point to itself and then in the Admin GUI set your Sendmail server as the upstream relay.
__________________
Reply With Quote
  #9 (permalink)  
Old 11-26-2008, 08:10 AM
Trained Alumni
 
Posts: 19
Default

I thought I did do the Split domain setup? and I do have bind installed?
Can't I have a MX record pointing to our real mail server, and still have Zimbra as a secondary server and share the domain without a MX record as long as I have setup the Split Domain following the Wiki??
Reply With Quote
  #10 (permalink)  
Old 11-26-2008, 08:19 AM
Trained Alumni
 
Posts: 19
Default

Aaaa! Da! I need to read better, I have to do the DNS-Split setup also. I will go and get that done and get back to you ASAP... Thanks
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.