You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for taking on a modernisation of this tool!
I looked into using it, but I'm not too excited about duplicating my SMTP credentials in both the TrueNAS config and the YAML config for autobackup. It would probably not be a particularly big change to your code to take the formatted message and pipe it into a /usr/sbin/sendmail subprocess (somewhat like how the original version just pipes to mail). Have you considered that? Would you be open to a patch?
The text was updated successfully, but these errors were encountered:
Hi @0xabu
Thanks for the interest. I have tried to use the linux mail process from the original version but gave up trying to get it to work. I really don't know enough python or bash and ChatGPT was no help either ;-)
If you know how to, I would welcome a PR. Ideally it would support both options.
I have looked in my notes and have found the reason why sendmail did not work. It was possible to use sendmail as root from within a python script, but it was not possible from inside a venv, from python or even from bash. If you activate the venv and execute (venv) # echo "script started" | mail -s "test" "root" it will return an error. If you know how to get it to work, please let me know.
Thanks for taking on a modernisation of this tool!
I looked into using it, but I'm not too excited about duplicating my SMTP credentials in both the TrueNAS config and the YAML config for autobackup. It would probably not be a particularly big change to your code to take the formatted message and pipe it into a
/usr/sbin/sendmail
subprocess (somewhat like how the original version just pipes tomail
). Have you considered that? Would you be open to a patch?The text was updated successfully, but these errors were encountered: