The OAuth Mail Server Authentication Protocol
Start writing a post
News

The OAuth Mail Server Authentication Protocol

OAuth is a standard authorization mechanism that uses web tokens instead of passwords to grant delegated access to a protected resource.

3
The OAuth Mail Server Authentication Protocol

At any time, a resource owner can change or remove the rights granted to a given client by using OAuth.

What's the deal with OAuth?

As part of OAuth Configuration, these entities must be included:

The user who has access to the protected resource is known as the resource owner.

Access is requested by an end-user or application.

The server that generates the client's access token with the permission of the resource owner is known as the authorization server.

The server that hosts the protected resource is known as a resource server.

It is the client's responsibility to receive an authorization permit from the resource owner and deliver it to an authorization server in order to access a protected resource. As long as the resource owner has given their approval, the authorization server generates an access token. The resource server hosts a protected resource that can only be accessed by the client with this token.

The following diagram illustrates how OAuth authentication works:

This is an example of ServiceDesk Plus acting as the resource owner's client and seeking access to the mail server.

  • Make a decision on the type of connection.
  • The server name or IP address of the mail server must be entered in the OAuth Authentication Type field if you select POP/IMAP/POPS/IMAPS.
  • The connected mailbox's username and email addresses must be entered.
  • The protocol is IMAPS and cannot be modified because only IMAPS supports OAuth authentication.
  • Auto-selecting the correct port will be done for you. If necessary, you can alter the port.
  • Email retrieval for EWS and Java Mail API has been tested in conjunction with Gsuite via Azure and Azure Web Services.

Emails will be retrieved at this period (in minutes).

If necessary, turn on Email Debug using the checkbox. This is used to investigate issues with email retrieval and delivery.

Incoming emails will not be added as new requests if you select the Disable new request creation by email option.

Save your work. It appears that the mail server's user consent window has been opened.

To access the user consent window, please make sure your browser is not blocking pop-ups or redirection.

If you're prompted, enter your username and password and then click "I agree."

Once the connection is secure, a message of congratulations appears.

The OAuth-authenticated mail server can now be accessed by the application.

Setting up your incoming mail server

OAuth configuration for incoming mail is straightforward.

Go to Admin >> Helpdesk >> Email Server Settings >> Outbound.

Selecting SMTP/SMTPS as your method of sending mail:

Enter the Server Name/IP Address and the Alternate Server Name/IP Address in the OAuth Authentication Type field.

Please include the sender's name and the email address in your message.

Enter the connected mailbox's Username and select the Protocol from the drop-down menu.

If necessary, enable TLS.

Report this Content
This article has not been reviewed by Odyssey HQ and solely reflects the ideas and opinions of the creator.
houses under green sky
Photo by Alev Takil on Unsplash

Small towns certainly have their pros and cons. Many people who grow up in small towns find themselves counting the days until they get to escape their roots and plant new ones in bigger, "better" places. And that's fine. I'd be lying if I said I hadn't thought those same thoughts before too. We all have, but they say it's important to remember where you came from. When I think about where I come from, I can't help having an overwhelming feeling of gratitude for my roots. Being from a small town has taught me so many important lessons that I will carry with me for the rest of my life.

Keep Reading...Show less
​a woman sitting at a table having a coffee
nappy.co

I can't say "thank you" enough to express how grateful I am for you coming into my life. You have made such a huge impact on my life. I would not be the person I am today without you and I know that you will keep inspiring me to become an even better version of myself.

Keep Reading...Show less
Student Life

Waitlisted for a College Class? Here's What to Do!

Dealing with the inevitable realities of college life.

91785
college students waiting in a long line in the hallway
StableDiffusion

Course registration at college can be a big hassle and is almost never talked about. Classes you want to take fill up before you get a chance to register. You might change your mind about a class you want to take and must struggle to find another class to fit in the same time period. You also have to make sure no classes clash by time. Like I said, it's a big hassle.

This semester, I was waitlisted for two classes. Most people in this situation, especially first years, freak out because they don't know what to do. Here is what you should do when this happens.

Keep Reading...Show less
a man and a woman sitting on the beach in front of the sunset

Whether you met your new love interest online, through mutual friends, or another way entirely, you'll definitely want to know what you're getting into. I mean, really, what's the point in entering a relationship with someone if you don't know whether or not you're compatible on a very basic level?

Consider these 21 questions to ask in the talking stage when getting to know that new guy or girl you just started talking to:

Keep Reading...Show less
Lifestyle

Challah vs. Easter Bread: A Delicious Dilemma

Is there really such a difference in Challah bread or Easter Bread?

69553
loaves of challah and easter bread stacked up aside each other, an abundance of food in baskets
StableDiffusion

Ever since I could remember, it was a treat to receive Easter Bread made by my grandmother. We would only have it once a year and the wait was excruciating. Now that my grandmother has gotten older, she has stopped baking a lot of her recipes that require a lot of hand usage--her traditional Italian baking means no machines. So for the past few years, I have missed enjoying my Easter Bread.

Keep Reading...Show less

Subscribe to Our Newsletter

Facebook Comments