hbattat / verifyEmail

PHP class that can be easily used to verify an email address and make sure it is valid and does exist on the mail server. For a supported option please visit the site
https://hbattat.com/verifyemail.html
Apache License 2.0
545 stars 170 forks source link

Yahoo seems to reject verify #14

Closed ivankurn closed 7 years ago

ivankurn commented 8 years ago

My mail server is configured correctly with DKIM and SPF, I can get a good result with gmail but when I tried at Yahoo, it always return like this:

[0] => initialized with Email: ******, Verifier Email: ******, Port: 25
[1] => Verify function was called.
[2] => Finding MX record...
[3] => Found MX: mta5.am0.yahoodns.net
[4] => Connecting to the server...
[5] => Connection to server was successful.
[6] => Starting veriffication...
[7] => Got a 220 response. Sending HELO...
[8] => Response: 220-We do not authorize the use of this system to transport unsolicited, 

[9] => Sending MAIL FROM...
[10] => Response: 220 and/or bulk e-mail.

[11] => Sending RCPT TO...
[12] => Response: 250 ****** Hello ****** [******]

[13] => Sending QUIT...
[14] => Looking for 250 response...
[15] => Not found! Email is invalid.

My mail server doesn't listed in any blacklist..

Is there any solution?

hbattat commented 8 years ago

I cannot reproduce the issue. I have tested using the values below (see the debug output)

bool(true)
Array
(
    [0] => initialized with Email: someemailthatdoesnotexist@yahoo.com, Verifier Email: sam@verifye.ml, Port: 25
    [1] => Verify function was called.
    [2] => Finding MX record...
    [3] => Found MX: mta5.am0.yahoodns.net
    [4] => Connecting to the server...
    [5] => Connection to server was successful.
    [6] => Starting veriffication...
    [7] => Got a 220 response. Sending HELO...
    [8] => Response: 250 mta1037.mail.bf1.yahoo.com

    [9] => Sending MAIL FROM...
    [10] => Response: 250 sender  ok

    [11] => Sending RCPT TO...
    [12] => Response: 250 recipient  ok

    [13] => Sending QUIT...
    [14] => Looking for 250 response...
    [15] => Found! Email is valid.
)

Yahoo is one of the servers that always returns true (valid email) for all values