SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DBMail fails to send email to Group Account


DBMail fails to send email to Group Account

Author
Message
jralston88
jralston88
SSC-Addicted
SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)

Group: General Forum Members
Points: 425 Visits: 689
We've installed database mail for two SQL Server 2008 instances. We have job notifications failures and database alerts going out to a group email account. Installation is fine.

We now installed database mail on a few more 2008 instances - test emails will not send the same group account. Individual accounts test fine. I tried stopping and starting dbmail - no difference. What am I missing?

When I test send to the group account via outlook - there are no issues. The group
account is not the issue.

Mail Log: The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-03-14T11:04:21).
Exception Message: Cannot send mails to mail server. (A recipient must be specified.).)

It almost sounds that DBMail install failed except that it will send to indiviual user emails. Does the group account need permission for each SQL Server instance?

Any comments / URLs would be appreciated...thanks.
Lowell
Lowell
SSC Guru
SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)

Group: General Forum Members
Points: 71820 Visits: 40942
sp_send_dbmail can only send to an address that conforms to an actual email address format, ie mygroup@mydomain.com; you cannot send to just "MyGroup"

a group account is handled special by an exchange server; it is optional to expose the group to external resources outside of the domain, so you have to get the mail admin to map mygroup@mydomain.com; to your group; when the exchange mail server receives the email, it will process it and duplicate the email out to each of the real members of the group.
get with your Exchange admin to create that or to make sure you know the mapped email for it.

it's optional specifically because it would be too easy to get spam from outside world with a staff@mycompany.com going out to everyone, for example.

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!
jralston88
jralston88
SSC-Addicted
SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)SSC-Addicted (425 reputation)

Group: General Forum Members
Points: 425 Visits: 689
Lowell,
Thanks for responding. I should have clarified that in my posting - the email account has the full domain. And the mapping you mentioned was done. I did some more digging and at least for now I have an intermin solution.

I changed the SMTP authentication from anonymous to Basic, entered the credentials for the account, bounced the SQL agent and sent a test email to the group account. It worked. I do need to speak with our exchange administrator because anonymous does work for one of our 2008 instances.

You were spot on with your comments about the group account requirements.

Thank you for responding.
Lowell
Lowell
SSC Guru
SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)SSC Guru (71K reputation)

Group: General Forum Members
Points: 71820 Visits: 40942
jralston88 (3/14/2013)
Lowell,
Thanks for responding. I should have clarified that in my posting - the email account has the full domain. And the mapping you mentioned was done. I did some more digging and at least for now I have an intermin solution.

I changed the SMTP authentication from anonymous to Basic, entered the credentials for the account, bounced the SQL agent and sent a test email to the group account. It worked. I do need to speak with our exchange administrator because anonymous does work for one of our 2008 instances.

You were spot on with your comments about the group account requirements.

Thank you for responding.


ahh yes anonymous authentication is usually only allowed for machines on the same LAN as the exchange server, or machines/ip addresses that have been explicitly put on a white list of allowed servers; ;
like you identified, that should be a quick fix for your mail admin. I missed that when i read your post, sorry, i would have mentioned that possibility too.

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