Idea ID: 1790208

Office 365 secured SMTP server needs to be validated

Status : Waiting for Votes
over 2 years ago

Asset Manager SMTP messaging through SSL/TLS feature is part of recent enhancement:
QCCR1E134731 

However, it does not work with Office 365 SMTP server. We tested the behaviour on following environment:

AM Version: 9.70
OS: Windows 2016 with desktop experience
SMTP server: Office 365 listening on port 587


A sample mail.ini file:
[mail]
SMTP=1
SMTPserver=smtp.office365.com
email=address@domain.com
displayname=AssetManagerNotification
SMTPAuth=1
SMTPSecurityType=1
SMTPPort=587
SMTPSSLVersion=0
SMTPCertFile=E:\NewOutlook.pem

The failure produces following trace in adblog:

2019/03/26 17:19:52.548 0 1 [Thrd#:17076](16384) SMTP error: unknown protocol.
2019/03/26 17:19:52.535 0 1 [Thrd#:17076](-1) The message could not be sent correctly to the server smtp.office365.com.
2019/03/26 17:19:52.552 0 1 [Thrd#:17076](-53) Action 'Test Mail to administrator' failed to execute

We tried SMTPSSLVersion=1,2,3,4 > the error remains unchanged.

 

Office 365 SMTP server needs to be validated for successful connection through SSL/TLS by Asset Manager.

  • It does not work with sendgrid SMTP server. We tested the behavior on the following environment:

    AM Version: 9.70
    OS: Windows Server 2016 with desktop experience
    SMTP server: Sendgrid listening on port 587

    Mail.ini file

    [mail]
    SMTP=1
    SMTPserver=smtp.sendgrid.net
    email=address@domain.com
    displayname=AssetManagerNotification
    SMTPAuth=1
    SMTPSecurityType=1
    SMTPPort=587
    SMTPSSLVersion=2
    SMTPCertFile=E:\NewOutlook.pem

     

    The failure produces following trace in adblog:

    2019/07/08 13:54:45.319 2 128 [Thrd#:74128]VGet: 0.016s
    2019/07/08 13:54:45.439 0 1 [Thrd#:74128](16384) SMTP error: unknown protocol.
    2019/07/08 13:54:45.428 0 1 [Thrd#:74128](-1) The message could not be sent correctly to the server smtp.sendgrid.net.
    2019/07/08 13:54:45.446 0 1 [Thrd#:74128](-53) Action 'Notify requester_test' failed to execute
    2019/07/08 13:55:30.687 0 32 [Thrd#:74128]GetPhysicalField

  • We are also facing the same issue with the mail server. It is not supporting SMTP port 587. Giving the below error when we tried to send a test mail.

    2019/07/08 13:54:45.319 2 128 [Thrd#:74128]VGet: 0.016s
    2019/07/08 13:54:45.439 0 1 [Thrd#:74128](16384) SMTP error: unknown protocol.
    2019/07/08 13:54:45.428 0 1 [Thrd#:74128](-1) The message could not be sent correctly to the server smtp.sendgrid.net.
    2019/07/08 13:54:45.446 0 1 [Thrd#:74128](-53) Action 'Notify requester_test' failed to execute
    2019/07/08 13:55:30.687 0 32 [Thrd#:74128]GetPhysicalField