sendmail new mail notification to external address only with the first unread email

Posted by elcodedocle on Server Fault See other posts from Server Fault or by elcodedocle
Published on 2012-04-11T19:14:30Z Indexed on 2012/04/12 17:32 UTC
Read the original article Hit count: 230

Filed under:
|

I'm running a webserver with a contact form which triggers a php script to sendmail the message to a local account on the server, and I want to be notified on my regular email account when I got new messages.

I could have a notification per email or just send the emails directly to my account but that'd be too much: I just want a "you have new mail" notification sent to my email every time the inbox turns from 0 unread messages to 1.

Google is burying me in sendmail documentation, and still can't find anything about it.

Any ideas?

© Server Fault or respective owner

Related posts about sendmail

Related posts about notification