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 12-23-2009, 10:48 PM
Member
 
Posts: 13
Default [SOLVED] mail for mail01.example.com loops back to myself

Hell forum,

I have a problem with mail delivery for admin user after I had changed hostname for zimbra installation. It was example.com in the beginning and I decided to change it to mail01.example.com - since there were going to be others hosts.
So, everything works very well, except for the mail delivery admin user, for example daily reports. Mail for admin@example.com is ok, but not for admin@mail01.example.com
Since zimbra host now is mail01.example.com, zimbra tries to deliver reports to this new address admin@mail01.example.com

The first question: is this a correct behaviour and maybe I need to add something to the configuration (MTA)?
If this is correct (I don't see the reason why it shouldn't be), then I'd like to ask for help fixing the error with "loops back to myself" (see log below)

This is a short description of my zimbra 6x installation:

DNS server is on the same host, it has split views.
Mailflow on this zimbra host is ok: incoming, outgoing. I use this host to deliver mail for a few domains: no issues, zimbra works very well.

zimbra@mail01:~$ zmcontrol -v
Release 6.0.2_GA_1912.UBUNTU8 UBUNTU8 FOSS edition.

#zimbra@mail01:~$ hostname
mail01.example.com

#dig example.com mx
example.com. 3600 IN MX 5 mail01.example.com.

I even set the mx for the mail01.example.com, but it didn't help:

#dig mail01.example.com mx
mail01.example.com. 3600 IN MX 10 mail01.example.com.

#zimbra@mail01:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 example.local
172.0.50.50 mail01.example.com mail01

These are the errors I see in logs, when I try to generate daily reports:

Dec 24 01:02:51 mail01 postfix/smtp[8772]: 3B97454E53B: to=, relay=none, delay=0.03, delays=0.01/0.02/0/0, dsn=5.4.6, status=bounced (mail for mail01.example.com loops back to myself)
Dec 24 01:02:51 mail01 postfix/cleanup[8768]: 44E3754E53C: message-id=<20091224060251.44E3754E53C@mail01.example.com>
Dec 24 01:02:51 mail01 postfix/bounce[8773]: 3B97454E53B: sender non-delivery notification: 44E3754E53C
Dec 24 01:02:51 mail01 postfix/lmtp[8774]: 44E3754E53C: to=, relay=mail01.example.com[172.0.50.50]:7025, delay=0.14, delays=0.01/0.01/0/0.12, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)

Last edited by rokka; 12-23-2009 at 10:54 PM..
Reply With Quote
  #2 (permalink)  
Old 12-24-2009, 09:41 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Your hosts file should contain only the following lines (as per the Quick Start Installation Guide):

Code:
127.0.0.1 localhost.localdomain localhost
172.0.50.50 mail01.example.com mail01
How did you change the hostname, in Zimbra or just in the hosts file? Does your admin user actually belong to a domain named: mail01.example.com?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 12-24-2009, 09:42 AM
Member
 
Posts: 13
Default

UPDATE:

If I'm adding the hostname mail01.example.com to mydestination parameter then I'm getting "unknown user" error for the user admin@mail01.example.com

zmprov ms mail01.example.com zimbraMtaMyDestination 'localhost mail01.example.com'

Now I'm completely out of ideas. Previously I had example.com as a hostname, zimbra delivers mail to it's users without any issues (including user admin).

After I changed hostname to mail01.example.com, zimbra is trying to deliver admin mail to @mail01.example.com. Can somebody confirm if this is a case for a common setup? Should I create user admin for mail01.example.com - but it means I need to create another domain to serve in zimbra web-interface.

Maybe loggerhostmap is not correctly defined in my case? Can somebody confirm?

zimbra@mail01:~$ zmloggerhostmap
Zimbra Logger Service Hostname Map

--------------------- ---------------------
DNS Hostname Zimbra Hostname
--------------------- ---------------------
mail01.example.com mail01.example.com
mail01 mail01.example.com
example.com mail01.example.com
example mail01.example.com


