how to check that the email id exist in domain without sending any mails using java

前端 未结 2 1970
梦谈多话
梦谈多话 2021-01-03 01:20

Is there any way to verify where the email id exist in domain or not?

I am having the following function: it checks only for valid domain, but i need to check for va

2条回答
  •  没有蜡笔的小新
    2021-01-03 01:49

    Sounds like you need the SMTP VRFY command:

    This command will request that the receiving SMTP server verify that a given email username is valid. The SMTP server will reply with the login name of the user. This feature can be turned off in sendmail because allowing it can be a security hole. VRFY commands can be used to probe for login names on a system. See the security section below for information about turning off this feature.

    Note the security issues above though.

提交回复
热议问题