Closed dragoangel closed 3 years ago
Hi dragoangel, I added a working sendmail command as dependency! You could use nullmailer to get secure mail transport.
Hi @grufocom I mean that why not install sendemail exactly how you install sqlite and so on? And if user have set $SMTPUSR && $SMTPPWS && $SMTPSRV try send mail with auth, otherwise use your code without auth. Can I provide a PR? And if this will be acceptable to you - you will merge it 😃
Hi @dragoangel, I use different configurations on my systems - sometimes there is postfix installed, sometimes nullmailer and there are systems without any mta installed.
In part, other programs depend on the configuration of the MTA. I actually already have a functioning mail service running on all systems before I install vee-mail.sh or a backup program in general.
Therefore, I assume that this will also be the case for many others.
With nullmailer, your suggestion is practically implemented in a configuration line, which then takes care of the encrypted sending perfectly without requiring any adjustments.
Many people will only use vee-mail internally and may even do without encrypted delivery altogether.
So I wonder if the effort (albeit small) is really necessary? But you are welcome to implement it, if the patch is not longer than the actual program, then the chances are not bad that I will integrate it! ;-)
Plain SMTP without auth and encryption in many cases impossible and not secure, so to send mail need to handle something like this:
in this case need adjust also build email to zero at start:
sendemail
not installed out of the box so bash script missing install of it, as well addition dependency:libio-socket-ssl-perl
to handle StartTLS, and of course adjust config template with new variables.