Code:
Dec 24 12:16:13 mail01 postfix/smtpd[15193]: connect from localhost[127.0.0.1]
Dec 24 12:16:13 mail01 postfix/smtpd[15193]: 8A5C154E53B: client=localhost[127.0.0.1]
Dec 24 12:16:13 mail01 postfix/cleanup[14358]: 8A5C154E53B: message-id=<20091224171557.7CD0C54E539@mail01.example.com>
Dec 24 12:16:13 mail01 postfix/qmgr[10728]: 8A5C154E53B: from=, size=8206, nrcpt=1 (queue active)
Dec 24 12:16:13 mail01 postfix/smtp[14359]: 7CD0C54E539: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=16, delays=0.09/0.01/0.01/16, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=09438-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8A5C154E53B)
Dec 24 12:16:13 mail01 postfix/qmgr[10728]: 7CD0C54E539: removed
Dec 24 12:16:13 mail01 postfix/smtp[15194]: 8A5C154E53B: to=, relay=none, delay=0.04, delays=0.03/0.01/0/0, dsn=5.4.6, status=bounced (mail for mail01.example.com loops back to myself)
Dec 24 12:16:13 mail01 postfix/cleanup[14358]: 9F70054E539: message-id=<20091224171613.9F70054E539@mail01.example.com>
Dec 24 12:16:13 mail01 postfix/bounce[15195]: 8A5C154E53B: sender non-delivery notification: 9F70054E539
Dec 24 12:16:13 mail01 postfix/qmgr[10728]: 9F70054E539: from=<>, size=10198, nrcpt=1 (queue active)
Dec 24 12:16:13 mail01 postfix/qmgr[10728]: 8A5C154E53B: removed
Dec 24 12:16:13 mail01 postfix/smtp[15194]: 9F70054E539: to=, relay=none, delay=0.04, delays=0.03/0/0/0, dsn=5.4.6, status=bounced (mail for mail01.example.com loops back to myself)
Dec 24 12:16:13 mail01 postfix/qmgr[10728]: 9F70054E539: removed
Reply With Quote
  #4 (permalink)  
Old 12-24-2009, 09:45 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by rokka View Post
If I'm adding the hostname mail01.example.com to mydestination parameter then I'm getting "unknown user" error for the user admin@mail01.example.com

zmprov ms mail01.example.com zimbraMtaMyDestination 'localhost mail01.example.com'
Reverse that change to it's original setting.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 12-24-2009, 09:49 AM
Member
 
Posts: 13
Default

Quote:
Originally Posted by phoenix View Post
Your hosts file should contain only the following lines (as per the Quick Start Installation Guide):

Code:
127.0.0.1 localhost.localdomain localhost
172.0.50.50 mail01.example.com mail01
How did you change the hostname, in Zimbra or just in the hosts file? Does your admin user actually belong to a domain named: mail01.example.com?
My hosts file didn't contain localhost.localdomain for loopback IP, but it's not critical I think.

I changed hostname using zimbra control scripts (as described in wiki). User admin were in the domain example.com before.
It looks this way in zimbra admin console:

Domains:
example.com
domain1.com
domain2.com

Servers:
mail01.example.com

Should I add mail01.example.com in "Domains"?

I'm changing mydestination back to localhost:
zmprov ms mail01.example.com zimbraMtaMyDestination 'localhost'
Reply With Quote
  #6 (permalink)  
Old 12-24-2009, 09:59 AM
Member
 
Posts: 13
Default

It's solved. I added new domain mail01.example.com and added alias admin@mail01.example.com for the user admin@example.com

Code:
Dec 24 12:56:46 mail01 postfix/smtpd[25254]: A150A54E53B: client=localhost.localdomain[127.0.0.1]
Dec 24 12:56:46 mail01 postfix/cleanup[25258]: A150A54E53B: message-id=<20091224175646.A150A54E53B@mail01.example.com>
Dec 24 12:56:46 mail01 postfix/qmgr[23666]: A150A54E53B: from=, size=8295, nrcpt=1 (queue active)
Dec 24 12:56:46 mail01 postfix/smtpd[25254]: disconnect from localhost.localdomain[127.0.0.1]
Dec 24 12:56:52 mail01 postfix/smtpd[25429]: connect from localhost.localdomain[127.0.0.1]
Dec 24 12:56:52 mail01 postfix/smtpd[25429]: D2D7A54E53C: client=localhost.localdomain[127.0.0.1]
Dec 24 12:56:52 mail01 postfix/cleanup[25258]: D2D7A54E53C: message-id=<20091224175646.A150A54E53B@mail01.example.com>
Dec 24 12:56:52 mail01 postfix/qmgr[23666]: D2D7A54E53C: from=, size=8916, nrcpt=1 (queue active)
Dec 24 12:56:52 mail01 postfix/smtp[25259]: A150A54E53B: to=, orig_to=, relay=127.0.0.1[127.0.0.1]:10024, delay=6.2, delays=0.1/0.01/0/6.1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=09442-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D2D7A54E53C)
Dec 24 12:56:52 mail01 postfix/qmgr[23666]: A150A54E53B: removed
Dec 24 12:56:52 mail01 postfix/smtpd[25429]: disconnect from localhost.localdomain[127.0.0.1]
Dec 24 12:56:53 mail01 postfix/lmtp[25430]: D2D7A54E53C: to=, relay=mail01.example.com[172.0.50.50]:7025, delay=0.17, delays=0.01/0.03/0/0.13, dsn=2.1.5, status=sent (250 2.1.5 Delivery OK)
One question remains, I'm not sure if mx records for mail01.example.com should be defined? Maybe only in the local view?

I'm not going to accept mail for mail01.example.com from the Internet, only local internal delivery.

--
Roman
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.