Alaska Software Inc. - Direct access to DNS from XBase++ via Asinet
Username: Password:
AuthorTopic: Direct access to DNS from XBase++ via Asinet
Jose Adriano Baltieri Direct access to DNS from XBase++ via Asinet
on Fri, 25 Aug 2006 10:10:38 -0300
Hello !

I need to write a XPP application that would do this :

1) Query the DNS server using the domain name mars.com asking for the MX 
record host names.

It would get this:

     mars.com, MX, 10, phobos.mars-inc.com

2) Then, it would query the DNS system using the phobos.mars-inc.com looking 
for an A record.

It would get this:

     phobos.mars-inc.com, A, 164.109.80.89

3) Then, it would connect to port 25 of 164.109.80.89 and starts the SMTP mail 
process, which is done easily by using SMTP Client Class.



If the application had not received a MX record answer to the DNS query then 
it would have asked the DNS system for the A record of mars.com and then it 
should connect to port 25 of that host.

This is one of the reasons I really need to consider using the IP addresses of 
my DNS hosts inside the application.  Speeds up the process a lot when it does 
not pass this off to the flaky MS Win32 DNS processing system.



Why connecting to the final recipient ? Because I need to detect successfull 
delivery of the message. If so, I must update my database with this status.


Any ideas on how to do it ?
Thomas Braun
Re: Direct access to DNS from XBase++ via Asinet
on Mon, 28 Aug 2006 12:09:31 +0200
Jose Adriano Baltieri wrote:

> Why connecting to the final recipient ? Because I need to detect successfull 
> delivery of the message. If so, I must update my database with this status.
> 
> Any ideas on how to do it ?

Jose,

maybe you should consider taking a look at the marshallsoft smtp/pop
library for Xbase++ - this will give you very fine control about the whole
process of sending email:

http://www.marshallsoft.com/see4xb.htm

HTH & regards
Thomas
Jose Adriano Baltieri Re: Direct access to DNS from XBase++ via Asinet
on Mon, 28 Aug 2006 08:11:20 -0300
Thomas Braun wrote:
> Jose,
> 
> maybe you should consider taking a look at the marshallsoft smtp/pop
> library for Xbase++ - this will give you very fine control about the whole
> process of sending email:
> 
> http://www.marshallsoft.com/see4xb.htm
> 
> HTH & regards
> Thomas

Thomas:

Thanks for your help. As a matter of fact, that product is way more than what 
   I need.

Even so, I'm asking them about how do they deliver the messages. Cause I need 
something that is "end-to-end" that is, that delivers the message directly 
onto "Mars" (from my example) and not to my local smtp server so that it then 
delivers it to "Mars".

Cause I need to know if "someone" is on "Mars" in order to update my database 
with a successfull delivery status.

Thanks again !
Thomas Braun
Re: Direct access to DNS from XBase++ via Asinet
on Mon, 28 Aug 2006 15:15:01 +0200
Jose Adriano Baltieri wrote:

> Thanks for your help. As a matter of fact, that product is way more than what 
>    I need.

Very good - better than the other way around 

> Even so, I'm asking them about how do they deliver the messages. Cause I need 
> something that is "end-to-end" that is, that delivers the message directly 
> onto "Mars" (from my example) and not to my local smtp server so that it then 
> delivers it to "Mars".

The answer is yes - this is no problem, you are able to connect directly to
the target SMTP server and react to every possible error situation.

> Cause I need to know if "someone" is on "Mars" in order to update my database 
> with a successfull delivery status.

Even if the SMTP server accepts the message, it is possible that it gets
consumed by filter mechanisms inside the system...

But I think the library itself and the time spent to evaluate it by using
the eval version is worth every cent and second ... I'm almost 100% sure
that you will get a result much faster than trying to create a solution by
yourself.

Thomas
Jose Adriano Baltieri Re: Direct access to DNS from XBase++ via Asinet
on Mon, 28 Aug 2006 10:33:40 -0300
Thomas Braun wrote:
> Jose Adriano Baltieri wrote:
> 
>> Thanks for your help. As a matter of fact, that product is way more than what 
>>    I need.
> 
> Very good - better than the other way around 

Yes !

>> Even so, I'm asking them about how do they deliver the messages. Cause I need 
>> something that is "end-to-end" that is, that delivers the message directly 
>> onto "Mars" (from my example) and not to my local smtp server so that it then 
>> delivers it to "Mars".
> 
> The answer is yes - this is no problem, you are able to connect directly to
> the target SMTP server and react to every possible error situation.

Excelent !


>> Cause I need to know if "someone" is on "Mars" in order to update my database 
>> with a successfull delivery status.
> 
> Even if the SMTP server accepts the message, it is possible that it gets
> consumed by filter mechanisms inside the system...

But this is ANOTHER problem. The message was delivered, indeed. That's enough 
4 me.

> But I think the library itself and the time spent to evaluate it by using
> the eval version is worth every cent and second ... I'm almost 100% sure
> that you will get a result much faster than trying to create a solution by
> yourself.

There's a problem : it will be very difficult to approve it's purchasing. 
Cause our university is going through a huge financial crisis , with blue 
tickets falling from the sky (none on my head so far).

So, I wont be the boring one to ask to purchase *anything*....

But, let us see how things will go on. Maybe they can offer a discount for 
educational purposes (although it will be used under the administrative area 
of the University).

Thanks again !

BTW, where are U talking from ? Ah, Deutchland, of course. Forget it.

Auf wiedersehn !