- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- EMS mail to root account filtering
Operating System - HP-UX
1748272
Members
4340
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 07:05 AM
тАО06-11-2002 07:05 AM
EMS mail to root account filtering
Hi *,
i'm trying to filter some EMS events notified to root by E-mail (severity >= MAJOR WARNING)...
I've installed procmail 3.21 software depot on my HPUX 11.00 server, and just try to configure procmail.
The first steps are :
- /home/root/.procmailrc file creation. Nothing special here I just use - for the moment - a silly rule telling procmail to deliver any message to the default mailbox...
- /home/root/.forward. I've configured this file according to the many docs/faq found on the Net :
"|IFS=' ' && exec /opt/procmail/bin/procmail || exit 75 "
And here is my problem... Without those files in place on my /home/root directory, everything goes nice : a 'mailx root < /etc/issue' command sends /etc/issue in /var/mail/root.
If I configure both files (~/.procmailrc and ~/.forward), the same commands goes to /var/mail/daemon !!!!
This is just driving me nuts !
Any ideas ?
Regards,
Jose L. Marcos
i'm trying to filter some EMS events notified to root by E-mail (severity >= MAJOR WARNING)...
I've installed procmail 3.21 software depot on my HPUX 11.00 server, and just try to configure procmail.
The first steps are :
- /home/root/.procmailrc file creation. Nothing special here I just use - for the moment - a silly rule telling procmail to deliver any message to the default mailbox...
- /home/root/.forward. I've configured this file according to the many docs/faq found on the Net :
"|IFS=' ' && exec /opt/procmail/bin/procmail || exit 75 "
And here is my problem... Without those files in place on my /home/root directory, everything goes nice : a 'mailx root < /etc/issue' command sends /etc/issue in /var/mail/root.
If I configure both files (~/.procmailrc and ~/.forward), the same commands goes to /var/mail/daemon !!!!
This is just driving me nuts !
Any ideas ?
Regards,
Jose L. Marcos
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2002 10:37 AM
тАО06-11-2002 10:37 AM
Re: EMS mail to root account filtering
Are you saying that the procmail and forward rules for user root also affect user daemon?
From your post, root's home dir is /home/root. What's the home directory for daemon?
What does this show you?
$ echo ~root ~daemon
From your post, root's home dir is /home/root. What's the home directory for daemon?
What does this show you?
$ echo ~root ~daemon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2002 12:22 AM
тАО06-12-2002 12:22 AM
Re: EMS mail to root account filtering
> Are you saying that the procmail and forward rules for user root also affect user
> daemon?
No. What I'm saying is that : mail adressed to user root aren't correctly handled via forward and procmail rules.
> From your post, root's home dir is /home/root. What's the home directory for daemon?
Home directory for root is '/home/root' and home directory for daemon is '/'.
I've tested the same procmail and forward rules with a "normal' account. After setting the correct permissions to /opt/procmail/bin/procmail (root:mail and chmod 2755) it works correctly for this normal account, I mean the mail is correctly forwarded to the /var/mail/account mailbox.
The point is that mail sent to 'root account' is misdistributed into /var/mail/daemon !
It's still driving me nuts...
Jose L.
> daemon?
No. What I'm saying is that : mail adressed to user root aren't correctly handled via forward and procmail rules.
> From your post, root's home dir is /home/root. What's the home directory for daemon?
Home directory for root is '/home/root' and home directory for daemon is '/'.
I've tested the same procmail and forward rules with a "normal' account. After setting the correct permissions to /opt/procmail/bin/procmail (root:mail and chmod 2755) it works correctly for this normal account, I mean the mail is correctly forwarded to the /var/mail/account mailbox.
The point is that mail sent to 'root account' is misdistributed into /var/mail/daemon !
It's still driving me nuts...
Jose L.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP