Created
December 5, 2018 15:31
-
-
Save Disassembler0/74b9daa9dea9be172de04f213ced5d62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
STDIN=$(</dev/stdin) | |
echo "Sendmail invoked at $(date)" >>/var/log/sendmail.log | |
echo "Params: ${@}" >>/var/log/sendmail.log | |
echo -e "---\n${STDIN}\n---\n" >>/var/log/sendmail.log | |
echo "${STDIN}" | /usr/sbin/sendmail.real ${@} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment