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 11-07-2009, 05:11 PM
Starter Member
 
Posts: 2
Red face I Canīt send mails but i can receive them

Good morning everybody, Iīm trying to install a test server with ubuntu 8.04 + zimbra 6.0, before i try to replace the mail provider we are using.
After killing a lot of brain cells, I managed to install the mail server and made it work, I can ping the server from other computers, I can send & receive mails within the domain and I can receive mails from other domains, but I canīt send to them. Can some kindly soul check what is missing in my configuration files ?.
The domain names is JHERVAS.COM, the IP address es 200.51.44.146, the DNS es 200.0.243.10, the gateway is 200.51.44.145 and the name of the server is very original, MAIL.

This are my files

INTERFACES
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 200.51.44.146
netmask 255.255.255.248
network 200.51.44.144
broadcast 200.51.44.151
gateway 200.51.44.145
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 200.0.243.10
dns-search jhervas.com.ar
-----------------------------------------------------------------
HOSTS
127.0.0.1 localhost
200.51.44.146 mail.jhervas.com.ar mail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
----------------------------------------------------------------
NAMED.CONF.LOCAL

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "jhervas.com.ar" {
type master ;
file "/etc/bind/zones/jhervas.db";
};

zone "200.in-addr.arpa" {
type master;
file "/etc/bind/zones/200.in-addr.arpa.db";
};
-------------------------------------------------------------------
JHERVAS.DB
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA mail.jhervas.com.ar. root.jhervas.com.ar. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
jhervas.com.ar. IN NS mail.jhervas.com.ar.
mail IN A 200.51.44.146
mail.jhervas.com.ar IN MX 0 mail.jhervas.com.ar.
@ IN AAAA ::1

-----------------------------------------------------------------
200.IN-ADDR.ARPA.DB
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA mail.jhervas.com.ar. root.jhervas.com.ar. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
146.44.51 IN PTR jhervas.com.ar.
---------------------------------------------------------
NAMED.CONF.OPTIONS
options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.

// query-source address * port 53;

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

forwarders {
200.51.44.145;
};

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

-------------------------------------------
RESOLV.CONF

search jhervas.com.ar
nameserver 200.51.44.146

I have read all the DNS tutorial but the answer is still beyond me, please help me. Please excuse my english.

Mario
Argentina
Reply With Quote
  #2 (permalink)  
Old 11-08-2009, 12:18 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Your hosts file is incorrect, check the Quick Start Installation Guide (or search the forums) for the correct format. What does the following show (when run on your Zimbra server):
Code:
cat /etc/hosts
cat /etc/resolv.conf
dig domain.com mx
dig domain.com any
host `hostname` <-- use that exact command with bactticks not single quotes
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 11-08-2009, 02:34 AM
Starter Member
 
Posts: 2
Default the first try

*What does the following show (when run on your Zimbra server):
*
Code:
cat /etc/hosts
*cat /etc/resolv.conf
*dig domain.com mx
*dig domain.com any
*host `hostname` <-- use that exact command with bactticks not single *quotes
[/QUOTE]

Billl, thank you for your quick answer, I have read the installation guides and the post in this forums, that`s how I managed to receive mails, but i fear that Iīm missing something in the bind files.

This are the results of the command you asked

root@mail:/home/empresur# cat /etc/hosts

127.0.0.1 localhost
200.51.44.146 mail.jhervas.com.ar mail

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@mail:/home/empresur#

-----------------------------------------------------------------

root@mail:/home/empresur# cat /etc/resolv.conf
search jhervas.com.ar
nameserver 200.51.44.146
root@mail:/home/empresur#

----------------------------------------------------------------
dig domain.com mx

; <<>> DiG 9.4.2-P2 <<>> domain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44964
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

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

;; ANSWER SECTION:
domain.com. 3589 IN MX 10 sentry.domainbank.com.

;; AUTHORITY SECTION:
domain.com. 49 IN NS ns1.dotsterhost.com.
domain.com. 49 IN NS ns2.dotsterhost.com.
domain.com. 49 IN NS ns3.dotsterhost.com.

;; Query time: 0 msec
;; SERVER: 200.51.44.146#53(200.51.44.146)
;; WHEN: Sun Nov 8 07:21:51 2009
;; MSG SIZE rcvd: 128

root@mail:/home/empresur#

-----------------------------------------------------------------------
dig domain.com any

root@mail:/home/empresur# dig domain.com any

; <<>> DiG 9.4.2-P2 <<>> domain.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 448
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 0

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

;; ANSWER SECTION:
domain.com. 3354 IN MX 10 sentry.domainbank.com.

;; AUTHORITY SECTION:
com. 92871 IN NS D.GTLD-SERVERS.NET.
com. 92871 IN NS H.GTLD-SERVERS.NET.
com. 92871 IN NS L.GTLD-SERVERS.NET.
com. 92871 IN NS C.GTLD-SERVERS.NET.
com. 92871 IN NS M.GTLD-SERVERS.NET.
com. 92871 IN NS J.GTLD-SERVERS.NET.
com. 92871 IN NS A.GTLD-SERVERS.NET.
com. 92871 IN NS I.GTLD-SERVERS.NET.
com. 92871 IN NS E.GTLD-SERVERS.NET.
com. 92871 IN NS G.GTLD-SERVERS.NET.
com. 92871 IN NS F.GTLD-SERVERS.NET.
com. 92871 IN NS K.GTLD-SERVERS.NET.
com. 92871 IN NS B.GTLD-SERVERS.NET.

;; Query time: 0 msec
;; SERVER: 200.51.44.146#53(200.51.44.146)
;; WHEN: Sun Nov 8 07:25:46 2009
;; MSG SIZE rcvd: 286

root@mail:/home/empresur#

----------------------------------------------------------------------
host `hostname`


; <<>> DiG 9.4.2-P2 <<>> mail.jhervas.com.ar
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5562
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.jhervas.com.ar. IN A

;; ANSWER SECTION:
mail.jhervas.com.ar. 604800 IN A 200.51.44.146

;; AUTHORITY SECTION:
jhervas.com.ar. 604800 IN NS mail.jhervas.com.ar.

;; Query time: 0 msec
;; SERVER: 200.51.44.146#53(200.51.44.146)
;; WHEN: Sun Nov 8 07:28:50 2009
;; MSG SIZE rcvd: 67

root@mail:/home/empresur#
Reply With Quote
  #4 (permalink)  
Old 11-08-2009, 05:00 AM
Loyal Member
 
Posts: 85
Default

You have checked queue message on zimbra admin interface's? if any messages couldn't sent you will get the deffered messages and reason.

Or you an try to sent email to some accounts in external domain and see /var/log/zimbra.log, you will get any error messages and post here...
__________________
Just logs
blog.pnyet.web.id
Reply With Quote
  #5 (permalink)  
Old 11-08-2009, 05:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Well, as I mentioned earlier you hosts file is incorrect. Assuming you used the correct domain name (is this it: jhervas.com.ar) in those dig commands then you would appear to have no A ecord for your server and the MX server point to something other than the IP address you're using in your hosts file. If you have used the wrong domain name in the dig command then you appear to have an error with your DNS MX record pointing to a CNAME rather than an A record - you need to fix that and your hosts file.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 11-08-2009, 05:12 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by p_nyet View Post
You have checked queue message on zimbra admin interface's? if any messages couldn't sent you will get the deffered messages and reason.

Or you an try to sent email to some accounts in external domain and see /var/log/zimbra.log, you will get any error messages and post here...
The problem is a DNS configuration error.
__________________
Regards


Bill
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.