LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-12-2007, 06:57 AM   #1
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Rep: Reputation: 30
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
 
Old 07-12-2007, 11:13 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,688
Blog Entries: 54

Rep: Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955Reputation: 2955
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?
 
Old 07-13-2007, 04:30 AM   #3
davee
Member
 
Registered: Oct 2002
Location: Ayrshire, Scotland
Distribution: Suse(home) RHEL (Work)
Posts: 263

Original Poster
Rep: Reputation: 30
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
 
  


Reply

Tags
masquerade, root, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL AS4ux ScreenSaver for root Joe_Wulf Linux - Server 2 06-19-2007 08:24 PM
hostname and root folder charnel Programming 1 07-24-2005 02:54 PM
lock root account after 3 login attempts - RHEL AS 3 jrparker2005 Red Hat 1 05-17-2005 01:43 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 07:21 PM


All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration