mycontroller-v1-legacy icon indicating copy to clipboard operation
mycontroller-v1-legacy copied to clipboard

On email sending failure specify how long to retry how often

Open RURon opened this issue 8 years ago • 2 comments

I set up a trigger to send me an email when a node's battery level drops below a certain level. This works nicely thanks to your script.

Unfortunately if the SMTP server is not working that is configured to be used to send the mail, I wonder how mycontroller actually behaves then. Currently I see lot's of exceptions in the server log around the time the trigger started the email script, but obiously there is no longer retrying to resend that mail.

It would be great if one could specify to retry for example every 15 minutes upto 24 hours (or so) to send a failed mail again...

Over here I sometimes switch off my internet router at night and then mycontroller obviously can't connect to any SMTP server...

RURon avatar Jan 20 '17 08:01 RURon

Come to think of it I could of course run a local SMTP server on the Raspberry and let it handle the mail forwarding to the internet as well...

RURon avatar Jan 20 '17 08:01 RURon

@RURon Yes, this will be useful. I will try to address this by creating a queue for emails.

jkandasa avatar Jan 20 '17 10:01 jkandasa