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 Display Modes
  #1 (permalink)  
Old 10-03-2005, 07:34 PM
Member
 
Posts: 12
Default Local Delivery LMTP Problem

I've added more RAM to accomodate mysql, got the hosts file correct and successfully setup Zimbra. I can login to the admin interface and the web client.

There's only one problem remaining that I'm stuck on. When I try to send email to internal users, Postfix fails on trying to deliver the mail with lmtp. Here's what the zimbra.log tells me.

Oct 3 19:47:31 mackenreusch postfix/lmtp[13927]: 0D0981772AF: to=, relay=none, delay=84404, status=deferred (connect to mackenreusch.reusch.net[209.149.57.168]: Connection refused)

I *think* I understand what's happening, but I'm not sure how to fix it. The server lives behind a NAT router. The external IP is the 209.149.57.168 address and is what the hostname mackenreusch.reusch.net resolves to in DNS. It looks like postfix is doing a DNS lookup and trying to delivery to the public IP address instead of the server's internal IP, 192.168.2.52.

I could setup an internal DNS server that would tell postfix mackenreusch.reusch.net resolves to 192.168.5.2, but I'd rather avoid having to setup bind if possible.

From digging into the zimbra postfix setup, it looks like postfix gets the transport map from LDAP. Could I change the transport map to tell it to deliver mail to mackenreusch.reusch.net to the localhost LMTP server?

I suspect I won't be the last person to run into this problem given how popular NAT is and hope the solution will be useful to others!

I've been waiting for a viable open alternative to MS Exchange for a while, and Zimbra is by far the best I've seen. Way to go!
Reply With Quote
  #2 (permalink)  
Old 10-03-2005, 07:36 PM
Zimbra Employee
 
Posts: 274
Default disable_dns_lookups

You should disable DNS lookups that postfix is doing by going to admin UI MTA tab.
Reply With Quote
  #3 (permalink)  
Old 10-03-2005, 07:38 PM
Zimbra Employee
 
Posts: 274
Default what disable_dns_lookups does

just a clarification: disable_dns_lookups causes postfix to not use DNS directly (ie, libresolv), but instead causes it to use the glibc routines which respect /etc/hosts, /etc/resolv.conf etc.
Reply With Quote
  #4 (permalink)  
Old 10-03-2005, 07:49 PM
Member
 
Posts: 12
Default It worked!

Brilliant, thanks!

I appreciate the clarification on what disable_dns_lookups actually does. I thought about turning it off, but figured postfix wouldn't be able to lookup remote domains to deliver mail to.
Reply With Quote
  #5 (permalink)  
Old 10-04-2005, 09:07 AM
Member
 
Posts: 12
Default Also need to set relay_host

This fixed my internal mail delivery problem, but then I noticed deliver of external mail wasn't quite working right (it looks like with this DNS setting, postfix looks up A records, not MX records).

I picked up the tip from this thread about setting the relay_host parameter (through the global settings, MTA tab in the UI).

I set it to my ISP's SMTP server and both internal and external delivery are now working.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0