Issues while configuring notification mailer on windows exchange

Embed Size (px)

Citation preview

  • 8/13/2019 Issues while configuring notification mailer on windows exchange

    1/2

    11/30/13 Document 741307.1

    https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctr l-state=c05rr9sbw_129&id=741307.1

    javax.mail.MessagingException: Unable To Send Email Notifications To Microsoft ExchangeServer (Doc ID 741307.1)

    Modified: 11-Feb-2013 Type: PROBLEM

    In this Document

    Symptoms

    Cause

    Solution

    APPLIES TO:

    Identity Manager - Version 9.1 to 9.1.0.2

    Information in this document applies to any platform.

    **Checked for relevance on 08-Feb-2013**

    SYMPTOMS

    OIM has been configured to send emails; however, no emails are being sent.

    The email server in use is a Microsoft Exchange server.

    In the Email Server IT Resource, authentication has been enabled, and a username

    and password supplied; but email sending still fails with the following debug

    messages in the logs:

    ERROR,29 Sep 2008 09:07:12,472,[XELLERATE.REQUESTS],Class/Method:

    tcEmailNotificationUtil/sendEmail encounter some problems: Sending failed;

    nested exception is:

    class javax.mail.MessagingException: 530 5.7.1 Client was not authenticated

    CAUSE

    The Microsoft Exchange server is configured to support only "AUTH NTLM".

    However, JavaMail cannot use AUTH NTLM; it only supports AUTH LOGIN

    Server reports AUTH NTLM, and yet Java does not attempt AUTH even when

    auth is set to true.

    If you enable DEBUG for SMTP, which in OIM 9.x is done by setting XELLERATE.REQUESTS=DEBUG in log.properties,

    you can see this in the log files:

    08/09/29 09:07:07 DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,

    smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

    08/09/29 09:07:07 DEBUG SMTP: useEhlo true, useAuth true

    08/09/29 09:07:07 DEBUG SMTP: trying to connect to host "10.123.123.123", port 25

    220 EXCHGTEST.au.oracle.com Microsoft ESMTP MAIL Service ready at Mon, 29 Sep

    2008 09:04:43 +0530

    08/09/29 09:07:07 DEBUG SMTP: connected to host "10.123.123.123", port: 25

    http://-/?-http://-/?-http://-/?-http://-/?-http://-/?-
  • 8/13/2019 Issues while configuring notification mailer on windows exchange

    2/2

    11/30/13 Document 741307.1

    https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctr l-state=c05rr9sbw_129&id=741307.1

    EHLO oimtest01

    250-EXCHGTEST.au.oracle.com Hello [10.123.123.123]

    250-SIZE

    250-PIPELINING

    250-DSN

    250-ENHANCEDSTATUSCODES

    250-STARTTLS

    250-X-ANONYMOUSTLS

    250-AUTH NTLM

    250-X-EXPS GSSAPI NTLM

    250-8BITMIME

    250-BINARYMIME

    250-CHUNKING

    250-XEXCH50

    250 XRDST

    08/09/29 09:07:07 DEBUG SMTP: Found extension "SIZE", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "PIPELINING", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "DSN", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "STARTTLS", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "X-ANONYMOUSTLS", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "AUTH", arg "NTLM"

    08/09/29 09:07:07 DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM"

    08/09/29 09:07:07 DEBUG SMTP: Found extension "8BITMIME", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "BINARYMIME", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "CHUNKING", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "XEXCH50", arg ""

    08/09/29 09:07:07 DEBUG SMTP: Found extension "XRDST", arg ""

    08/09/29 09:07:07 DEBUG SMTP: use8bit false

    MAIL FROM:

    530 5.7.1 Client was not authenticated

    QUIT

    Note that client reports useAuth true, and the server reports AUTH NTLM, and yet login (AUTH command) is notattempted, because NTLM is not supported by the client.

    SOLUTION

    To implement the solution, please execute the following steps:

    1. Modify your Exchange SMTP Server to enable basic authentication.

    Follow the instructions in http://technet.microsoft.com/en-us/library/aa996733(EXCHG.80).aspx ,

    except tick the "Basic authentication" box rather than leaving it clear.

    http://technet.microsoft.com/en-us/library/aa996733%28EXCHG.80%29.aspx