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