Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Wed, 18 Jun 2008 21:57:00 -0700,    group: microsoft.public.win32.programmer.directx.networking        back       


Obtaining an SMTP sever in a network   
Hi,

I want to know how to get all the SMTP or Exchange servers(IP or Hostname) 
in a  network using VC++ (Visual  Studio 2005).

Thank You
- John Paul
date: Wed, 18 Jun 2008 21:57:00 -0700   author:   John Paul

Re: Obtaining an SMTP sever in a network   
You can use AD: look for the msExchHomeServerName attribute for a given AD 
entry.

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"John Paul"  wrote in message 
news:E4102EC6-C91A-442E-BA11-B62715EC139E@microsoft.com...
> Hi,
>
> I want to know how to get all the SMTP or Exchange servers(IP or Hostname)
> in a  network using VC++ (Visual  Studio 2005).
>
> Thank You
> - John Paul
date: Wed, 18 Jun 2008 23:19:48 -0700   author:   Dmitry Streblechenko

Re: Obtaining an SMTP sever in a network   
Hi Dmitry,

Thanks for the information. The problem with this approach is AD server 
address should be known. I would like to know if by using the IP address of a 
computer in a network, is it possible to determine if it is fully functional 
SMTP server or not.

Please Advice
-John Paul

"Dmitry Streblechenko" wrote:

> You can use AD: look for the msExchHomeServerName attribute for a given AD 
> entry.
> 
> -- 
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
> -
> "John Paul"  wrote in message 
> news:E4102EC6-C91A-442E-BA11-B62715EC139E@microsoft.com...
> > Hi,
> >
> > I want to know how to get all the SMTP or Exchange servers(IP or Hostname)
> > in a  network using VC++ (Visual  Studio 2005).
> >
> > Thank You
> > - John Paul 
> 
> 
>
date: Mon, 23 Jun 2008 20:56:00 -0700   author:   John Paul

Re: Obtaining an SMTP sever in a network   
Nope, if you are on a domain, it is all easily accessible:
1. Retrieve the current user domain/name (NetWkstaUserGetInfo)
2. Create an intance of the "NameTranslate" COM object, translate the name 
from ADS_NAME_TYPE_NT4 to ADS_NAME_TYPE_1779
3. Call ADsGetObject specifying the LDAP address of the current user and 
requesting the IID_IADsUser interface
4. Call IADsUser::GetInfoEx("msExchHomeServerName")
-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"John Paul"  wrote in message 
news:6745F16C-A43D-4C79-9345-9EF761BF8B9B@microsoft.com...
> Hi Dmitry,
>
> Thanks for the information. The problem with this approach is AD server
> address should be known. I would like to know if by using the IP address 
> of a
> computer in a network, is it possible to determine if it is fully 
> functional
> SMTP server or not.
>
> Please Advice
> -John Paul
>
> "Dmitry Streblechenko" wrote:
>
>> You can use AD: look for the msExchHomeServerName attribute for a given 
>> AD
>> entry.
>>
>> -- 
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "John Paul"  wrote in message
>> news:E4102EC6-C91A-442E-BA11-B62715EC139E@microsoft.com...
>> > Hi,
>> >
>> > I want to know how to get all the SMTP or Exchange servers(IP or 
>> > Hostname)
>> > in a  network using VC++ (Visual  Studio 2005).
>> >
>> > Thank You
>> > - John Paul
>>
>>
>>
date: Mon, 23 Jun 2008 23:54:19 -0700   author:   Dmitry Streblechenko

Re: Obtaining an SMTP sever in a network   
I have some code for this...but its all mixed up...I will post it by 
EOD. It queries the exchange server names (MX records) for a given 
domain name.

Regards,
Ashutosh

