Manage mail servers

The Mail Server setting allows you to use your own SMTP mail server to send emails. By default, email messages are sent from the Identity as a Service built-in mail server. When you configure a custom SMTP server, all messages sent from Identity as a Service are sent from the custom SMTP server.

For Basic authentication you provide the SMTP username and password directly in IDaaS. For OAuth authentication, you do not provide the username and password for authorization in IDaaS. The username is retrieved after signing in to the OAuth application as long as you have the required ID token.

Before you begin, you need the following information:

 For Basic authentication:

       The hostname or IP address of your SMTP server

       The SMTP username (the email address associated with the mail server)

       The SMTP password for the SMTP username

For example, if you want to set up Gmail as your SMTP server, you would use the following:

       SMTP server: smtp.gmail.com

       Protocol: TLS(465)

       SMTP username: your full Gmail address (for example, username@gmail.com)

       SMTP password: your Gmail password

 For OAuth authentication:

       The Issuer URL from your mail server

       Authorization Endpoint

       Token Endpoint

       The Client ID of the application configured on the mail server

       The Client Secret of the application configured on the mail server

       The required scopes

For example, if you want to set up Google as your SMTP server, you would use the following:

       The Issuer URL from your mail server: accounts.google.com

       Protocol: TLS(465)

       Authorization Endpoint: https://accounts.google.com/o/oauth2/v2/auth

       Token Endpoint: https://oauth2.googleapis.com/token

       The Client ID: your full Gmail address (for example, username@gmail.com).

       The Client Secret: your gmail password

       The required scopes: https://mail.google.com https://www.googleapis.com/auth/userinfo.email  

Configure a custom mail server using basic authentication

Configure a custom mail server to use OAuth authentication