kakshay21 / verify_email

verify-email can verify any email address by efficiently checking the domain name and pinging the handler to verify its existence.
https://pypi.org/project/verify-email/
MIT License
133 stars 32 forks source link

Server does not permit verify user #47

Closed roberthandiwijaya closed 1 year ago

roberthandiwijaya commented 2 years ago

2022-10-21 15:17:24,753 - verify_email - DEBUG - Server does not permit verify user, host=gmail-smtp-in.l.google.com, priority=5, ttl=-1 disconnected.

Problem when using print(verify_email('test@gmail.com', debug=True))

roberthandiwijaya commented 2 years ago

i think it is because the verify_email on pypi version still on 2.4.3

kakshay21 commented 2 years ago

I think this message you're getting from Google smtp server. They have mechanism these days which can blacklist certain requests from making multiple verify requests. I don't think it's related to 2.4.3 version. You could check by installing pip3 install verify-email==2.4.4.dev0

konrad888 commented 1 year ago
from verify_email import verify_email

def is_valid_email(address):
    return verify_email(address, debug=True)

print(is_valid_email("some_email@gmail.com"))

2022-12-17 17:07:05,854 - verify_email - DEBUG - host=alt2.gmail-smtp-in.l.google.com, priority=20, ttl=-1 answer: 550 - b"5.1.1 The email account that you tried to reach does not exist. Please try\n5.1.1 double-checking the recipient's email address for typos or\n5.1.1 unnecessary spaces. Learn more at\n5.1.1 https://support.google.com/mail/?p=NoSuchUser b3-20020a2ebc03000000b0027e0c9a6270si2843700ljf.297 - gsmtp"

2022-12-17 17:07:05,854 - verify_email - DEBUG - host=alt2.gmail-smtp-in.l.google.com, priority=20, ttl=-1 answer: 550 - b"5.1.1 The email account that you tried to reach does not exist. Please try\n5.1.1 double-checking the recipient's email address for typos or\n5.1.1 unnecessary spaces. Learn more at\n5.1.1 https://support.google.com/mail/?p=NoSuchUser b3-20020a2ebc03000000b0027e0c9a6270si2843700ljf.297 - gsmtp"

False

kakshay21 commented 1 year ago

@konrad888 isn't the expected result? Feel free to reopen if you think it's a different issue.