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 Display Modes
  #1 (permalink)  
Old 07-02-2009, 03:30 AM
Junior Member
 
Posts: 6
Exclamation [SOLVED] centos+zimbra: either i can receive mail or send mail?

we have setup a small mail server on centos with zimbra. everything went on smoothly. With dns lookups Enabled i am able to send mails and cant receive mails in inbox ( they are differed and but i can see the incoming mails in mail queues) .

if dns lookups is disabled i can receive mails but not able to send the emails.

i am behind a adsl router with broadband connection and port forwarding (NAT) has been done. i have a static ip & all the MX records have been updated . so can one pls help me out . the log shows mail transfer agent unavailable mail gets deffered and i see the origin ip as 127.0.0.1 and origin host as localhost.localdomain.
is it that the mails are not being forwarded from localhost to respective mailboxes.
thanks in advance....
Reply With Quote
  #2 (permalink)  
Old 07-02-2009, 03:39 AM
Zimbra Consultant & Moderator
 
Posts: 12,395
Default

Did you set-up a Split DNS? If you're behind a NAT router you'll need that, when you've done that search the forums for details of what you need to do to check your DNS A & MX records and /etc/hosts file are all OK.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-02-2009, 03:39 AM
Moderator
 
Posts: 6,275
Default

Welcome to the forums

Please post the following information
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
If you are behind a firewall on a private IP you will need to setup a Wiki :: Split DNS architecture.
__________________
Reply With Quote
  #4 (permalink)  
Old 07-02-2009, 04:46 AM
Junior Member
 
Posts: 6
Post Reply: My Config

here are the answers for the commands:
[root@mail ~]# 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
::1 localhost6.localdomain6 localhost6
192.168.1.5 mail.mydomain.com mail


[root@mail ~]# cat /etc/resolv.conf
search mydomain.com
nameserver localhost
nameserver 202.54.10.2
nameserver 202.54.29.5


[root@mail ~]# dig mydomain.com mx

; <<>> DiG 9.3.4-P1 <<>> mydomain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11650
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN MX

;; ANSWER SECTION:
mydomain.com. 8628 IN MX 10 61.xx.76.xx.

;; Query time: 24 msec
;; SERVER: 202.54.10.2#53(202.54.10.2)
;; WHEN: Thu Jul 2 15:52:10 2009
;; MSG SIZE rcvd: 64


[root@mail ~]# dig mydomain.com any

; <<>> DiG 9.3.4-P1 <<>> mydomain.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46209
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN ANY

;; ANSWER SECTION:
mydomain.com. 3665 IN NS ns1.net4india.com.
mydomain.com. 3665 IN NS ns2.net4india.com.
mydomain.com. 8318 IN MX 10 61.xx.76.xx.
mydomain.com. 3665 IN A 202.xx.129.xx

;; Query time: 31 msec
;; SERVER: 202.54.10.2#53(202.54.10.2)
;; WHEN: Thu Jul 2 15:57:20 2009
;; MSG SIZE rcvd: 126

[root@mail ~]# host mail.mydomain.com
mail.mydomain.com has address 61.xx.76.xx

thanks friends
Reply With Quote
  #5 (permalink)  
Old 07-02-2009, 05:01 AM
Moderator
 
Posts: 6,275
Default

If you have installed BIND on your ZCS server then the only entries you should have in your /etc/resolv.conf are
Code:
search mydomain.com
nameserver 127.0.0.1
Once this change has been made please run the same commands again and post them please.
__________________
Reply With Quote
  #6 (permalink)  
Old 07-02-2009, 05:52 AM
Junior Member
 
Posts: 6
Post Re 2:Commands

after the changes sugeested the output is as follows;

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
::1 localhost6.localdomain6 localhost6
192.168.1.5 mail.mydomain.com mail



cat /etc/resolv.conf
search mydomain.com
nameserver 127.0.0.1



dig mydomain.com mx

; <<>> DiG 9.3.4-P1 <<>> mydomain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29016
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN MX

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jul 2 16:39:18 2009
;; MSG SIZE rcvd: 36




dig mydomain.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41092
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mydomain.com. IN ANY

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jul 2 16:39:49 2009
;; MSG SIZE rcvd: 36


host mail.mydomain.com
Host mail.mydomain.com not found: 2(SERVFAIL)
Reply With Quote
  #7 (permalink)  
Old 07-02-2009, 05:56 AM
Junior Member
 
Posts: 6
Post Re:splitdns

i am not clear about the split-dns concept but i have just created the dns on the same server which shows me a mydomain.com zone.

thanks
Reply With Quote
  #8 (permalink)  
Old 07-02-2009, 06:04 AM
Moderator
 
Posts: 6,275
Default

Well you need to define a MX and A record in your DNS for your ZCS server.
__________________
Reply With Quote
  #9 (permalink)  
Old 07-02-2009, 06:24 AM
Junior Member
 
Posts: 6
Post Re 3:DNS

Hello,
we have already made the changes at the domain level so are you asking us to make the neccessary changes on the local machine using bind?
thanks gr8 help from you,
Reply With Quote
  #10 (permalink)  
Old 07-03-2009, 03:06 AM
Junior Member
 
Posts: 6
Thumbs up Hello! cracked

by setting the forwarders in named.conf i am able to now send and receive the mails seamlessly.
many thanks to all.

happy mailing
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com