ssl-cert-check icon indicating copy to clipboard operation
ssl-cert-check copied to clipboard

-E parameter is not working with postfix email

Open ghost opened this issue 5 years ago • 1 comments

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.

ghost avatar May 09 '19 06:05 ghost

Hi, just correct send_mail() function

        "mailx")
            echo "$MSG" | "${MAIL}" -s "$SUBJECT" "$TO"
            ;;

to

        "mailx")
            echo "$MSG" | "${MAIL}" -r "$FROM" -s "$SUBJECT" "$TO"
            ;;

maurizio-scalia avatar May 10 '20 16:05 maurizio-scalia