Sunday, February 19, 2012

Cannot setup SQL Mail on SBS 2003

I have SQL Server 2000 setup on a SBS 2003 Premium server, with Exchange
2003.
I set up SQL Mail to use the only profile available, which is "ExchangeAdmin
SBS (0x codes following)".
When I try a simple xp_sendmail to an existing email address, I get the
following:
xp_sendmail: failed with mail error 0x80004005
When I search Microsoft.com, or all of the Web, I see that there is a
workaround specified by Microsoft:
http://support.microsoft.com/kb/293422/EN-US/
The problem is that I cannot "Locate the user object directly associated
with the Exchange 2000 mailbox". First of, I have Exchange 2003, not 2000.
Second, I cannot find the specified "ExchangeAdmin SBS ..." account.
I also tried installing Outlook, creating a profile with a user called
"SQLEmailAccount", so that I could locate it in AD and apply the workaround,
but when I open Enterprise manager, and try to select this email profile for
SQL Mail (as described at the top of this email), it simply does not
appear...
It seems that I can nonetheless use a workaround, as I found a few SPs which
create a CDO object (a bit like what you would do in ASP) and talk to it,
but I'd like to be able to use xp_sendmail in order to allow contractors to
use standard programming techniques.
Thanks a lot in advance for your help!Nicolas Verhaeghe wrote:
>I have SQL Server 2000 setup on a SBS 2003 Premium server, with Exchange
>2003.
>I set up SQL Mail to use the only profile available, which is
>"ExchangeAdmin SBS (0x codes following)".
Hmmm, not sure where that's from, since SBS normally has no MAPI profiles
at all by default.
Have you configured SQL Server and all associated services to run under a
user account, rather than LocalSystem (the default)?
>When I try a simple xp_sendmail to an existing email address, I get the
>following:
>xp_sendmail: failed with mail error 0x80004005
>When I search Microsoft.com, or all of the Web, I see that there is a
>workaround specified by Microsoft:
>http://support.microsoft.com/kb/293422/EN-US/
>The problem is that I cannot "Locate the user object directly associated
>with the Exchange 2000 mailbox". First of, I have Exchange 2003, not 2000.
>Second, I cannot find the specified "ExchangeAdmin SBS ..." account.
It's not an account, it's a MAPI profile belonging to a user account. MAPI
profiles belong to user accounts, and can only be accessed and manipulated
by the user account they belong to.
>I also tried installing Outlook, creating a profile with a user called
>"SQLEmailAccount", so that I could locate it in AD and apply the
>workaround, but when I open Enterprise manager, and try to select this
>email profile for SQL Mail (as described at the top of this email), it
>simply does not appear...
AARGH. Get Outlook *OFF* your SBS as fast as possible. Outlook is *not*
supported for installation on an Exchange Server (like SBS).
>It seems that I can nonetheless use a workaround, as I found a few SPs
>which create a CDO object (a bit like what you would do in ASP) and talk
>to it, but I'd like to be able to use xp_sendmail in order to allow
>contractors to use standard programming techniques.
The KB articles you need are:
304967 How to Configure SQL Server to Send Email on SBS 2000
http://support.microsoft.com/?id=304967
and
228736 SAMPLE Profman2.exe - MAPI Profile Manager v2.0
http://support.microsoft.com/?id=228736
While the first article says SBS2000, it applies equally to SBS2003. But
creating the MAPI profile is much easier to do with PROFMAN (from the
second KB) than all the registry hacking the first article suggests you do.
Steve Foster [SBS MVP]
---
MVPs do not work for Microsoft. Please reply only to the newsgroups.

No comments:

Post a Comment