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

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 03-23-2009, 11:40 AM
Active Member
 
Posts: 31
Default [SOLVED] DNS problem?

Hi everybody!
I have one opensuse 11 server(IP: 200.40.171.98), providing ip masquerading to other users with iptables.
In another box(IP: 192.168.1.7) I have installed Opensuse 10.3 to provide mail via Zimbra.
I have tried several configurations of MX records, resolv.conf, etc. but I still have this issue:
(in mxlookup.com)
An existing connection was forcibly closed by the remote host
200.40.171.98:25

I have opened this port already.
Any help will be appreciated.
Reply With Quote
  #2 (permalink)  
Old 03-23-2009, 12:16 PM
Moderator
 
Posts: 7,928
Default

Welcome to the forums

Please post the following information so we are able to check your DNS setup for you
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
__________________
Reply With Quote
  #3 (permalink)  
Old 03-24-2009, 08:17 AM
Active Member
 
Posts: 31
Default Outputs

Hi
here are the outputs you request:
cat /etc/hosts
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 suselinux11.susesanjuan suselinux11
192.168.1.1 Suse Suse
200.40.171.98 Bienvenida Colegio San Juan Bautista.
192.168.1.7 correo.sanjuan.edu.uy correo


cat /etc/resolv.conf
### BEGIN INFO
#
#
### END INFO
#
domain sanjuan.edu.uy
nameserver 200.40.171.98
nameserver 200.40.30.245
nameserver 200.40.220.245
search susesanjuan correo.sanjuan.edu.uy

dig yourdomain mx

; <<>> DiG 9.4.2 <<>> sanjuan.edu.uy mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36367
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;sanjuan.edu.uy. IN MX

;; AUTHORITY SECTION:
sanjuan.edu.uy. 86400 IN SOA ns.sanjuan.edu.uy. javierfil.gmail.com. 9 10800 900 604800 86400

;; Query time: 1 msec
;; SERVER: 200.40.171.98#53(200.40.171.98)
;; WHEN: Tue Mar 24 10:27:21 2009
;; MSG SIZE rcvd: 90

dig yourdomain any

; <<>> DiG 9.4.2 <<>> sanjuan.edu.uy any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5867
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 4

;; QUESTION SECTION:
;sanjuan.edu.uy. IN ANY

;; ANSWER SECTION:
sanjuan.edu.uy. 259200 IN SOA ns.sanjuan.edu.uy. javierfil.gmail.com. 9 10800 900 604800 86400
sanjuan.edu.uy. 259200 IN NS ns.sanjuan.edu.uy.
sanjuan.edu.uy. 259200 IN NS ns1.us.editdns.net.
sanjuan.edu.uy. 259200 IN NS ns3.us.editdns.net.
sanjuan.edu.uy. 259200 IN NS ns2.us.editdns.net.

;; ADDITIONAL SECTION:
ns.sanjuan.edu.uy. 259200 IN A 200.40.171.98
ns1.us.editdns.net. 102575 IN A 74.52.212.235
ns2.us.editdns.net. 102575 IN A 72.249.105.234
ns3.us.editdns.net. 102575 IN A 64.251.10.77

;; Query time: 8 msec
;; SERVER: 200.40.171.98#53(200.40.171.98)
;; WHEN: Tue Mar 24 10:27:30 2009
;; MSG SIZE rcvd: 236

host `hostname`
Host suselinux11 not found: 3(NXDOMAIN)
Reply With Quote
  #4 (permalink)  
Old 03-24-2009, 08:24 AM
Moderator
 
Posts: 7,928
Default

Okay, as your server is on a private LAN you will need to setup a Wiki :: Split DNS architecture. You also need to fix your /etc/hosts file as that is wrong aswell. Please read through the documentation again on how these files should be configured :- Zimbra :: Community Edition Single Server Install
__________________
Reply With Quote
  #5 (permalink)  
Old 03-24-2009, 10:00 AM
Active Member
 
Posts: 31
Default Wrong output

Our /etc/hosts output was wrong!
This is the real one:

#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allroutersOur /etc/hosts output wa wrong!
This is the real one:

#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 suselinux11.susesanjuan suselinux11
192.168.1.1 Suse Suse
200.40.171.98 Bienvenida Colegio San Juan Bautista.
192.168.1.7 correo.sanjuan.edu.uy correo


Is thi wrong too?
ff02::3 ipv6-allhosts
127.0.0.2 suselinux11.susesanjuan suselinux11
192.168.1.1 Suse Suse
200.40.171.98 Bienvenida Colegio San Juan Bautista.
192.168.1.7 correo.sanjuan.edu.uy correo


Is thi wrong too?
Reply With Quote
  #6 (permalink)  
Old 03-24-2009, 10:02 AM
Moderator
 
Posts: 7,928
Default

You cannot have something like this in your hosts file
Code:
200.40.171.98 http://www.sanjuan.edu.uy/
__________________
Reply With Quote
  #7 (permalink)  
Old 03-24-2009, 10:22 AM
Active Member
 
Posts: 31
Default

In my /etc/hosts file it reads:
200.40.171.98 Bienvenida Colegio San Juan Bautista.
with that, when I check our site with mxtoolbox, I get

ns1.us.editdns.net reports the following MX records for sanjuan.edu.uy
Preference 10
Host Name: correo.sanjuan.edu.uy
IP address: 200.40.171.98
TTL: 86400

This line in particular seems to be working.
Reply With Quote
  #8 (permalink)  
Old 03-25-2009, 12:00 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Your hosts file should contain only the following:

Code:
127.0.0.1 localhost.localdomain localhost
200.40.171.98 correo.sanjuan.edu.uy correo
fix that and then post the output of the commands you were asked for earlier:

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain mx
dig yourdomain any
host `hostname` <- note backticks and not single quotes
Please enclose the output of each command in 'quotes' to make it easier to read, hightlight a piece of text the hit the quote button (the # symbol) above the text edit box.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 03-25-2009, 12:06 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by masterguido View Post
Hi everybody!
I have one opensuse 11 server(IP: 200.40.171.98), providing ip masquerading to other users with iptables.
In another box(IP: 192.168.1.7) I have installed Opensuse 10.3 to provide mail via Zimbra.
I have tried several configurations of MX records, resolv.conf, etc. but I still have this issue:
(in mxlookup.com)
An existing connection was forcibly closed by the remote host
200.40.171.98:25

I have opened this port already.
Any help will be appreciated.
Actually, reading this post your DNS is wrong. You need a Split DNS set-up to point to the LAN IP of your Zimbra server and you should also modify the hosts file to have this IP address as well. Your hosts file should actually look like this:

Code:
127.0.0.1 localhost.localdomain localhost
192.168.1.7 correo.sanjuan.edu.uy correo
When you have fixed the hosts file and the DNS please run the commands I mentioned in the post above and post the output.

BTW, I'd suggest you don't use openSUSE for the Zimbra server as it will not be supported after the current 5.x Zimbra release.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 03-25-2009, 12:06 PM
Active Member
 
Posts: 31
Default

I have read the split DNS article, but I still have doubts:
my internet server and web server has IP 200.40.171.98
The other box(mail server) has IP 192.168.1.7
The external DNS resolver is editdns.net:
Maybe this image explains better my situation:
[IMG]d:\dns.jpg[/IMG]

Thanks a lot.
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.