|
Home > Archive > IIS and SMTP > December 2004 > need help with SMTP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
need help with SMTP
|
|
|
| Hi folks! :O)
I'm trying to write some code (in vb.net) that will test if an email address
exists. I found that by implementing the SMTP by myself I might be able to
do the maximum one can do to test for an email address... but since SMTP
stuff is brand new to me i have a couple of question...
here's a similar context to the one I work with :
my input data :
-----------------------------------------
SMTP Server : relais.domainname2.gov
From : address1@domainname2.ca
To : address1@domainname2.ca
("From" and "To" really are the same)
-----------------------------------------
SMTP commands (each line ends with a line feed and a carriage return):
-----------------------------------------
S:HELO relais.domainname2.gov
R:220
S:VRFY address1@domainname2.ca
R:250
S:VRFY address1@domainname2.ca
R:252
S:QUIT
R:221
-----------------------------------------
My first question :
Why do I get a 252 error on the second call to VRFY ? Since the address is
the same the answer should be the same too shouldn't it?
My second question :
Let's suppose the SMTP server configuration supports VRFY properly (i'm
aware about a couple of spamming prevention tricks that could make VRFY
completely useless)... would this command works on any address or only on
those who are define in the same domain as the SMTP Server ?
Now sorry if some words i've used are out of context or incorrect (i'm new
to all this).. ;O)
Thanks a lot
--
Best Regards
Yanick Lefebvre
| |
|
| hmm.. i didn't pay much attention to the message that was folllowing the
error code (shame on me!!)... my program was only reading the first three
byte returned by the SMTP ignoring the description that was coming with it.
it says :
252 2.1.5 Cannot VRFY user, but will take message for
<address1@domainname2.ca>
so i guess the command worked but the SMTP server is configured to prevent
flooding caused by spammers or something..
thanks anyway! :O)
--
Best Regards
Yanick Lefebvre
|
|
|
|
|