I recently installed Zimbra 7.2.2 RHEL5 on CentOS5 (all Virtual install). After about 2 weeks of forums and tinkering I was finally able to send and receive my first email through my Zimbra install. Although, I'm so ready to call it complete, I just can’t.

I still seem to have small issues that are keeping me from completely putting this into production.

1. I can send mail to multiple mail host (i.e.: Hotmail, my work mail, Verizon.net, etc...) however, when I send to Gmail I immediately receive a mail undelivered message. But maybe an hour or two later the mail reaches the Gmail recipient……

2. When outside of my network I’m able to reach my webmail and admin console by using my domain name (https://hostname.mydomain.com/zimbra ) and (https://hostname.mydomain.com:7071). I can even access my mail via iPhone: (https://hostname.mydomain.com/zimbra/m ). The issue is when on my local network I can only access either option by using the IP address of the Zimbra server.

3. Also I when mail is received from my Zimbra server it has an address of (user@hostname.mydomain.com) and I would prefer it were addressed as (user@mydomain.com).
With all that being said I will give you my network configuration:

1. My Zimbra server is behind my home router (actually 2 routers) I have the first router in DMZ and the second router handles all port forwarding for my LAN.

2. I have a static Public IP address through my ISP(Comcast- 23.31.XXX.XXX)

3. My Domain name is purchased through GoDaddy and the setup is as follows:

( A) Host
host.jpg

(MX) Mail Exchange
mx.jpg


(NS) Name server
NS.jpg

(CNAME) Alias
Cname.jpg


/etc/ hosts/:
127.0.0.1 localhost.localdomain localhost
192.168.0.141 mail.mydomain.com mail

/etc/resolv.conf:
search mydomain.com
nameserver 192.168.0.141


Host $(hostname):
mail.mydomain.com has address 192.168.0.141
mail.mydomain.com mail is handled by 10 mail.mail.mydomain.com.


dig mydomain.com mx:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mydomain.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46201
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 5

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

;; ANSWER SECTION:
mydomain.com. 1800 IN MX 10 mail.mydomain.com.

;; AUTHORITY SECTION:
mydomain.com. 3600 IN NS ns37.domaincontrol.com.
mydomain.com. 3600 IN NS ns38.domaincontrol.com.

;; ADDITIONAL SECTION:
mail.mydomain.com. 38400 IN A 192.168.0.141
ns37.domaincontrol.com. 35800 IN A 216.69.xxx.xxx
ns37.domaincontrol.com. 35424 IN AAAA 2607:f208:xxx::xx
ns38.domaincontrol.com. 35745 IN A 208.109.xxx.xxx
ns38.domaincontrol.com. 35297 IN AAAA 2607:f208:xxx::xxx

;; Query time: 203 msec
;; SERVER: 192.168.0.141#53(192.168.0.141)
;; WHEN: Sun Jan 20 17:40:49 2013
;; MSG SIZE rcvd: 220



dig mydomain.com any:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.6 <<>> mydomain.com any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60107
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 5

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

;; ANSWER SECTION:
mydomain.com. 3271 IN NS ns38.domaincontrol.com.
mydomain.com. 3271 IN NS ns37.domaincontrol.com.
mydomain.com. 1471 IN MX 10 mail.mydomain.com.

;; AUTHORITY SECTION:
mydomain.com. 3271 IN NS ns37.domaincontrol.com.
mydomain.com. 3271 IN NS ns38.domaincontrol.com.

;; ADDITIONAL SECTION:
ns37.domaincontrol.com. 35471 IN A 216.69.xxx.xxx
ns37.domaincontrol.com. 35095 IN AAAA 2607:f208:xxx::xxx
ns38.domaincontrol.com. 35416 IN A 208.109.xxx.xxx
ns38.domaincontrol.com. 34968 IN AAAA 2607:f208:xxx::xxx
mail.mydomain.com. 38400 IN A 192.168.0.141

;; Query time: 3 msec
;; SERVER: 192.168.0.141#53(192.168.0.141)
;; WHEN: Sun Jan 20 17:46:18 2013
;; MSG SIZE rcvd: 248


named.conf:
options {
directory "/etc";
forwarders {
23.31.xxx.xxx; 216.69.xxx.xxx; 208.109.xxx.xxx; 75.75.xxx.xxx;
};
};

logging {
};
zone "mail.mydomain.com" {
type master;
file "/var/named/mail.mydomain.com.hosts";
};
zone "141.0.168.192.in-addr.arpa" {
type master;
file "/var/named/192.168.0.141.rev";
};


db.mail.mydomain.com:
;
; Addresses and other host information.
;
@ IN SOA mail.mydomain.com.(
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ) ; Minimum
; Define the nameservers and the mail servers
IN NS 192.168.0.141
mydomain.com. IN MX 10 mail.mydomain.com.
mail.mydomain.com. IN A 192.168.0.141


Can someone out there help me figure out where my build went wrong....Please?

Thank You,