So today I was working on setting up DB Mail on our new dev box (MS SQL 2008), but I ran into a little snag. Emails were sending fine to my email address, but all attempts to email our developers distribution group failed to be delivered. These was no sign on SQL Server that the email wasn’t delivered, it just didn’t appear in my inbox.
I got to talking with my network admin, and he said that unauthenticated emails are blocked on distributions groups in the company (spam reasons). This got me to thinking. I had set up the profile on the server to use anonymous authentication!
I changed the settings to use the Database Engine Service Credential to authenticate the email. Still no dice.
I talked to the admin again, and he had an aha! moment. Apparently in our company distribution groups are set so that they only receive email from anyone in the all-company distribution group. He changed the settings to be From authenticated users only and From everyone.
It worked! And he tested by sending an external email to the distribution group and the email was blocked. Success! Now I can email my distribution group internally and external emails are still blocked.