SQL Server Database Mail sending exception case

Source: Internet
Author: User

There have been two recent cases of sending exceptions to SQL Server Database Mail, and these questions are also somewhat interesting, by the way. It is convenient for people who encounter similar problems to be crazy about these problems! Provide a little more ideas.

Case 1: One of our database server suddenly send messages are not, when there is a problem, check the message sent records, you will find that the status of the send is failed.

SELECT  from Msdb.dbo.sysmail_faileditems
SELECT  from Msdb.dbo.sysmail_mailitems

Check the database Mail log and you will find the following error logs, as follows:

The message could not be sent to the recipient because of a mail server failure. (Use account 1 (2017-03-22t00:01:26) to send mail.) Exception message: The message could not be sent to the mail server. (The SMTP server requires a secure connection or the client is not authenticated.) The server response is: 5.7.1 Client is not authenticated). )

This problem occurs because the SMTP permissions on this server on the Exchange server do not know what is being canceled, causing the client to fail authentication when the database uses sp_send_dbmail to send mail. This can be resolved by adding SMTP permissions to the Exchange-seeking administrator.

Case 2: A database server that uses SQLBACKUPANDFTP backup also suddenly encounters a failed send message, and the test message is sent with a timeout prompt. This reason, the system administrator to help look for a long time, only to find that because of the server installed Symantec antivirus software, they on the server side opened the Internet Email auto-protect function. Causes Symante anti-virus software to intercept sqlbackupandftp software to send mail.

SQL Server Database Mail sending exception case

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.