Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Testing validity of email addresses

 [1/6] from: tim:johnsons-web at: 3-May-2003 11:08


The following rebol code:
>> email-address: "[tim--johnsons-web--com]"
== "[tim--johnsons-web--com]"
>> read join dns:// next find email-address "@"
== 12.24.138.43 confirms that the domain component of my email address is 'valid'. and read dns://... will return 'none for a non-existent domain. Does anyone know if there are domain servers configured so that a 'none would be returned from this test even if they were a valid domain? -- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com

 [2/6] from: Al::Bri::xtra::co::nz at: 4-May-2003 11:44


Tim wrote:
> >> read join dns:// next find email-address "@"
This might be helpful to you:
>> email-address: [tim--johnsons-web--com]
== [tim--johnsons-web--com]
>> email-address/host
== johnsons-web.com
>> email-address/user
== tim
>> read join dns:// email-address/host
== 12.24.138.43 Andrew Martin ICQ: 26227169 http://Valley.WebPictureBook.com/

 [3/6] from: g:santilli:tiscalinet:it at: 4-May-2003 9:24


Hi Tim, On Saturday, May 3, 2003, 9:08:10 PM, you wrote: TJ> Does anyone know if there are domain servers TJ> configured so that a 'none would be returned TJ> from this test even if they were a valid domain? That is possible. Email domain names are resolved using the MX records in DNS servers, not the A records that REBOL queries. So, not only using that code you would probably get an IP address that is not that of the real mail server, but you could as well find an email domain that doesn't have an A record. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [4/6] from: mat:plothatching at: 4-May-2003 13:54


Hello Gabriele, GS> records in DNS servers, not the A records that REBOL queries. So, GS> not only using that code you would probably get an IP address that GS> is not that of the real mail server, but you could as well find an GS> email domain that doesn't have an A record. Which is illegal though, isn't it? Regards, Mat Bettinson - +44-(0)20-83401514.

 [5/6] from: tim:johnsons-web at: 4-May-2003 8:08


* Andrew Martin <[Al--Bri--xtra--co--nz]> [030503 16:22]:
> Tim wrote: > > >> read join dns:// next find email-address "@"
<<quoted lines omitted: 4>>
> == johnsons-web.com > >> email-address/user
I'll be darned! Where is the documenation on that configuration? Thanks Andrew :-)
> == tim > >> read join dns:// email-address/host
<<quoted lines omitted: 6>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.alaska-internet-solutions.com http://www.johnsons-web.com

 [6/6] from: g:santilli:tiscalinet:it at: 4-May-2003 19:54


Hi Mat, On Sunday, May 4, 2003, 2:54:18 PM, you wrote: MB> Which is illegal though, isn't it? Hmm, AFAIK not really, as long as the destination host name has an A record; i.e. if I do something like: somehost.domain.com MX otherhost.domain.com otherhost.domain.com A 123.123.123.123 somehost.domain.com ends up having no A record, but is still a valid email domain name AFAIK. Feel free to correct me, as I'm not a DNS expert. :) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted