The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does no


Interesting db mail issue. If i click send test mail from sql mgmt studio, it works fine, but when i execute a SP to send a mail, it fails. One thing I noticed is that the "LastModified" column in the mail log shows the domain account when a test mail was sent from mgmt studio, but show "sa" when the SP was used to send mail. 

This is from SQL 2012, did not see this in sql 2008, looks like 2008 always used the service account.  any ideas ?

Get this error:

The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not

Thanks.

April 30th, 2013 9:02pm

That message came from the SMTP server, not DBMail.  This is not a DBMail issue.

The message indicates the recipient email address does not exist.  Check your email address.

Free Windows Admin Tool Kit Click here and download it now
April 30th, 2013 9:08pm

Hi Ranga,

I also use SQL Server 2012. I send a test email through SQL Server Management and the last modified By sa.

If you used stored procedure to send a test email. Please use the command below:

EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'Adventure Works Administrator',
    @recipients = 'danw@Adventure-Works.com',
    @body = 'The stored procedure finished successfully.',
    @subject = 'Automated Success Message' ;

I can both send test email through SQL Server Management Studio and SP. Make sure you have the right profile. Since you could send test mail via SQL Server Management Studio, please try again to send it via SP.

Thanks.

If you have any feedback on our support, please click here.

May 1st, 2013 2:06am

As Tom mentioned, these are errors from your SMTP server, and you need to talk to your SMTP people about this. For instance, googling for below gave me several hits:

SMTP 5.7.1

Free Windows Admin Tool Kit Click here and download it now
May 1st, 2013 9:16am

Ok, issue resolved. I used another smtp server that was used with sql 2008 in my sql 2012 server and everything started working fine, so, yes, it is is a smtp server issue. 
May 1st, 2013 3:31pm

Check my blog post where I've mentioned steps to configure Database Email

Link: http://sqlwithmanoj.com/2010/09/29/database-mail-setup-sql-server-2005/

Perform all steps mentioned in the blog post.

Also try out pointing your mail server to GMAIL, check if its working properly or not.

Free Windows Admin Tool Kit Click here and download it now
March 28th, 2015 7:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics