I have a list of email address that I need to verify. I am looking for someone to make a simple bash script that will get the MX record of the domain and then use HELO command to verify if the email address is valid. I have a VPS so I would like to be able to run this from the command line.
I have attached an example.
Input: 1 file of email address, 1 email address per line
Output: All the email addresses that are valid