...
Code Block | ||||
---|---|---|---|---|
| ||||
#export REPLYTO=sentry@bonsaiframework.com # My tests have shown this is not necessary. Investigate why http://stackoverflow.com/questions/54725/change-the-from-address-in-unix-mail said it is needed.
echo "User $LOGNAME logged in $(date)" | mail -aFrom:sentry@bonsaiframework.com -s "Sentry Alert" bhitch@imagecomics.com | ||||
Until the script is done simply add the email line to the end of the the global startup scripts /etc/profile,
...