Find a missing email ?
I am testing Zimbra on HA using DRBD/Pacemaker. This is irrelevant information, you don't need to have experience with those to answer my question.
I am testing to see how many emails get lost during our failover from Server A to Server B.
I have a sendmail script on a third CentOS machine that is sending constant emails to my zimbra server, 1 per second to a maximum of 1300 emails. When it hits the 1300 mark, it will stop. These emails send incrementally, so for example
EMAIL MESSAGE 1
EMAIL MESSAGE 2
EMAIL MESSAGE 3
When the failover has succeeded and I open up the Inbox, I sometimes have 1300 emails, sometimes I have 1299(-1) and sometimes I have 1298(-2).
Is there any way I would be able to do some "for" loop to loop through all the messages in the inbox and somehow detect when the next message was not there? There are too many for me to go through each individually. I really need to find out specifically which email is not in the inbox..but 1300 emails makes it hard to pinpoint.
Thanks for any help..