[SOLVED] Zimbra on OSX - returned mail, hostname problem?
At first, thank you, Zimbra people, for good work and continous efforts... :-)
Congrats for your business victory! Ummm...
My OpenSource Zimbra installation (4.5.3 GA) works on client OSX Tiger (10.4.9) installation for 6 months.
I have ~ 30 accounts, exchanging ~300 e-mails every day.
Several accounts grow on size over 1 Gb now, but Zimbra and PPC G4 coping with it quite OK.
(Machine - Mac G4 700 MHz, 1.25 Gb RAM, 120 Gb HD, directly connected to internet)
There are no big issues with workflow, only few - sometimes logger stops working by itself, but server continues normally, and thats all... EXCEPT:
Just SOME other MTAs is returning/not accepting mail from my Zimbra because on wrong/not qualified HOSTNAME.
I have static IP and FQDN both for "mail.mydomain.com" and "webmail. mydomain.com".
(Notice: I choose name "webmail" because I felt it good for my purpose and then registered that name "webmail.mydomain.com" with my TLD. In this way I got address "webmail.mydomain.com" pointing to my machine for user access to webmail interface).
My HOSTS file:
When I installed Zimbra, I found that ONLY way to get Zimbra installation working is to set OSX Computer Name to "webmail", NOT "mail.mydomain.com", webmail.mydomain.com" or just "mydomain.com". When I set Computer Name to other than "webmail", installation never succeeded. I don't remember exact reasons but there was issues about LDAP not finding localhost and something like.
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
xx.xx.xxx.xxx webmail.mydomain.com webmail
OSX, as always, automagically adds .local to Computer Name.
So, I notice in logs that Postfix manifests to outside world as "webmail.local". And this is not good.
And I see that it is problem here:
--sample from returned mail--
--end of sample--
<email@example.com>: host relay.mgn.ru[188.8.131.52] refused to talk to me: 501 5.7.1
<webmail.local>: Helo command rejected: Host not found
Reporting-MTA: dns; webmail.local
X-Postfix-Sender: rfc822; firstname.lastname@example.org
Arrival-Date: Tue, 6 Nov 2007 10:46:07 +0200 (EET)
Final-Recipient: rfc822; email@example.com
Diagnostic-Code: X-Postfix; host relay.mgn.ru[184.108.40.206] refused to talk to
me: 501 5.7.1 <webmail.local>: Helo command rejected: Host not found
Is there any way to tell Zimbra Postfix to use FQDN when talking to other mailservers?
As I see, only few MTAs checks this now, because my server succesfully exchanges mails with LOT of servers on internet without problems for almost half-year, but some mails fail...
Re: Zimbra on OSX - returned mail, hostname problem
Thank you for answer.
Originally Posted by phoenix
1. You point me to changing HOST file first entry to above-mentioned. Do you recognise that this is on OS X? Or it is just the way you set hosts file on Zimbra *nixes?
I know , I know that OSX is a tampered unix with nice GUI, but some stuff works different.
2. Zimbra machine is on static IP, directly connected to internet. No NAT, no router. No firewall before Zimbra machine, but OSX built in firewall is ON - configured to open ports for Zimbra needed connections - LDAP, POP3, IMAP, SMTP, HTTP, HTTPS, IMAPS, POP3S, SSH and Zimbra administration (tcp7071).
Thanks to all, problem solved!
Finally changed my HELO greeting.
I edited my main.cf file and added:
Note that this problem may be specific to Zimbra and Mac OS X Tiger - read first post in thread to get details, why it is specific. Average *nix user with correctly installed Zimbra server have correct Hostname already in place, so Zimbra's Postfix can grab it and use uncorected. If it is FQDN of course.
smtp_helo_name = mail.mydomain.com