[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SQL Server 2005 sp_send_dbmail doesn't send to some email addresses

Posted on 2010-11-25
6
Medium Priority
?
859 Views
Last Modified: 2014-01-08
Hi,

In SQL Server 2005, calling sp_send_dbmail to send an email sends successfully to an individual's email address, and the message is delivered to the recipient. But if I specify an address which is a distribution group (say software.developers@mydomain.com), although the sp returns 0 the message is not delivered to any of the recipients. I'm told by the person who looks after our Exchange server (we are running Exchange 2010 SP1) that he can't find anything in the Exchange logs for the undelivered messages. Exchange is configured to allow mail from the IP address of the server on which SQL Server resides (and of course some messages sent through sp_send_dbmail are delivered). I've examined the logs and queried for message status and they state all messages have been sent and queues are working.

Thanks for any help.

Louise
0
Comment
Question by:louise001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
Humpdy earned 2000 total points
ID: 34211859
hi,
this won't work I'm afraid, you have to specify the individual addresses.

what you will need to do is get your exchange admin to allow people to send a mail to
staff@company.com from an external source, other than the local exchange.
0
 

Assisted Solution

by:louise001
louise001 earned 0 total points
ID: 34212869
Hi,

Thanks for responding. My colleague who adminsters our Exchange Server tells me he found a setting which was enabled, requiring all senders to be authenticated (as I said in my original post I'd asked him to look at the Exchange side of things before ...). Now that he's removed this authentication requirement off, messages sent using sp_send_dbmail are delivered succesfully.
Thanks for your help in any case, as without your suggestion I probably wouldn't have been able to get my collague to explore any further than he already had.

Cheers,
Louise
0
 
LVL 10

Expert Comment

by:Humpdy
ID: 34212881
cool, would be interesting to see what he changed exactly.
Opening the distribution lists to external would do the trick. Not sure what he means by authentication requirement
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:louise001
ID: 34212942
Hi,
Yes, that would be interesting. All along my colleague was maintaining the issue lay with SQL Server, when it seems it didn't. I began to think the issue must be with Exchange after examining all the SQL dbmail logs, but I don't have access to the Exchange box myself, and unfortunately I'm not really in a position to ask for any further information. But thanks again for your help.

Louise
0
 

Author Closing Comment

by:louise001
ID: 34237164
I've marked my own comment as a solution because it contains essential information about a setting in MS Exchange 2010 SP1.
0
 

Expert Comment

by:zriecken
ID: 39765747
I was having the same problem and our Exchange Admin when in to the distribution group in Exchange and unchecked the require authentication and it started working.

Thank you very much for the help on this one!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
how to add IIS SMTP to handle application/Scanner relays into office 365.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question