ssl-cert-check
ssl-cert-check copied to clipboard
-E parameter is not working with postfix email
The provided -E parameter for sender email is not working correctly as even though after providing the input -E in command while executing the command it's still considering the default sender address like [email protected]. Since domain.com is restricted to send email as a sender in our environment and only with particular domain we can send the email. I was trying to use the same domain for -E parameter but it not working with that way. Could you please suggest where should I change the same so it should accept the provided sender email address.
Hi, just correct send_mail() function
"mailx")
echo "$MSG" | "${MAIL}" -s "$SUBJECT" "$TO"
;;
to
"mailx")
echo "$MSG" | "${MAIL}" -r "$FROM" -s "$SUBJECT" "$TO"
;;