Issue authenticating with Oracle's OCI Email Delivery service

james deloid 1 Reputation point
2022-02-17T16:54:56.14+00:00

When trying to submit an email from Powershell or the mail client in the Microsoft OS/MS applications (IIS) to Oracle's Cloud Infrastructure's Email Delivery Service it seems that MS does not support the SMTP username format that OCI ED is using.

The Oracle username format is really long and contains '..' Could this be the problem?

Example username: ******@ocid1.tenancy.oc1..aaaaaaaasnh4l5j3kpsaekzlffhbos3arhy52fm8qanpqg46zqtke27wlmeq.ri.com

Attached is the error I received using powershell175410-smtp-error.png

Someone suggested that MS might not comply with SMTP username definition in https://datatracker.ietf.org/doc/html/rfc4616#page-3. Could this be true?

Has anyone run into issues like this before?

Community Center | Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Kenneth Heung 1 Reputation point
    2022-08-20T20:20:28.34+00:00

    It is not about the username but more related to the actual authentication. Unlike javamail, which can fine tune some prop, SmtpClient can only set EnableSsl and that won't work with OCI Email Delivery Service.

    Anyway, SmtpClient is deprecated. Try MailKit and it works fine with OCI Email.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.