- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: automatically forward root emails to an user
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО07-19-2007 04:10 AM
тАО07-19-2007 04:10 AM
automatically forward root emails to an user
I am having HP-UX 11i on Rp5405 box. Does anyone know how to setup to forward root emails to a regular user whenever a new email received by root? I can't find a .forward file under /.
Thanks for your help,
Hong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 04:15 AM
тАО07-19-2007 04:15 AM
Re: automatically forward root emails to an user
root : user1,user2@someplace.com
then run "newaliases".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 04:19 AM
тАО07-19-2007 04:19 AM
Re: automatically forward root emails to an user
You must create a '.forward' file if that's the method you want to use. Otherwise, you can setup sendmail aliases in '/etc/mail/aliases'. See the commentary witin the file.
To simply use a '.forward' as you asked, create the file owned by 'root' with readonly permissions to everyone:
# cat /root/.forward
hongzhou
hongzhou@yourcompany.org
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 04:22 AM
тАО07-19-2007 04:22 AM
Re: automatically forward root emails to an user
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 06:30 AM
тАО07-19-2007 06:30 AM
Re: automatically forward root emails to an user
I tried both methods. Added a line in /etc/mail/aliases file. How to run the new aliases? It is not excutable file, should I add the permissin first thrn run it?
I can find out if .forward work tomorrow.
Thank,
Hong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 06:36 AM
тАО07-19-2007 06:36 AM
Re: automatically forward root emails to an user
> How to run the new aliases?
As root:
# /usr/sbin/newaliases
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 06:51 AM
тАО07-19-2007 06:51 AM
Re: automatically forward root emails to an user
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 08:18 AM
тАО07-19-2007 08:18 AM
Re: automatically forward root emails to an user
What should I do now?
Hong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2007 08:25 AM
тАО07-19-2007 08:25 AM
Re: automatically forward root emails to an user
Read the comments regarding "$j" in '/etc/mail/sendmail.cf'. You need a FQDN. Sendmail and DNS are intimately intwined.
Regards!
...JRF...