Results 1 to 6 of 6

Thread: [SOLVED] mail for mail01.example.com loops back to myself

  1. #1
    rokka is offline Member
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    5

    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 11:54 PM.

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    rokka is offline Member
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    5

    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

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,582
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    rokka is offline Member
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    5

    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'

  6. #6
    rokka is offline Member
    Join Date
    Dec 2009
    Posts
    13
    Rep Power
    5

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Large volume of spam messages; see the log
    By snake_eyes in forum Administrators
    Replies: 1
    Last Post: 12-31-2008, 06:54 AM
  2. mail error - loops back to myself
    By infocentric in forum Installation
    Replies: 1
    Last Post: 11-20-2007, 03:02 PM
  3. fresh install down may be due to tomcat
    By gon in forum Installation
    Replies: 10
    Last Post: 07-25-2007, 08:09 AM
  4. DynDNS and Zimbra
    By afterwego in forum Installation
    Replies: 30
    Last Post: 04-01-2007, 03:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •