Understanding SMTP Authentication in SQL Database Mail Configuration

Sai Praneeth Eranti 210 Reputation points
2025-05-06T08:24:08.3066667+00:00

In the SQL Database Mail Configuration Wizard, basic authentication is currently being used. Does this imply the use of interactive or non-interactive login? Some articles suggest that providing a username and password constitutes interactive login, while others state that since the password is configured only once and emails are sent without user interaction with the mail server, it is non-interactive. The requirement is for a non-interactive login. Clarification and need help to setup non-interactive login .

User's image

SQL Server Database Engine
0 comments No comments
{count} votes

2 answers

Sort by: Newest
  1. Bruce (SqlWork.com) 77,476 Reputation points Volunteer Moderator
    2025-05-25T16:58:32.1733333+00:00

    SMTP is a protocol for sending mail. The SMTP server may require authentication. If it supports basic, then it’s a user name and password. The account can be an interactive account, or a non interactive account, it just needs to be supported by the SMTP server.

    Note: the sql mail client only supports basic authentication, many mail servers, like office 365, Gmail, etc no longer supports basic authentication due to security concerns. They have switched to oauth/ openid authenication which sql mail does not support.


  2. Greg Low 1,980 Reputation points Microsoft Regional Director
    2025-05-25T03:32:51.58+00:00

    It certainly can be used as a non-interactive login, but it's just using stored credentials that you could have used for an interactive login.

    Generally, we just create a user (usually a ___domain user) that has permissions to send the mail, and could be used for an interactive login, but the user is never used for anything except the database mail.

    The user doesn't have to be given permission to log onto the SQL Server box itself, just to authenticate to the mail server to send mail.

    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.