bindashsandeep / php-smtp-email-validation

Automatically exported from code.google.com/p/php-smtp-email-validation
0 stars 0 forks source link

SMTP SSL / TLS issue? #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try validating an address whose mailservers require SSL/TLS

It looks like if the SMTP server is expecting STARTTLS the script just bombs 
out because it doesn't get the initial header. Debug output (e.g. for a valid 
@sun.ac.za address):

---
Array
(
    [mail2.sun.ac.za] => 10
    [mail1.sun.ac.za] => 10
    [mail3.sun.ac.za] => 10
    [sun.ac.za] => 0
)

try mail2.sun.ac.za:25

<<<

---

Telnetting to the top server on port 25 does not return any headers, and so I 
presume it's waiting for the client to initiate SSL/TLS.

Is it easy to change the script to detect this and use SSL/TLS on servers that 
seem to require it?

Original issue reported on code.google.com by crund...@gmail.com on 14 May 2012 at 10:54