HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to disable mail for users
Operating System - HP-UX
1833802
Members
2550
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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
09-26-2000 05:27 AM
09-26-2000 05:27 AM
How to disable mail for users
We have HP-UX 10.20 with users running an application without having direct access to the shell and mail.
My question is, how to disable mail for all users on the localhost and would it be safe to just delete all the files under /var/mail for all users except root, without causing any problems or error messages.
Thanks,
Elias
My question is, how to disable mail for all users on the localhost and would it be safe to just delete all the files under /var/mail for all users except root, without causing any problems or error messages.
Thanks,
Elias
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 05:33 AM
09-26-2000 05:33 AM
Re: How to disable mail for users
Yes, its fine do delete all the mail files in /var/mail, and to disable mail simply stop the sendmail daemon running.
Set> export SENDMAIL_SERVER=0 in /etc/rc.config.d/mailservs
then do> /sbin/init.d/sendmail stop
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 05:37 AM
09-26-2000 05:37 AM
Re: How to disable mail for users
I want to disable mail for all users except root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 05:43 AM
09-26-2000 05:43 AM
Re: How to disable mail for users
Well, so much for stopping sendmail then. You need to leave it running.
Only 2 ways to reroute mail for all users except root;
1. in each users home dir create a .forward file which forwards their mail to someone else, eg root, or to nobody (which is setup in the /etc/mail/aliases file as /dev/null)
2. List every user in the /etc/mail/aliases file and point them to nobody, eg. user1,user2,user3.... : nobody (which reroutes to /dev/null) Then do a newaliases command.
Im from Palmerston North, New Zealand, but somehow ended up in London...
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP