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 09-12-2009, 02:12 AM
Junior Member
 
Posts: 9
Default [SOLVED] Use Zimbra with external pop3

Hi.
Scenario:
I have a domain yyy.zz hosted by ISP. This hosting give me all service included mail with domain mail.yyy.zz
I have installed Zimbra in local network and i wish to use my zimbra server for internal ed external mail. After reading millions of posts I'm stopped . Can you help me give a schema of configuration?
I have ricreated my domain name on local using splitdns but if I do nslookup on domain yyy.zz nothing....
Reply With Quote
  #2 (permalink)  
Old 09-15-2009, 06:44 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

You will find details in the wiki article for Split DNS that covers what you need to do. To confirm your configuration post the output of the following commands (run on the zimbra server):

Code:
cat /etc/hosts
cat /etc/resolv.conf
dig yourdomain.com any
dig yourdomain.com mx
host `hostname`  <-- use that exact command with backticks not single quotes
BTW, which operating system are you using.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 09-16-2009, 01:56 AM
Junior Member
 
Posts: 9
Default

Thank for reply


Code:
cat /etc/hosts

127.0.0.1	localhost
192.168.0.77 	servposta.xxxx.yy	servposta

# 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
Code:
cat /etc/resolv.conf

search xxxxx.yy
nameserver 192.168.0.77
nameserver 151.99.125.1
Code:
dig xxxxxx.yy any

; <<>> DiG 9.4.2-P2 <<>> xxxxxx.yy any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62951
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;xxxxxx.yy.			IN	ANY

;; ANSWER SECTION:
xxxxxx.yy.		1800	IN	A	68.71.33.34
xxxxxx.yy.		1800	IN	PTR	68.71.33.34/24.xxxxxx.yy.
xxxxxx.yy.		1800	IN	MX	10 mail.xxxxxx.yy.
xxxxxx.yy.		86400	IN	SOA	ns1.maxsosonline.com. support.maxsos.com. 2006010110 84600 7200 604800 86400
xxxxxx.yy.		86400	IN	NS	ns1.maxsosonline.com.
xxxxxx.yy.		86400	IN	NS	ns2.maxsosonline.com.

;; AUTHORITY SECTION:
xxxxxx.yy.		86400	IN	NS	ns2.maxsosonline.com.
xxxxxx.yy.		86400	IN	NS	ns1.maxsosonline.com.

;; ADDITIONAL SECTION:
mail.xxxxxx.yy.		1800	IN	A	68.71.33.34
ns1.maxsosonline.com.	171181	IN	A	208.94.148.2
ns2.maxsosonline.com.	171181	IN	A	208.80.124.2

;; Query time: 2689 msec
;; SERVER: 192.168.0.77#53(192.168.0.77)
;; WHEN: Wed Sep 16 10:41:50 2009
;; MSG SIZE  rcvd: 272
Code:
dig xxxxxx.yy mx

; <<>> DiG 9.4.2-P2 <<>> xxxxxx.yy mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8726
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3

;; QUESTION SECTION:
;xxxxxx.yy.			IN	MX

;; ANSWER SECTION:
xxxxxx.yy.		1763	IN	MX	10 mail.xxxxxx.yy.

;; AUTHORITY SECTION:
xxxxxx.yy.		86363	IN	NS	ns2.maxsosonline.com.
xxxxxx.yy.		86363	IN	NS	ns1.maxsosonline.com.

;; ADDITIONAL SECTION:
mail.xxxxxx.yy.		1763	IN	A	68.71.33.34
ns1.maxsosonline.com.	171144	IN	A	208.94.148.2
ns2.maxsosonline.com.	171144	IN	A	208.80.124.2

;; Query time: 0 msec
;; SERVER: 192.168.0.77#53(192.168.0.77)
;; WHEN: Wed Sep 16 10:42:27 2009
;; MSG SIZE  rcvd: 148
Code:
host `hostname` 
Host servposta not found: 3(NXDOMAIN)
Code:
named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the 
// structure of BIND configuration files in Debian, *BEFORE* you customize 
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
	type hint;
	file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
	type master;
	file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
	type master;
	file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
	type master;
	file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
	type master;
	file "/etc/bind/db.255";
};

include "/etc/bind/named.conf.local";

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 {
 	151.99.125.1;
 };

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

include "/etc/bind/rndc.key"; 

zone "servposta.xxxxxx.yy" {
     type master;
     file "db.servposta.xxxxxx.yy";
};
Code:
db.servposta.xxxxxx.yy
;
;
@             IN          SOA       servposta.xxxxxx.yy. admin.servposta.xxxxxx.yy. (
                                              10118      ; Serial
                                              43200      ; Refresh
                                              3600       ; Retry
                                              3600000    ; Expire
                                              2592000 )  ; Minimum
;
              IN          NS        192.168.0.77
              IN          A         192.168.0.77
              IN          MX        10 servposta.xxxxxx.yy.

all running on Ubuntu server 8.04 lts.
Reply With Quote
  #4 (permalink)  
Old 09-16-2009, 02:03 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

The first thing is your hosts file is incorrect, it should look like this:

Code:
127.0.0.1	localhost.localdomain localhost
192.168.0.77 	servposta.xxxx.yy	servposta
The DNS A record should point to your LAN IP address not your external IP address, fix those problems and see what happens.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 09-16-2009, 02:25 AM
Junior Member
 
Posts: 9
Default

Quote:
Originally Posted by phoenix View Post
The first thing is your hosts file is incorrect, it should look like this:

Code:
127.0.0.1	localhost.localdomain localhost
192.168.0.77 	servposta.xxxx.yy	servposta
The DNS A record should point to your LAN IP address not your external IP address, fix those problems and see what happens.
In resolv.conf file?
Reply With Quote
  #6 (permalink)  
Old 09-16-2009, 02:28 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by walkon View Post
In resolv.conf file?
You do only need the one IP in your resolv and that should be your internal DNS server. I was, however, talking about the fact your dig commands did not return the correct information, they would appear to point to your public IP rather than your LAN IP.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 09-16-2009, 07:21 AM
Junior Member
 
Posts: 9
Default

Quote:
Originally Posted by phoenix View Post
You do only need the one IP in your resolv and that should be your internal DNS server. I was, however, talking about the fact your dig commands did not return the correct information, they would appear to point to your public IP rather than your LAN IP.
I have changed my hosts file and resolv.conf file as :

127.0.0.1 localhost.localdomain localhost
192.168.0.77 servposta.xxxxxx.yy servposta

# 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

-----------
search xxxxxx.yy
nameserver 192.168.0.77

and the result is


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

;; QUESTION SECTION:
;xxxxxx.yy. IN ANY

;; ANSWER SECTION:
xxxxxx.yy. 1533 IN A 68.71.33.34
xxxxxx.yy 1533 IN MX 10 mail.xxxxxx.yy.

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

;; Query time: 0 msec
;; SERVER: 192.168.0.77#53(192.168.0.77)
;; WHEN: Wed Sep 16 11:45:50 2009
;; MSG SIZE rcvd: 275

and this is nslookup servposta.xxxxxx.yy

Server: 192.168.0.77
Address: 192.168.0.77#53

** server can't find servposta.xxxxxx.yy: NXDOMAIN
Reply With Quote
  #8 (permalink)  
Old 09-21-2009, 01:35 AM
Junior Member
 
Posts: 9
Default

Hi. Finally I have created my domain in local. The problem was the path of db.kkk.xxxxx.yy. I work in folder /etc/bind and the path was /var/cache/bind . Moving the db...... in folder /var/cache/bind it's ok.
Now I have a question. The domain in ldap il kkkk.xxxxxx.yy and it is the name of host. When the zimbra installation generate the user it's admin@kkk.xxxxx.yy. Should not be admin@xxxxx.yy?
Thank for reply.
Reply With Quote
  #9 (permalink)  
Old 09-21-2009, 03:21 AM
Junior Member
 
Posts: 9
Default

Thank's to all.


Making Zimbra & BIND Work Together » Zimbra :: Blog
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.