Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Configure DB Mail error


Configure DB Mail error

Author
Message
arooj300
arooj300
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 533
Hello All,

We are having MS SQL 2008R2 in our Windows Server 2008R2 and our organization mainiting Internal E-Mail.

Internal Emails are used to communicate within the employees of our organization only.

Now, I had configured MS SQL Database Mail with one Internal E-Mail ID with port number 25 and it's thrwing error

"The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 5 (2014-07-18T15:29:19). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender).
)".

I have enabled Database Mail also but still i am getting same error.

Please help me on this.

Thanks,
Arooj Ahmad
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14955 Visits: 38950
error 5.7.1 Client does not have permissions to send as this sender


this tells you the issue is not with SQL database mail but with the mail server.
that the mail server is requiring additional security related to impersonation, i believe,
it's probably related to using one mailbox to pretend it's another (ie address is "notifications@mydomain.com", but the credentials are for "alerts@mydomain.com",

you will need to get with your mail administrator on that one, to tell the server that a certain mailbox can send on behalf of other email addresses within the company. otherwise you need to change your mail process to not imersonate as anotheruser, but as the account being used for SMTP.

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

arooj300
arooj300
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 533
Thanks Lowell ......its working fine now.
arooj300
arooj300
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 533
Now I have one more clarification. I configured to get mail when job is succeded. But I want to get mail when job is fail also. I try in Job properties-> notification and check email. There I can select only one either job is success or fail or complete.
can you please assist on this.
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14955 Visits: 38950
on the notifications Tab, if you select "When the job completes", that will send the email you are after, and the message will have whether it was successful or with errors, so you get an email in both situations.



Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

arooj300
arooj300
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 533
Thanks Lowell:-)
arooj300
arooj300
SSC-Enthusiastic
SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)SSC-Enthusiastic (153 reputation)

Group: General Forum Members
Points: 153 Visits: 533
How can I send mail to the mulltiple user . Do i need to configure one more profile or in one profile we can send to the multiple user.
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14955 Visits: 38950
arooj300 (7/18/2014)
How can I send mail to the mulltiple user . Do i need to configure one more profile or in one profile we can send to the multiple user.


multiple users are defined as a semi colon delimited list in the to/cc/bcc parameters. they follow the standard rules for alias + <email>, or just as email addresses with no name/alias:


EXEC msdb.dbo.sp_send_dbmail
@profile_name='mydomain Database Mail',
@recipients='groupmail@mydomain.com;Lowell Izaguirre<lizaguirre@mydomain.com>;Brad Pitt <bpitt@mydomain.com>;Sylvester Stallone <sstallone@mydomain.com>',
@subject = 'Example SQL Alert ',
@body = @HTMLBody,
@body_format = 'HTML';



Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search