Sendmail on RHEL - mailing as root; want root@hostname.domain
Hiya all,
I've a monitoring process which mails as root from several RH boxes using the default sendmail install. Currently, these all come through to my mailbox as from 'root' rather than 'root@boxname'; I've tried commenting out the EXPOSED_USER directive in the sendmail.mc and running make to compile, but to no avail. I've also played about a bit with the masquerade directives- I can change other users but not root. Any ideas? Anything to try would be helpful... Cheers, Dave |
I've a monitoring process which mails as root from several RH boxes
What's the application? Can't it be tweaked to use $USER@$HOSTNAME? Can't the subject line be tweaked to include the $HOSTNAME? |
The problem is that most of the scripts were written by others. My scripts report `hostname` and `domainname` in the subject line, but I've inherited many from others which don't.
Plus the fact, it's now bugging me that I can't mail from root@hostname when I can from, say, oracle@hostname |
All times are GMT -5. The time now is 12:57 PM. |