ssl-cert-check
ssl-cert-check copied to clipboard
Mailx missing the from switch in latest version
Hey all first time poster, I have been using this script a couple years, thank you very much for it. Today I upgraded to the latest version, I was on 3.30. For this latest version, in order to get it to send as the specified from email address, I had to edit the send_mail() function to include the switch: -r "$FROM" ---for mailx
Hope this helps, thank you,
I'm having the same issue here.
Hi,
on Ubuntu 22.04 Server is the -r option not working.
As mentioned on https://stackoverflow.com/a/18490580 the -a will also work.
Therefor line 398 (on Commit https://github.com/Matty9191/ssl-cert-check/tree/967b93707f53cfdfefd61e074f18348f1f82bab9) will be: echo "$MSG" | "${MAIL}" -a "From: $FROM" -s "$SUBJECT" "$TO"
@steve1515 which system u are using? Can u please check this on an not debian based system?