473,763 Members | 6,401 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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@<otherdom ain> rather
than admin@<normaldo main> and therefore thinks that agent account is
different than the mail account.

Please help if you can.

Thanks.

Jul 23 '05 #1
2 3150

"Eric Timely" <en**@consultan t.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.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@<otherdom ain> rather
than admin@<normaldo main> 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.

Jul 23 '05 #2
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.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1297
by: Jeff Cochran | last post by:
Does anyone have a code snippet or example on using the xp_sendmail SQL procedure from an ASP page (VBscript)? I have no problem with the stored procedure from a query and I think my problem is getting the parameters passed to the procedure correctly, or just in using stored procedures from ASP. I can execute this SQL from Query Analyzer fine: xp_sendmail "testuser", "Hello World!"
2
23651
by: Jürgen Hetzel | last post by:
Hello! My environment is: Win 2000 Server, MS SQL-Server 2000 (SP2) and MS ExchangeServer 5.5 the two following TransactSQL-codepieces show different results: 1. with attachment
6
2472
by: Nathan Griffiths | last post by:
I have been testing our SQL Mail setup in SQL Server 2000 (sp3a) and have found that when I attach results as a file, every other character is a control character which causes each real character output on a separate line. I have no idea why this is happenening, I've never seen it before. The code looks like this; EXEC master.dbo.xp_sendmail @recipients = '<email address>', @dbuse = 'TestDB',
1
1664
by: mike | last post by:
Using the Query Analyzer, I issued the statement "EXEC xp_sendmail 'anyone@hotmail.com, 'Test.'" and received 'email sent' confirmation. But, my email was never received. I used the same statement to send mail to a Yahoo account and it was received. Is there a way to be able to send email using SQL xp_sendmail to a Hotmail account?
7
1790
by: Tom | last post by:
hi, I'm trying to write a multi client chat app using remoting. however atm, I'm stuck when a userA tries to send userB a msg... say there're userA, userB and userC. on the server side how do I know which user is userB when I recieve message from userB ? what should the process be. I know I need to store a reference of the clients somehow on the server. but how can this be done ?
7
2274
by: Pavils Jurjans | last post by:
Hello, I wanted to get some light in the subject. As I develop ASP.NET applications, it's necessary to understand how exactly the server- communication happens. It seems like initially application is "sleeping", and it is not loaded in the memory. Then, after very first request to the app, it is compiled (aspx files), loaded into memory, and executed. Then, a separate thread is issued to serve my page request, and it takes care for me...
7
1271
by: placid | last post by:
Hi all, I was going to write this script for a friend that notifies him via logging onto his Gmail account and sending him an email to his work email about some events occurring in the execution of the script. If you enter your password into a script as input how can someone trust the programmer that he will not send a email to himself containing his password? Assuming this person does not know anything about programming and this person...
1
6898
by: Ben Hanson | last post by:
I've scoured Google searching for an answer that seems like it should be easy but apparently isn't...when I open SSMS to connect to a SQL 2005 database and choose Windows authentication, it greys out the User Name box...problem is, the server I need to connect to is in another domain...how on earth are you supposed to specify a different Windows user name to connect with other than the one currently logged into the machine? -Ben
1
3888
by: Stephen2 | last post by:
I'm trying to send an email using master..xp_sendmail with parms and the default Outlook profile. I can successfully test the profile on my own computer and on the server. I'm running using Windows authentication and have given myself full admin rights in MSSQL. Which account is mssql trying to send the email from? Is it the servers or my local clients?
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9997
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8821
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.