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 07-30-2009, 04:40 PM
Active Member
 
Posts: 29
Default [SOLVED] Not receiving external mail

New install...internal mail works ok, but I'm not getting any external messages. I can send externally ok. I have read through a lot of similar problems, as well as Wiki articles but have not yet been able to resolve my problem.

My server is on a private network behind an Astaro Security Gateway which is configured to forward port 25 to the mail server.

My domain is hosted on an ISP. I have set the mx record for domain.org to mail.domain.org. The A record for mail.domain.org is set to the public IP on my firewall.

Here is some config info:

cat /etc/hosts
Code:
127.0.0.1	localhost.localdomain	localhost
192.168.232.7	mail.domain.org	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
cat /etc/resolv.conf
Code:
search domain.org
nameserver 192.168.232.7
dig domain.org mx
Code:
; <<>> DiG 9.4.2-P2 <<>> domain.org mx
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13898
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

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

;; ANSWER SECTION:
domain.org.	604800	IN	MX	10 mail.domain.org.

;; AUTHORITY SECTION:
domain.org.	604800	IN	NS	mail.domain.org.

;; ADDITIONAL SECTION:
mail.domain.org.	604800	IN	A	192.168.232.7

;; Query time: 0 msec
;; SERVER: 192.168.232.7#53(192.168.232.7)
;; WHEN: Thu Jul 30 16:25:17 2009
;; MSG SIZE  rcvd: 86
dig domain.org any
Code:
; <<>> DiG 9.4.2-P2 <<>> domain.org any
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45704
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

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

;; ANSWER SECTION:
domain.org.	604800	IN	SOA	mail.domain.org. admin.domain.org. 90731 604800 86400 2419200 604800
domain.org.	604800	IN	NS	mail.domain.org.
domain.org.	604800	IN	MX	10 mail.domain.org.
domain.org.	604800	IN	A	192.168.232.7

;; ADDITIONAL SECTION:
mail.domain.org.	604800	IN	A	192.168.232.7

;; Query time: 0 msec
;; SERVER: 192.168.232.7#53(192.168.232.7)
;; WHEN: Thu Jul 30 16:28:18 2009
;; MSG SIZE  rcvd: 144
hostname `host`
Code:
mail.domain.org has address 192.168.232.7
Thanks!
Reply With Quote
  #2 (permalink)  
Old 07-30-2009, 11:41 PM
Moderator
 
Posts: 7,928
Default

Code:
host `hostname`
What happens if you telnet to port 25 from outside the firewall to your server ?
Code:
su - zimbra
zmcontrol -v
zmcontrol status
Do you see any email connections in /var/log/zimbra.log from external ?
__________________
Reply With Quote
  #3 (permalink)  
Old 07-31-2009, 10:56 AM
Advanced Member
 
Posts: 191
Default Having the same problem

I will like a follow-up on the solution of this problem, because I am having exactly the same problem with basically the almost the same setup. Forwarded port 25 and all necessary ports to the public ip of my zimbra server. I am unable to telnet the fqdn and the public ip on port 25 from outside. I am able to access webmail from outside using the fqdn. There must be something some where stoping us from receiveing email from the outside. I thought it was my firewall, but after being able to telnet something else from outside and block it there after, I am beginning to suspect that it is zimbra. Especially with a second person complaining it now.
Reply With Quote
  #4 (permalink)  
Old 07-31-2009, 11:15 AM
Active Member
 
Posts: 29
Default

Actually, host `hostname` is actually posted above, I just typed it wrong in my post.

I tried connecting my DSL line directly to the Zimbra box and configured the public IP on it. Once I did that, my external mail came through, so it appears to be a firewall issue in my case. The ASG has an SMTP proxy that I am trying to go through. I am going to contact Astaro about it and see if we can figure out why the configuration isn't working.

Any tips on what the firewall config should look like with an SMTP proxy?

Last edited by infosyst; 07-31-2009 at 11:17 AM.. Reason: can't spell :P
Reply With Quote
  #5 (permalink)  
Old 07-31-2009, 12:45 PM
Advanced Member
 
Posts: 191
Default

In other words, you are using the public ip on the zimbra box now instead of the private ip configuration on the box?
Reply With Quote
  #6 (permalink)  
Old 07-31-2009, 01:37 PM
Active Member
 
Posts: 29
Default

Quote:
Originally Posted by borngunners View Post
In other words, you are using the public ip on the zimbra box now instead of the private ip configuration on the box?
Yes, I setup the second interface on my Zimbra server with the public IP, but just as a test. I still need to get it working through my firewall for added security and so that I can use the firewalls built-in AS/AV filtering.
Reply With Quote
  #7 (permalink)  
Old 07-31-2009, 04:35 PM
Active Member
 
Posts: 29
Default

It's working now! I had to configure some policy routes and SNAT.
Reply With Quote
  #8 (permalink)  
Old 07-31-2009, 05:47 PM
Advanced Member
 
Posts: 191
Default

You mean some policy route on the firewall? Can you post me the policy route that you use. In other words, can you explain a little bit further.

Thanks,
Reply With Quote
  #9 (permalink)  
Old 08-03-2009, 08:26 AM
Active Member
 
Posts: 29
Default

Yes, I had to use policy routes because the SMTP traffic is going out through an interface on my firewall other than my primary interface. These are the two policy routes that I am using on the Astaro box:

Interface Route
Source Network: Internal Network
Service: SMTP
Destination Network: Any
Target Interface: DSL Interface

Gateway Route
Source Network: DSL Network
Service: Any
Destination Network: Any
Gateway: DSL Gateway from provider

I also had to setup NAT masquerading between the internal network and the DSL network and SNAT rules between my server and the DSL interface. Again, this is because I am not using my primary external firewall interface for the SMTP traffic.
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.