Solved

SQL Server Sendmail Task failing with "User unknown"

Posted on 2011-03-14
4
1,544 Views
Last Modified: 2012-05-11
Trying to send to an individual user using the SSIS Sendmail task works OK.

Trying to send to a distribution group fails with the following:

SSIS package "Package2.dtsx" starting.
[b]Error: 0xC002F304 at Send Mail Task, Send Mail Task: An error occurred with the following error message: "Mailbox unavailable. The server response was: 5.1.1 User unknown".[/b]
Task failed: Send Mail Task
Warning: 0x80019002 at Package2: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package2.dtsx" finished: Failure.

Open in new window


Any idea?

I have tried different distribution groups, same effect. Strange that it works for individual users, but not distribution groups?
0
Comment
Question by:mirde
[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
  • 2
  • 2
4 Comments
 
LVL 28

Expert Comment

by:Ryan McCauley
ID: 35132336
Make sure you're using the email address associated with that distribution group, not just the group name. The SMTP Server is only able to forward addresses - IT CAN NOT DO ANY RESOLUTION AT ALL. What you're probably expecting it to do (resolve "My List Name" to "SomeInternetListAddress@YourDomain.com") is something Outlook does for you, behind the scenes. It resolves the name to an address and then forwards the email properly.

Check to get the address for your group and email it to that address - that should do what you need.
0
 

Author Comment

by:mirde
ID: 35133231
I verified that part as well, I am giving it the full SMTP email (domedist@domain.com), and that is where it is failing. The Exchange server should be able to take that and dsitribute to the members of "somedist@domain.com",

I know how Outlook works, and I am definitely not just entering in the name and expecting it to be resolve to an email which is why I am stumped. It works fine when sending from Outlook as well.

What throws me off is that, users@domain.com work, but distributions@domain.com do not seem to be.

Maybe I am missing something, going to try a few other DLs that have been here for a long time.
0
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 125 total points
ID: 35135372
I didn't mean to assume that you didn't understand group name resolution - I've just seen that trip people up constantly, so it's always worth mentioning.

If you pull the group up in outlook and check out the contact card, is there an email address on it? Can you confirm that an external email (send from outside the company) that's directed to that email address (not the group name) works properly as well? Maybe the relay server you're using isn't configured to resolve those groups, or the internal users can email the group whereas anonymous external mail isn't allowed to reach them. That would be odd, but not unheard of.
0
 

Author Closing Comment

by:mirde
ID: 35243412
Our Exchange Administrator figured out the issue and adjusted back-end settings on the mail server; flow now works.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video discusses moving either the default database or any database to a new volume.

626 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