Yuves,
Thank you for your reply. Actually, I already replied in this thread that the problem was CentOS' sendmail service was listening to port 25 and after disabling that service I got passed that stage. (But, after posting that message I got the message that your post is sent for admin approval. so it does not appear here).
Anyways, now when I do zmcontrol status all services are running fine. I go to zimbra web interface, I send email and I get message, "message sent". but recipient does not receive it. I confirmed that by sending email to myself and to my gmail address.
I went to Zimbra wiki for incoming mail problem. I ran following commands, (though I do not fully understand them)
Code:
[zimbra@mail root]$ zmhostname
mail.mycompany.com
[zimbra@mail root]$ host -t mx mail.mymycompany.com
Host mail.mymycompany.com not found: 5(REFUSED)
[zimbra@mail root]$ zmlocalconfig -e postfix_lmtp_host_lookup=native
[zimbra@mail root]$ zmmtactl restart
Rewriting configuration files...done.
postfix/postfix-script: refreshing the Postfix mail system
Stopping saslauthd...done.
Starting saslauthd...done.
This is what zimbra.log gives just after sending an email.
Code:
[zimbra@mail root]$ tail -f /var/log/zimbra.log
Jul 12 22:20:26 mail postfix/cleanup[4529]: C6F28EB8867: message-id=<10edf0e7-538b-462f-a8b7-25905da5032b@mail.mycompany.com>
Jul 12 22:20:26 mail postfix/error[6005]: A4AD0EB8866: to=<archive@mycompany.com>, relay=none, delay=0.28, delays=0.13/0/0/0.14, dsn=4
.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=mail.mycompany.com type=A: Host not
found, try again)
Jul 12 22:20:26 mail postfix/smtpd[6960]: disconnect from localhost.localdomain[127.0.0.1]
Jul 12 22:20:26 mail postfix/qmgr[4531]: C6F28EB8867: from=<vp@mycompany.com>, size=1040, nrcpt=1 (queue active)
Jul 12 22:20:26 mail amavis[19765]: (19765-08) FWD via SMTP: <vp@mycompany.com> -> <abc@gmail.com>,BODY=7BIT 250 2.0.0 Ok, id=19765-08, from
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as C6F28EB8867
Jul 12 22:20:26 mail amavis[19765]: (19765-08) Passed CLEAN, MYNETS LOCAL [208.197.50.82] [208.197.50.82] <vp@mycompany.com> ->
<archive@mycompany.com>,<abc@gmail.com>, Message-ID: <10edf0e7-538b-462f-a8b7-25905da5032b@mail.mycompany.com>, mail_id: Rc7cZv+nd7Ja, Hits:
2.377, size: 610, queued_as: A4AD0EB8866/C6F28EB8867, 506 ms
Jul 12 22:20:26 mail postfix/smtp[5982]: 5AD6EEB885A: to=<archive@mycompany.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.59, delays=0.08/0
/0/0.51, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=19765-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A4AD0EB8866)
Jul 12 22:20:26 mail postfix/smtp[5982]: 5AD6EEB885A: to=<abc@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.59, delays=0.08/0/0/0.51,
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=19765-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A4AD0EB8866)
Jul 12 22:20:26 mail postfix/qmgr[4531]: 5AD6EEB885A: removed
Jul 12 22:20:27 mail postfix/smtp[6961]: C6F28EB8867: to=<abc@gmail.com>, relay=none, delay=0.17, delays=0.14/0.02/0/0, dsn=4.4.3, status=deferred
(Host or domain name not found. Name service error for name=gmail.com type=MX: Host not found, try again)
I think it has something to do with domain name.
Thank you again.