notification if not received daily email
Hello,

I wonder if there is a way to be notified (by email) if a daily email did not arrive.

To be more precise, we receive a lot of report for our servers every day by email. We archive those in state "OK" and treat those with problems. But sometimes a server does not send us to report and we notice that after some time (most often when the customer calls to complain). That is why we are looking for a solution that permettrais checker a defined list of email, which would warn us if mail does not arrive for more than 24 hours.

We found a solution, but it is implanted in Outlook with Macros. If that does not suit us, because you have to configure at each employees and it requires that the Outlook program is still functional.

This is why I turn to you to see if there is a solution that work directly on our Exchange 2010 server.

Best regards,

Valentin Morales
September 1st, 2015 5:58am

Are you looking for an out-of-the-box solution, or are you wanting to write the code yourself?
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 8:07am

You mention "sometimes a server does not send us to report". Do you know what is the reason? Is it failed delivery or server didn't actually try to send email.

It can be some kind of PowerShell script that checks message tracking logs. If it doesn't find any specific records it can send a notification email.

September 1st, 2015 8:11am

Are you looking for an out-of-the-box solution, or are you wanting to write the code yourself?
Better if is out-of-the-box solution, but I can write a powershell code !

Do you have a solution ?
Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 8:54am

You mention "sometimes a server does not send us to report". Do you know what is the reason? Is it failed delivery or server didn't actually try to send email.

It can be some kind of PowerShell script that checks message tracking logs. If it doesn't find any specific records it can send a notification email.


It may agire several possibility.

that's exactly what I would like to, but I do not know how, do you have a solution?

September 1st, 2015 8:56am

Hi, 

I'm not aware of an out of the box solution for this but you can try this script which will search for a message with the word "subject" in the subject and where the message is from sender@company.com. It'll send you an email with a notification of whether or not the email was found in the message tracking logs in the last 24hrs. 

$startdate = [datetime]::Now.AddDays(-1)
$enddate = [datetime]::Now

$HTServers = "server1","server2"    
$messageSubject = "subject"
    foreach($HTServer in $HTServers)
        {
            $emails += Get-MessageTrackingLog -Start $Start -End $End -ResultSize Unlimited -Server $HTServer -MessageSubject $messageSubject -Sender sender@company.com
        }

    $email = $emails |  ? {$_.Source -eq "Storedriver" -and ($_.EventId -eq "Deliver" -or $_.EventId -eq "Receive")}

    if($email)
        {
            Send-MailMessage -To alerts@company.com -From server@company.com -Subject "email delivered" -SmtpServer smtp.company.com
        }
    else
        {
            Send-MailMessage -To alerts@company.com -From server@company.com -Subject "email NOT delivered" -SmtpServer smtp.company.com
        }

Let me know if that helps you out.

Thanks.

Free Windows Admin Tool Kit Click here and download it now
September 1st, 2015 1:31pm

This is exactly what I wanted. Thank you everyone for your help
September 2nd, 2015 10:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics