English Forums > Tutorials and FAQs
Script to send emails for updates
fabian:
You could also use a public git repository
bartjsmit:
Also published on https://github.com/bartsmit/opnsense-update-email
ObecalpEffect, I've credited you with your forum handle.
Bart...
TheLatestWire:
Hi Bart,
Sorry to be a pain, but I noticed that the latest version of the script still isn't working with SMTP on my OpenBSD server. SMTP on OpenBSD still complains "Message is not RFC 2822 compliant".
I was however able to get it working by replacing this line:
message += formatdate(localtime=True) + '\r\n'
With this line:
message += 'Date: = formatdate(localtime=True)'
*Please also note that it doesn't work when the line is appended with + '\r\n'
Thanks,
Obecalp.
bartjsmit:
Thanks Obecalp,
I will do some regression testing and post an updated script.
Bart...
tessus:
The JSON response from OPNsense looks a bit different now. I have updated the script accordingly and made it python3 compatible.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version