473,573 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script to determine valid email address by querying server

Hi, I'm looking for a reliable script that would connect to a host and
somehow determine whether an email address is valid.

since getmxrr() only gets the mx records..

Links/pointers ?

Mike

Jul 17 '05 #1
16 8085
Hi, I'm looking for a reliable script that would connect to a host and
somehow determine whether an email address is valid.

since getmxrr() only gets the mx records..

Links/pointers ?

Mike


I don't think there is such a function/script.
Otherwise mail harvesters would have used it a long time ago.

If someone tries to access my domain and checks an email address I probably
would not reply...

Of course, I could be wrong.

Simon.
Jul 17 '05 #2
Such a function exist. I have seen it somewhere.
Some sites use this to check if the mail address is valid or not.
But as you said a mail server can always deny the request.
Guess most reply appropriately.
Arun

Jul 17 '05 #3

Arun wrote:
Such a function exist. I have seen it somewhere.
Some sites use this to check if the mail address is valid or not.
But as you said a mail server can always deny the request.
Guess most reply appropriately.
Arun


You may be talking about finger, which does this, but very few servers
are still running finger...it runs on TCP/IP port 79...to find out if a
particular server is running finger, type this at a unix/linux command
line:
telnet whatever.com 79
or type an IP address instead of whatever.com. But I doubt you will
find any servers that still run finger, for security reasons.

Jul 17 '05 #4
Such a function exist. I have seen it somewhere.
Some sites use this to check if the mail address is valid or not.
But as you said a mail server can always deny the request.
Guess most reply appropriately.
Arun


Are you sure you are not talking about a regex to check if a email address
is a _possible_ valid address?

Like check for at least one '@' and at least one '.' after the '@' and so
on?
That's the only ones I know of that would work.

Simon
Jul 17 '05 #5

"pdt256" <pd****@gmail.c om> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
http://www.regexlib.com/


Er..thanks but why the link?
I didn't ask for it.

Maybe you are confusing me for the op.

Simon
Jul 17 '05 #7
siliconmike wrote:
Hi, I'm looking for a reliable script that would connect to a host and
somehow determine whether an email address is valid.

since getmxrr() only gets the mx records..

Links/pointers ?

Mike

http://joemarini.com/tutorials/tutor...mainexists.php
Jul 17 '05 #8
In theory, an SMTP server could respond to a RCPT TO request with a
error message if the account doesn't exist. I don't think that's how
most servers behave though.

Jul 17 '05 #9
siliconmike (si*********@ya hoo.com) wrote:
: Hi, I'm looking for a reliable script that would connect to a host and
: somehow determine whether an email address is valid.

: since getmxrr() only gets the mx records..

: Links/pointers ?
There are routines to test if an address has the correct _syntax_ to be
potentially usable, so it is worth while to look for that. The routines
should be checking the syntax based on what RFC 822 says is valid, so
those are the kinds of terms you need for your search, but sorry, I have
no links for php. (Perl e.g. has Data::Validate: :Email, and possibly
others).

As for confirming an address is actually in use by someone, unless you are
on a private lan and building a private, internal, application, then there
is no way to confirm the address is valid except by sending a confirmation
request to the address and asking them to respond.

In general you cannot assume any particular server will provide much
useful information when you contact them.

Invalid addresses are happily (well not happily) accepted by many servers
to prevent you learning what addresses are valid. Sometime all such
invalid addresses are even used as spam traps (i.e. if more than one mail
per day/week/hour to an invalid address then your ip is blocked or
bit-bucketted for a while).

Even valid addresses will, on some some systems, sometimes be forced to
cause an error after the data is received to prevent you learning they
were valid.

--

This space not for rent.
Jul 17 '05 #10

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

Similar topics

2
3318
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug. Issue#1: I get 2 copies of the form that gets submitted each time. Issue#2: The header does not display the "FROM" information in Outlook, but...
0
4517
by: John Silver | last post by:
I have a perl script running on machine A, a web server. A visitor completes certain pieces of data and these are compiled into two emails, one addressed to the visitor and copied to the site owner, the other addressed to the webmaster and including cookie and timing data for debugging. The email is sent by machine B which is the email...
16
3985
by: Fox | last post by:
I merged and modified these script which work perfectly fine as long as I use server.execute to access the VBS part (which is itself in another ASP file). When these I use a session variable to pass an email address from the database. I have had timeout problems and buffer problems and as I understand it, maybe a problem with changing the...
6
1866
by: S P Arif Sahari Wibowo | last post by:
Hi! I am thinking to have a client-side script doing processing on file downloading, basically the script will process a downloaded file from the server before it received by the user. For example, the weboage will have a link to download file A, but the one stored in the server is not exactly file A, but some transformation of it. If the...
4
2150
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is broken in Firefox 1.5.0.1 on OS X. What happens with the Scriptaculous library is this In the html document the author only has to include one...
5
5185
by: Martin Larsen | last post by:
Hi, I have a script for a CMS that preloads an image by setting the SRC attribute. The problem is that the location of the image as seens from the final HTML page depends on whether the CMS has search engine friendly (SEF) url's urned on. If it is not on, the location is just the normal absolute location of the image, and it is then easy...
4
3867
by: thanos | last post by:
Hello, I'm relatively new to PHP so I found this free contact us script on the net that i was going to use for my Contact Us php page. Its works pretty good except for error handling. I was wondering if any can hlep me understand what is missing. I've posted the php files below below. Contact.php calls the sendemail.php script. This...
6
3399
by: BA | last post by:
Hi Everyone, I have an application that sits behind a server farm, the application needs to pass its NLB IP address in the message that it sends to another service. From C# code, how can I determine the IP address of the network load balanced machine that the message is generated from? So, in essence, I have server1, server2 and server3...
4
1361
by: Ima Lozer | last post by:
I am in the process of writing an app for one of my sites that will allow guests to send e-cards to other folks. The process is fairly simple. First the sender selects a card graphic via a series of radio buttons. Then he enters his and the recipient's name and email address. Next he enters a message to the sender and clicks a button to send...
0
7679
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7992
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8190
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...
1
7756
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...
0
8048
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5571
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...
0
3722
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...
0
3722
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2183
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.