Analysing Mail Logs

Hello,

I have a list of e-mails. I need to know, which email-s from that list not use. I want to do this things:

  • take email address from email list
  • find this address in mail logs
  • if, there is no record about this e-mail adress in list, show this e-mail address on screen

I did it by handle. How can i automize this process in bash?