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

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 04-07-2009, 09:24 AM
Active Member
 
Posts: 31
Default [SOLVED] I can't receive mail!

I have installed ubuntu 8 server and zimbra in a LAN with another server (opensuse11) with a static IP.
I can send mail from zimbra to everybody but the only way I can receive mail is from another account in zimbra.
my public IP is 200.40.171.98
zimbra server is on 192.168.1.7
I have made changes to my iptables script, as follows:
Code:
ANYNET=0.0.0.0/0
iptables -A INPUT -i $ANYNET -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -i $ANYNET -p tcp --dport 110 -j ACCEPT
iptables -t nat -A PREROUTING --dst 200.40.171.98 -p tcp --dport 25 -j DNAT --to 192.168.1.7
of course there are a lot more things in this script but, except in default policies, there aren't any DROP rules.

Please help.
Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 04-07-2009, 09:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

I assume you've also checked that the option to 'Enable DNS lookups' is set in the MTA tab of the Admin UI? Although judging by this report it's a problem with your firewall. Have you also made sure that the firewall and AppArmor is disabled on your Zimbra server?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-07-2009, 09:58 AM
Active Member
 
Posts: 31
Default

Quote:
I assume you've also checked that the option to 'Enable DNS lookups' is set in the MTA tab of the Admin UI? Although judging by this report it's a problem with your firewall. Have you also made sure that the firewall and AppArmor is disabled on your Zimbra server?
The 'Enable DNS lookups' was set.
I have no firewall on Zimbra Server, but when I type
Code:
/etc/init.d/apparmor stop
ubuntu answers:

Unloading AppArmor profiles: Done

But still no incoming mail.
Reply With Quote
  #4 (permalink)  
Old 04-07-2009, 10:37 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

From another machine on your LAN try a telnet to the zimbra server on port 25, does it work? Are all the zimbra services up and running? What does the output of the following show:

Code:
zmcontrol status
According to the report I gave you earlier there's a 'connection refused' which usually means that a port is blocked or a service isn't running. Please check that the firewall is really disabled on the Zimbra server and that AppArmor is also disabled and stopped from starting at boot time. Does your ISP actually block port 25 or are you allowed to run a mail server on your IP address?
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 04-07-2009, 11:43 AM
Active Member
 
Posts: 31
Default

Quote:
From another machine on your LAN try a telnet to the zimbra server on port 25
Work.
Code:
220 correo.sanjuan.edu.uy ESMTP Postfix
Quote:
zmcontrol status
antispam...Running
antivirus...Running
imapproxy...Running
ldap...Running
logger...Running
mailbox...Running
mta...Running
snmp...Running
spell...Running
stats...Running

No firewall (on zimbra box) neither AppArmor. I donīt think my ISP blocks port 25

If I try to telnet port 25 from outside the lan, i get an error (conexion refused)
Reply With Quote
  #6 (permalink)  
Old 04-07-2009, 12:23 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Quote:
Originally Posted by masterguido View Post
Work.
Code:
220 correo.sanjuan.edu.uy ESMTP Postfix


antispam...Running
antivirus...Running
imapproxy...Running
ldap...Running
logger...Running
mailbox...Running
mta...Running
snmp...Running
spell...Running
stats...Running

No firewall (on zimbra box) neither AppArmor. I donīt think my ISP blocks port 25
OK, so that indicates that you have no problem with your Zimbra server and that there's no firewall on the server causing problems.

Quote:
Originally Posted by masterguido View Post
If I try to telnet port 25 from outside the lan, i get an error (conexion refused)
That would indicate that your firewall is blocking access to your Zimbra server or the port is not forwarded to the correct LAN IP or that your ISP is blocking port 25 - one of those is likely to be the problem.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 04-07-2009, 12:29 PM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

You should also have a look at the link I gave you earlier for the wiki Firewall article, that was a working set-up and see if it matches your firewall rules.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 04-13-2009, 10:15 AM
Active Member
 
Posts: 31
Default

Now it's working!!!
I have an error on my iptables file.

Just one final question (I hope):
when, from outside my lan, I try to access my mail server:
Code:
http://correo.sanjuan.edu.uy
I get the main site page, without mail access.
Reply With Quote
  #9 (permalink)  
Old 04-20-2009, 10:19 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

You've obviously got a web server sitting on the same IP address as your Zimbra server, using http for Zimbra will get you to your web server (as they're both using port 80). You also shouldn't use http for your Zimbra server if it's on the internet as it's not very secure, I'd suggest you change Zimbra to use https by using this command and forward port 443 to the LAN IP of your Zimbra server - your users will now be able to get to their mail by entering https://correo.sanjuan.edu.uy in their browser.
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 04-20-2009, 05:31 PM
Active Member
 
Posts: 31
Default

Thank you very much!!
That was all that I needed. Now zimbra is working perfectly.

Thanks again Phoenix
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.