Page 1 of 1

How to find the email server for an email address

Posted: Mon Sep 01, 2003 12:20 pm
by ellismatt
I'm stuck!
I need a script which can take an email address and find the pop server and appropriate port for it.

So far I've tried splitting the email to get the domain then using getmxrr(), but fsockopen() rarely works with the addresses this returns.

any ideas?

Posted: Mon Sep 01, 2003 2:32 pm
by m3rajk
well first off you don't need to wonder about the port. it's standardized in an rfc. um..... damn. i can't remember.. it's 20-25 inclusive.

ummm... 21 is ftp i think (control) 22 is telnet... ummm 23 maybe?25 is something too... i used to know 23 and 25, i sdon't know if 24 and 20 aren't anything

rfcs on this... 821,822,2045,2046,2047,2048,2049,974,976

Posted: Mon Sep 01, 2003 2:56 pm
by JAM

Posted: Mon Sep 01, 2003 3:09 pm
by m3rajk
ook. i tried stmp and ftp.
both got: Not a Number

Posted: Mon Sep 01, 2003 3:11 pm
by m3rajk
ok. try by number....
20-ftp data
21-ftp control
22-ssh
23-telnet
24-BO2k
25-smtp