I am using command like sendmail -bv example@othesite.com
to verify some email address to confirm the address is valid or not before sending actual email to people.
it works for most sites I tested. But sometimes, I am using the sendmail
for some website that will give me all pass no matter what the address name I put for
the same site.
For example:
sendmail -bv yyyyyy@othersite.com
where yyyyyy
can be anything that also passes the command and always reported out “yyyyyy@othersite.com
verified”. It seems correct but I think that should be something wrong behind. Why ?
Other command checking mail address on linux will be reliable and available, how and what command does this?
Advertisement
Answer
The following command and link have solved the issue.
-nslookup command help to find out mail server address for examplesite.com
nslookup -type=mx examplesite.com;
–https://superuser.com/questions/224015/how-to-check-if-email-address-does-exist
The answer instruction in the link help to verfiy the email address completely