LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail on RHEL - mailing as root; want root@hostname.domain (https://www.linuxquestions.org/questions/linux-software-2/sendmail-on-rhel-mailing-as-root%3B-want-root%40hostname-domain-568699/)

davee 07-12-2007 05:57 AM

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

unSpawn 07-12-2007 10:13 AM

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?

davee 07-13-2007 03:30 AM

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.