I want to verify whether mail box exists for a email with SMTP. I am able to do following things :
- Get MX records from domain
- Connect to host via SMTP
Then I execute following commands :
HELO somedomain.com
MAIL FROM:<verify@somedomain.com>
RCPT TO:<someone@yahoo.com>
Above commands give me 250
response for invalid emails on my local machine. But when I verify the email on some online service I get 554
response (which is correct). What is the reason behind this weird behavior (invalid results on local machine) ?