Troubleshooting Course Content Rough Drafts-Identify And Resolve Mail Flow Issues: Difference between revisions

No edit summary
Line 1: Line 1:
<strong>ROUGH DRAFT</strong>
<strong>ROUGH DRAFT</strong> <strong>ROUGH DRAFT</strong> <strong>ROUGH DRAFT</strong> <strong>ROUGH DRAFT</strong>


==Section I - General Info==
==Section I - General Info==

Revision as of 19:18, 11 February 2015

ROUGH DRAFT ROUGH DRAFT ROUGH DRAFT ROUGH DRAFT

Section I - General Info

Email traffic depends on DNS MX records

Section II - Trouble with Incoming Messages

Why are my messages not getting delivered? Check your DNS MX records from this linux command

host –t mx yourdomain.com

You should see something like…

yourdomain.com is handled by 10 mail.yourdomain.com.

Check to see if the MTA IP address is correct

host -t a mail.yourdomain.com

Is the IP correct?

Section III - Trouble with Outgoing Messages

Why are my messages not getting sent out?

Is your Network provider denying outbound smtp connections?

telnet smtp.hp.com 25

Section IV - Troubleshooting Tools

  • /opt/zimbra/postfix/sbin/mailq
  • /opt/zimbra/postfix/sbin/postqueue
  • sudo /opt/zimbra/libexec/zmqstat
  • /opt/zimbra/libexec/zmmsgtrace

Section V - Differences between zimbraMtaRelayHost & zimbraSmtpHostname

zimbraMtaRelayHost: Used by the zimbra MTA, postfix's value for postconf relayhost.

zimbraSmtpHostname: Used by the zimbra user store node not running MTA service.

Section VI - Real World case examples

OS MTA vs. Zimbra MTA

When a Linux OS is installed, the OS will include either Postfix or Sendmail. You must be aware that if the OS installs Postfix, the binary paths will be different.

[root@mail ~] which postfix
/usr/sbin/postfix
[zimbra@mail ~] which postfix
~/bin/postfix

See the difference? Make sure when you are running postfix commands like postconf, that you are running the commands as the zimbra user, not root.

Also, make sure to disable the OS MTA from the start up sequence.

chkconfig postfix off 

or

update-rc.d -f /etc/init.d/postfix remove

Mail Loops back to myself

Typically a bounce message would look something like this:

This is the mail system at host mail.yourdomain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<jsmith@mail.yourdomain.com>: mail for mail.yourdomain.com loops
    back to myself

What this means is that someone tried to send a message to jsmith@mail.yourdomain.com, however the Zimbra system is smart enough to have looked up the MX (mail exchange) records for the domain. It notes that it in fact is the destination server for the mail, but the domain of mail.yourdomain.com was not created.

LMTP delivery resolving to a public IP not the Private IP

Scenario would involve the zimbra MTA with the private IP, i.e. 192.168.1.17; however, mail is not getting delivered internally.

In the /var/log/zimbra.log file would show this:

relay=mail.yourdomain.com[17.218.128.55]:7025  **INCORRECT**
relay=mail.yourdomain.com[192.168.1.17]:7025   **CORRECT**

If this happens to you, try the following.

ZCS8.5 & ZCS8.6
zmprov mcf zimbraMtaLmtpHostLookup native

zmmtactl restart

Older zimbra versions
zmlocalconfig -e postfix_lmtp_host_lookup=native

zmmtactl restart


Verified Against: Zimbra Collaboration Suite 8.6 Date Created: 01/22/2015
Article ID: https://wiki.zimbra.com/index.php?title=Troubleshooting_Course_Content_Rough_Drafts-Identify_And_Resolve_Mail_Flow_Issues Date Modified: 2015-02-11



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search