John Paul wrote:
> Hi Dmitry,
> 
> Thanks for the information. The problem with this approach is AD server 
> address should be known. I would like to know if by using the IP address of a 
> computer in a network, is it possible to determine if it is fully functional 
> SMTP server or not.
> 
> Please Advice
> -John Paul
> 
> "Dmitry Streblechenko" wrote:
> 
>> You can use AD: look for the msExchHomeServerName attribute for a given AD 
>> entry.
>>
>> -- 
>> Dmitry Streblechenko (MVP)
>> http://www.dimastr.com/
>> OutlookSpy  - Outlook, CDO
>> and MAPI Developer Tool
>> -
>> "John Paul"  wrote in message 
>> news:E4102EC6-C91A-442E-BA11-B62715EC139E@microsoft.com...
>>> Hi,
>>>
>>> I want to know how to get all the SMTP or Exchange servers(IP or Hostname)
>>> in a  network using VC++ (Visual  Studio 2005).
>>>
>>> Thank You
>>> - John Paul 
>>
>>
date: Tue, 24 Jun 2008 11:21:31 +0530   author:   Ashutosh Bhawasinka

Re: Obtaining an SMTP sever in a network   
http://www.codeproject.com/KB/tips/CSMTPConnection2.aspx

-- 
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Ashutosh Bhawasinka"  wrote in message 
news:urZtc5b1IHA.5832@TK2MSFTNGP02.phx.gbl...
>I have some code for this...but its all mixed up...I will post it by EOD. 
>It queries the exchange server names (MX records) for a given domain name.
>
> Regards,
> Ashutosh
>
> John Paul wrote:
>> Hi Dmitry,
>>
>> Thanks for the information. The problem with this approach is AD server 
>> address should be known. I would like to know if by using the IP address 
>> of a computer in a network, is it possible to determine if it is fully 
>> functional SMTP server or not.
>>
>> Please Advice
>> -John Paul
>>
>> "Dmitry Streblechenko" wrote:
>>
>>> You can use AD: look for the msExchHomeServerName attribute for a given 
>>> AD entry.
>>>
>>> -- 
>>> Dmitry Streblechenko (MVP)
>>> http://www.dimastr.com/
>>> OutlookSpy  - Outlook, CDO
>>> and MAPI Developer Tool
>>> -
>>> "John Paul"  wrote in message 
>>> news:E4102EC6-C91A-442E-BA11-B62715EC139E@microsoft.com...
>>>> Hi,
>>>>
>>>> I want to know how to get all the SMTP or Exchange servers(IP or 
>>>> Hostname)
>>>> in a  network using VC++ (Visual  Studio 2005).
>>>>
>>>> Thank You
>>>> - John Paul
>>>
>>>
date: Tue, 24 Jun 2008 08:44:44 +0200   author:   Volodymyr M. Shcherbyna

Re: Obtaining an SMTP sever in a network   
=?Utf-8?B?Sm9obiBQYXVs?=  wrote in
news:6745F16C-A43D-4C79-9345-9EF761BF8B9B@microsoft.com: 
> Thanks for the information. The problem with this approach is AD
> server address should be known. I would like to know if by using the
> IP address of a computer in a network, is it possible to determine if
> it is fully functional SMTP server or not.

 If you don't have any sort of directory to work with, you could just try 
talking SMTP to that machine and see what happens.. 

 -- dan
date: Wed, 25 Jun 2008 15:33:23 -0700   author:   Dan Mitchell

Re: Obtaining an SMTP sever in a network   
Have a look at this example
http://www.naughter.com/smtp.html

this application has the ability to query the MX records for a given domain.

What it does is that if you enable MX lookup check box at the end, it 
gets the recipients domain name and then query for that domain's SMTP 
server.

For building this application read this

http://naughter.spaces.live.com/blog/cns!7692E6D72E26EAC!209.entry

follow the second method, it's very convenient than building/compiling 
the OpenSSL (it requires changing/adding lots of compiler switches)

Regards,
Ashutosh
date: Thu, 26 Jun 2008 04:34:21 +0530   author:   Ashutosh Bhawasinka

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us