SMTP Auth Problems

Revision as of 09:05, 13 July 2015 by Jorge de la Cruz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SMTP authentication problems

   KB 1455        Last updated on 2015-07-13  

(0 votes)

SMTP Authentication allows POP3 and IMAP clients to send mail from arbitrary remote networks. Authentication may fail if you change the zimbraMailMode server configuration attribute (with the zmtlsctl command) or if you change the webmail access port server configuration attribute (zimbraMailPort or zimbraMailSSLPort) for the Jetty server (if you are using ZCS 4.5, this is the Tomcat server), since the zimbraMtaAuthURL is not automatically recreated. The solution is to regenerate the zimbraMtaAuthURL with the command given in step 4 below.

Note: The example commands use a Zimbra server named "". Make sure to use your server's name, which you can find by running zmhostname.

Checking and Configuring SMTP Authentication on the command-line

If POP3 and IMAP clients are unable to send mail, check the auth settings and mail mode of the server:

$ su - zimbra
$ zmprov getServer | grep Auth
zimbraMtaAuthEnabled: TRUE
zimbraMtaTlsAuthOnly: TRUE

$ zmprov getServer | grep Mode
zimbraMailMode: mixed

1. In order to use smtp authentication, zimbraMtaAuthEnabled must be set to TRUE. You can set that like this:

zmprov modifyServer zimbraMtaAuthEnabled TRUE

2. If zimbraMtaTlsAuthOnly is also TRUE, the POP3 and IMAP clients must be configured to use ssl/tls for smtp auth. Similarly, this can be set like this:

zmprov modifyServer zimbraMtaTlsAuthOnly TRUE

3. In a multi-node installation, make sure that zimbraMtaAuthHost and zimbraMtaAuthURL are set to a mailbox server. If not, the following command will set them appropriately (assuming there is a mailbox node named ""; be sure to use the zmhostname of a mailbox node in your installation).

zmprov modifyServer zimbraMtaAuthHost

4. Make sure the url in the zimbraMtaAuthURL will work with the zimbraMailMode. For example, if the MailMode is "https" or "mixed", the AuthURL must begin with "https://" (so that auth will be attempted over ssl), but if the MailMode is "http" (the mail server is only listening on http), the AuthURL must begin with "http://".

If the URL is wrong, re-set the hostname like this in order to regenerate the AuthURL:

zmprov modifyServer zimbraMtaAuthHost

Verified Against: unknown Date Created: 4/27/2006
Article ID: Date Modified: 2015-07-13

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