I'm trying to configure my server (zimbra.example.com) that will be accessed using the alias "mail.example.com" and am having trouble getting outgoing mail delivered. This has to be easy, but I'm getting confused (maybe it's late).
I need to have all mail sent go through my ISP's mail server (mail.isp.com). I have listed that address in the "Web mail MTA hostname" and "Relay MTA for external delivery:" options. However, sent mail from the web ui ends up in the deferred queue showing an error of "connect to zimbra.example.com: connection refused"
Can anyone shed some light here? I'm also not sure why it is connecting to zimbra.example.com and not mail.example.com. However, it's more important that mail get forwarded to the 'mail.isp.com' address.
Thanks!
Mail delivery Problem
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Mail delivery Problem
Can you post the full details from /var/log/zimbra.log please.
-
- Posts: 49
- Joined: Fri Sep 12, 2014 10:09 pm
Mail delivery Problem
The log is attached.
[QUOTE]Apr 27 13:33:28 localhost postfix/smtpd[4970]: initializing the server-side TLS engine
Apr 27 13:33:28 localhost postfix/smtpd[4970]: connect from mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost postfix/smtpd[4970]: 3564C8C4475: client=mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost postfix/cleanup[4974]: 3564C8C4475: message-id=
Apr 27 13:33:28 localhost postfix/qmgr[4738]: 3564C8C4475: from=, size=998, nrcpt=1 (queue active)
Apr 27 13:33:28 localhost postfix/smtpd[4970]: disconnect from mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost amavis[18262]: (18262-01) ESMTP::10024 /opt/zimbra/amavisd/tmp/amavis-20060427T133328-18262: -> Received: SIZE=998 from mailhost.example.com ([127.0.0.1]) by localhost (mailhost.example.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18262-01 for ; Thu, 27 Apr 2006 13:33:28 -0400 (EDT)
Apr 27 13:33:28 localhost amavis[18262]: (18262-01) Checking: jJ-Km2Gn8kG2 [172.26.3.50] ->
Apr 27 13:33:28 localhost clamd[11749]: SelfCheck: Database status OK.
Apr 27 13:33:29 localhost postfix/smtpd[4992]: initializing the server-side TLS engine
Apr 27 13:33:29 localhost postfix/smtpd[4992]: connect from localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost postfix/smtpd[4992]: 78D6E8C4477: client=localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost postfix/cleanup[4974]: 78D6E8C4477: message-id=
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 78D6E8C4477: from=, size=1846, nrcpt=1 (queue active)
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) FWD via SMTP: -> , 250 2.6.0 Ok, id=18262-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as 78D6E8C4477
Apr 27 13:33:29 localhost postfix/smtpd[4992]: disconnect from localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) Passed CLEAN, LOCAL [172.26.3.50] [172.26.3.50] -> , Message-ID: , mail_id: jJ-Km2Gn8kG2, Hits: -1.539, 1317 ms
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) extra modules loaded: Net/LDAP/Bind.pm
Apr 27 13:33:29 localhost postfix/smtp[4975]: 3564C8C4475: to=, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=18262-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as 78D6E8C4477)
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 3564C8C4475: removed
Apr 27 13:33:29 localhost postfix/smtp[4993]: 78D6E8C4477: to=, relay=mx00.mail.isp.net[205.152.58.32], delay=0, status=bounced (host mx00.mail.isp.net[205.152.58.32] said: 550 relaying mail to gmail.com is not allowed (in reply to RCPT TO command))
Apr 27 13:33:29 localhost postfix/cleanup[4974]: CF1258C4478: message-id=
Apr 27 13:33:29 localhost postfix/qmgr[4738]: CF1258C4478: from=<>, size=3769, nrcpt=1 (queue active)
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 78D6E8C4477: removed
Apr 27 13:33:29 localhost postfix/lmtp[4995]: CF1258C4478: to=, relay=none, delay=0, status=deferred (connect to mailhost.example.com[72.151.26.3]: Connection refused)
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: antispam: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: antivirus: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: ldap: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: logger: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: mailbox: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: mta: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: snmp: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: spell: Running
[/QUOTE]
Thanks
[QUOTE]Apr 27 13:33:28 localhost postfix/smtpd[4970]: initializing the server-side TLS engine
Apr 27 13:33:28 localhost postfix/smtpd[4970]: connect from mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost postfix/smtpd[4970]: 3564C8C4475: client=mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost postfix/cleanup[4974]: 3564C8C4475: message-id=
Apr 27 13:33:28 localhost postfix/qmgr[4738]: 3564C8C4475: from=, size=998, nrcpt=1 (queue active)
Apr 27 13:33:28 localhost postfix/smtpd[4970]: disconnect from mailhost.example.com[172.26.3.50]
Apr 27 13:33:28 localhost amavis[18262]: (18262-01) ESMTP::10024 /opt/zimbra/amavisd/tmp/amavis-20060427T133328-18262: -> Received: SIZE=998 from mailhost.example.com ([127.0.0.1]) by localhost (mailhost.example.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18262-01 for ; Thu, 27 Apr 2006 13:33:28 -0400 (EDT)
Apr 27 13:33:28 localhost amavis[18262]: (18262-01) Checking: jJ-Km2Gn8kG2 [172.26.3.50] ->
Apr 27 13:33:28 localhost clamd[11749]: SelfCheck: Database status OK.
Apr 27 13:33:29 localhost postfix/smtpd[4992]: initializing the server-side TLS engine
Apr 27 13:33:29 localhost postfix/smtpd[4992]: connect from localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost postfix/smtpd[4992]: 78D6E8C4477: client=localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost postfix/cleanup[4974]: 78D6E8C4477: message-id=
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 78D6E8C4477: from=, size=1846, nrcpt=1 (queue active)
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) FWD via SMTP: -> , 250 2.6.0 Ok, id=18262-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as 78D6E8C4477
Apr 27 13:33:29 localhost postfix/smtpd[4992]: disconnect from localhost.localdomain[127.0.0.1]
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) Passed CLEAN, LOCAL [172.26.3.50] [172.26.3.50] -> , Message-ID: , mail_id: jJ-Km2Gn8kG2, Hits: -1.539, 1317 ms
Apr 27 13:33:29 localhost amavis[18262]: (18262-01) extra modules loaded: Net/LDAP/Bind.pm
Apr 27 13:33:29 localhost postfix/smtp[4975]: 3564C8C4475: to=, relay=127.0.0.1[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=18262-01, from MTA([127.0.0.1]:10025): 250 Ok: queued as 78D6E8C4477)
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 3564C8C4475: removed
Apr 27 13:33:29 localhost postfix/smtp[4993]: 78D6E8C4477: to=, relay=mx00.mail.isp.net[205.152.58.32], delay=0, status=bounced (host mx00.mail.isp.net[205.152.58.32] said: 550 relaying mail to gmail.com is not allowed (in reply to RCPT TO command))
Apr 27 13:33:29 localhost postfix/cleanup[4974]: CF1258C4478: message-id=
Apr 27 13:33:29 localhost postfix/qmgr[4738]: CF1258C4478: from=<>, size=3769, nrcpt=1 (queue active)
Apr 27 13:33:29 localhost postfix/qmgr[4738]: 78D6E8C4477: removed
Apr 27 13:33:29 localhost postfix/lmtp[4995]: CF1258C4478: to=, relay=none, delay=0, status=deferred (connect to mailhost.example.com[72.151.26.3]: Connection refused)
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: antispam: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: antivirus: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: ldap: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: logger: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: mailbox: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: mta: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: snmp: Running
Apr 27 13:34:05 localhost zimbramon[5085]: 5085:info: 2006-04-27 13:34:01, STATUS: mailhost.example.com: spell: Running
[/QUOTE]
Thanks
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Mail delivery Problem
Running a firewall?
Postfix can't connect to Zimbra to deliver the mail over LMTP. port 7025
Apr 27 13:33:29 localhost postfix/lmtp[4995]: CF1258C4478: to=, relay=none, delay=0, status=deferred (connect to mailhost.example.com[72.151.26.3]: Connection refused)
Login to the zimbra host. Try this:
telnet 72.151.26.3 7025
Postfix can't connect to Zimbra to deliver the mail over LMTP. port 7025
Apr 27 13:33:29 localhost postfix/lmtp[4995]: CF1258C4478: to=, relay=none, delay=0, status=deferred (connect to mailhost.example.com[72.151.26.3]: Connection refused)
Login to the zimbra host. Try this:
telnet 72.151.26.3 7025
-
- Posts: 49
- Joined: Fri Sep 12, 2014 10:09 pm
Mail delivery Problem
Well, kinda. That ipaddress is an external address that is not internally addressable. Why isn't it pulling the internal address from the hosts file? Is that what this DNS checkbox is for?
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Mail delivery Problem
For RFC/Security reasons Postfix will use DNS. So if a DNS lookup on your host gives the external IP then you'll either need to allow it or implement split DNS to allow for an internal DNS lookup.
Mail delivery Problem
If anyone still has a similar problem like this, running a dnsproxy is a simple solution. Something like dnrd will do the job using your hosts file.
Al
Al