🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages Started by Mark Jacobs Mon, 22 May 2006 12:37
Validate an email address
#616
Author: Mark Jacobs
Date: Mon, 22 May 2006 12:37
15 lines
1243 bytes
How do I go about validating both the username and domain name parts of an 
email address?

For example (*not* real addresses) :-

hilary.jenkins@grossfahrt.com is valid
henry.johnson@grossfahrt.com is invalid
hilary.jenkins@grobfahrt.com is valid

TIA,
-- 
�
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
Re: Validate an email address
#617
Author: Hans Galema
Date: Mon, 22 May 2006 16:35
11 lines
1228 bytes
Mark Jacobs wrote:

> hilary.jenkins@grossfahrt.com is valid
> henry.johnson@grossfahrt.com is invalid
> hilary.jenkins@grobfahrt.com is valid

Why would the second one be invalid ? They all have the same syntax.

Or do you mean non existing ?

Hans.
Re: Validate an email address
#618
Author: Remy Lebeau (TeamB)
Date: Mon, 22 May 2006 17:07
15 lines
1481 bytes
"Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup> wrote in
message news:4471afcd$1@newsgroups.borland.com...

> How do I go about validating both the username and
> domain name parts of an email address?

You would have to use a DNS lookup to get the MX records of the domain.  The
MX records contain the IP addresses of the domain's SMTP servers.  You would
then have to connect to each server, issuing a VRFY command to each one,
until one of them reports success.  Do note, however, that some servers
dsable the VRFY command, unfortunately.


Gambit
Re: Validate an email address
#620
Author: Mark Jacobs
Date: Mon, 22 May 2006 21:44
24 lines
2215 bytes
Remy Lebeau (TeamB) wrote:
> "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
> wrote in message news:4471afcd$1@newsgroups.borland.com...
>
>> How do I go about validating both the username and
>> domain name parts of an email address?
>
> You would have to use a DNS lookup to get the MX records of the
> domain.  The MX records contain the IP addresses of the domain's SMTP
> servers.  You would then have to connect to each server, issuing a
> VRFY command to each one, until one of them reports success.  Do
> note, however, that some servers dsable the VRFY command,
> unfortunately.

Thanks. I found out that our server does not support the VRFY command, and 
I'm wondering what proportion of SMTP servers do? I also note that some act 
as relays to *any* request from anywhere (I won't publish the host of one in 
particular  :-) ). In my experience, there is still no guaranteed way of 
validating an email address, because, just this luch-time, the DNS server 
was timing out, as our execs played a LAN shoot 'em up! That's difficult to 
program for, unless you know their "timetable" in advance. ;-)
-- 
Mark Jacobs
http://jacobsm.com 
Re: Validate an email address
#619
Author: Remy Lebeau (TeamB)
Date: Mon, 22 May 2006 21:49
27 lines
1892 bytes
"Mark Jacobs" <www.jacobsm.com/mjmsg.htm?Borland Newsgroup> wrote in message
news:447230b2$1@newsgroups.borland.com...

> I found out that our server does not support the VRFY command

Then you wil not be able to verify users on your own server.

> I'm wondering what proportion of SMTP servers do?

That number is decreasing, unfortunately.  As spamming and abusing
increasing, more and more system admins are closing down the features that
allowed them to do their malicious work, and are implementing tighter
security and validating protocols.

> I also note that some act as relays to *any* request from anywhere
> (I won't publish the host of one in particular  :-) ).

A lot of servers don't support relaying anymore, either.  It makes it harder
for recipient servers to validate the senders.

> there is still no guaranteed way of validating an email address

Nope, unfortunately.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads