Unix Technical Forum

XP_SENDMAIL problem after windows trust with exchange server established

This is a discussion on XP_SENDMAIL problem after windows trust with exchange server established within the SQL Server forums, part of the Microsoft SQL Server category; --> After a trust with exchange server established the xp_SendMail gives the following error: xp_sendmail: failed with mail error 0x80070005 ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 07:24 AM
Eric Timely
 
Posts: n/a
Default XP_SENDMAIL problem after windows trust with exchange server established

After a trust with exchange server established the xp_SendMail
gives the following error:

xp_sendmail: failed with mail error 0x80070005

Prior to the trust everything worked fine.

I have tried the following:
1)Checking SQL and SQLAgents accounts all match up with default mail
profile.
2)Confirmed I could send from outlook logged in under the account.
3)xp_stopmail and xp_startmail
4)restarted the SQL Agent
5)Confirmed outlook settings as defined in:
kb153159 -
http://www.sqlnewsgroups.net/link.as.../153159/EN-US/

I also tried a pop3 account just to test, but no luck.

I think what is happening is now that the trust is established when SQL
makes a mail contection it thinks it is user admin@<otherdomain> rather
than admin@<normaldomain> and therefore thinks that agent account is
different than the mail account.

Please help if you can.

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 07:26 AM
Greg D. Moore \(Strider\)
 
Posts: n/a
Default Re: XP_SENDMAIL problem after windows trust with exchange server established


"Eric Timely" <enow@consultant.com> wrote in message
news:1115654083.368422.326690@o13g2000cwo.googlegr oups.com...
> After a trust with exchange server established the xp_SendMail
> gives the following error:
>
> xp_sendmail: failed with mail error 0x80070005
>
> Prior to the trust everything worked fine.
>
> I have tried the following:
> 1)Checking SQL and SQLAgents accounts all match up with default mail
> profile.
> 2)Confirmed I could send from outlook logged in under the account.
> 3)xp_stopmail and xp_startmail
> 4)restarted the SQL Agent
> 5)Confirmed outlook settings as defined in:
> kb153159 -
>

http://www.sqlnewsgroups.net/link.as.../153159/EN-US/
>
> I also tried a pop3 account just to test, but no luck.
>
> I think what is happening is now that the trust is established when SQL
> makes a mail contection it thinks it is user admin@<otherdomain> rather
> than admin@<normaldomain> and therefore thinks that agent account is
> different than the mail account.
>


That's probably it.

One tip I've found helpful is to make sure your Outlook agent (or whatever
MAPI email aganit you're using) has ALL its mailboxes (sent, deleted,
in,etc)EMPTY

BTW, if you're simply SENDING email, the most bulletproof thing I've found
is to setup the IIS SMTP mail server on the same physical box as SQL Server,
lock it down so only that box can send email through it and point your MAPI
client to the SMTP server for sending email.

Since I've done this, I've eliminated the problem of XP_sendmail locking up
when it tries to send mail and the MAPI client has hung because of a timeout
waiting for the server it's sending too.


> Please help if you can.
>
> Thanks.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 07:26 AM
Eric Timely
 
Posts: n/a
Default Re: XP_SENDMAIL problem after windows trust with exchange server established

Thanks.
Eventually I deleted the account on the remote domain. Recreated it and
added permissions (mailbox and security "send as") and everything
worked.

We were trying to stay away from an SMTP/POP account for stability and
security reasons.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com