- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to delete mail messages
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
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
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
тАО01-06-2008 05:52 PM
тАО01-06-2008 05:52 PM
I have a large size of root mail in my HP-UX server.
I tried to delete by using #rm command but it didn't work.
I tried to delete using d command when i'm in the root mail (using #more command), but it still didn't work.
My /var directory space is getting compact (over 95% utilized) and I'm in the process of deleting unnecessary files in /var directory.
Please assist me.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 06:27 PM
тАО01-06-2008 06:27 PM
Re: How to delete mail messages
Take a backup of that file or copy it on other filesystem then nullify this file using the cat command as below
cat > /var/mail/
This will create more space under /var
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 06:41 PM
тАО01-06-2008 06:41 PM
Re: How to delete mail messages
I tried to use cat command and inserted:-
hi
my name
when I read back the mail...messages as below keep coming...
hi
my name
ern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] [-e pattern_list...]
-f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] pattern [file...]
grep: illegal option -- 3
grep: illegal option -- 4
grep: illegal option -- 2
grep: illegal option -- 0
grep: illegal option -- 0
grep: illegal option -- 0
grep: illegal option -- 8
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] -e pattern_list...
[-f pattern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] [-e pattern_list...]
-f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] pattern [file...]
grep: illegal option -- 3
grep: illegal option -- 4
grep: illegal option -- 0
grep: illegal option -- 4
grep: illegal option -- 0
grep: illegal option -- 4
grep: illegal option -- 7
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] -e pattern_list...
[-f pattern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] [-e pattern_list...]
-f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvx] pattern [file...]
grep: illegal option -- 3
grep: illegal option -- 4
grep: illegal option -- 0
grep: illegal option -- 4
grep: illegal option -- 0
grep: illegal option -- 4
.
.
.
the size keep bigger.
# ls -l
total 471136
-rw-rw---- 1 root mail 234728993 Jan 7 10:34 root
# ls -l
total 471136
-rw-rw---- 1 root mail 239718479 Jan 7 10:34 root
# ls -l
total 503904
-rw-rw---- 1 root mail 252432821 Jan 7 10:34 root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 06:49 PM
тАО01-06-2008 06:49 PM
Re: How to delete mail messages
cat /dev/null > /var/mail/root
Make sure that u have a backup of this root file before executing this command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 07:22 PM
тАО01-06-2008 07:22 PM
Re: How to delete mail messages
I managed to empty the root mail.
But it keeps filling in with the unknown message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 07:32 PM
тАО01-06-2008 07:32 PM
Re: How to delete mail messages
Normally all root mails will go to to root and this file size increases but if it is increasing with in a day or so then it is a thing to look out...
Is there any other error message ??
How abt the mail delivery, are the messages being delivered by the system ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 08:12 PM
тАО01-06-2008 08:12 PM
Re: How to delete mail messages
hope u'll find something from this.
From MAILER-DAEMON@hpovnnm Mon Jan 7 11:00:22 mal 2008
Received: from localhost (localhost)
by hpovnnm (8.9.3 (PHNE_29774)/8.9.3) with internal id SLD25533;
Fri, 4 Jan 2008 20:50:37 +0800 (mal)
Date: Fri, 4 Jan 2008 20:50:37 +0800 (mal)
From: Mail Delivery Subsystem
Message-Id: <200801041250.SLD25533@hpovnnm>
To: postmaster@hpovnnm
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="SLD25533.1199451037/hpovnnm"
Subject: Postmaster notify: Cannot send message within 5 days
Auto-Submitted: auto-generated (postmaster-notification)
This is a MIME-encapsulated message
--SLD25533.1199451037/hpovnnm
The original message was received at Sun, 30 Dec 2007 05:33:24 +0800 (mal)
from localhost
----- The following addresses had permanent fatal errors -----
root
(expanded from: postmaster)
----- Transcript of session follows -----
mail: cannot append to /var/mail/root
mail: cannot create dead.letter
451 I/O error
Message could not be delivered for 5 days
Message will be deleted from queue
--SLD25533.1199451037/hpovnnm
Content-Type: message/delivery-status
Reporting-MTA: dns; hpovnnm
Arrival-Date: Sun, 30 Dec 2007 05:33:24 +0800 (mal)
Final-Recipient: RFC822; postmaster@hpovnnm
X-Actual-Recipient: RFC822; root@hpovnnm
Action: failed
Status: 4.4.7
Last-Attempt-Date: Fri, 4 Jan 2008 20:50:37 +0800 (mal)
--SLD25533.1199451037/hpovnnm
Content-Type: message/rfc822
Return-Path:
Received: from localhost (localhost)
by hpovnnm (8.9.3 (PHNE_29774)/8.9.3) with internal id EIR27294;
Sun, 30 Dec 2007 05:33:24 +0800 (mal)
Date: Sun, 30 Dec 2007 05:33:24 +0800 (mal)
From: Mail Delivery Subsystem
Message-Id: <200712292133.EIR27294@hpovnnm>
To: postmaster
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="EIR27294.1198964004/hpovnnm"
Subject: Postmaster notify: Cannot send message within 5 days
Auto-Submitted: auto-generated (postmaster-notification)
This is a MIME-encapsulated message
--EIR27294.1198964004/hpovnnm
The original message was received at Tue, 25 Dec 2007 02:06:15 +0800 (mal)
from localhost
----- The following addresses had permanent fatal errors -----
root
(expanded from: postmaster)
----- Transcript of session follows -----
mail: cannot append to /var/mail/root
mail: cannot create dead.letter
451 I/O error
Message could not be delivered for 5 days
Message will be deleted from queue
--EIR27294.1198964004/hpovnnm
Content-Type: message/delivery-status
Reporting-MTA: dns; hpovnnm
Arrival-Date: Tue, 25 Dec 2007 02:06:15 +0800 (mal)
Final-Recipient: RFC822; postmaster@hpovnnm
X-Actual-Recipient: RFC822; root@hpovnnm
Action: failed
Status: 4.4.7
Last-Attempt-Date: Sun, 30 Dec 2007 05:33:24 +0800 (mal)
--EIR27294.1198964004/hpovnnm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 08:18 PM
тАО01-06-2008 08:18 PM
Re: How to delete mail messages
What is the current status of the root mails and file size ??
try sending a test message ad check if it succeeds:
mailx -s "test"
test
.
then tail -f /var/adm/syslog/mail.log
check if stat is equal to sent or not ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 08:28 PM
тАО01-06-2008 08:28 PM
Re: How to delete mail messages
# mailx -s "test" 200801041250.SLD25533@hpovnnm
test
EOT
#
# tail -f /var/adm/syslog/mail.log
Nov 15 14:16:58 hpovnnm sendmail[23463]: SDN19702: to=root, delay=1+15:04:55, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:16:59 hpovnnm sendmail[23463]: SGG11673: to=root, delay=1+16:27:43, xdelay=00:00:01, mailer=local, stat=I/O error
Nov 15 14:16:59 hpovnnm sendmail[23463]: RZQ16262: to=root, delay=1+17:42:56, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:16:59 hpovnnm sendmail[23463]: RHA16262: to=root, delay=1+18:09:39, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:16:59 hpovnnm sendmail[23463]: SYP11673: to=root, delay=1+15:55:37, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:17:00 hpovnnm sendmail[23463]: RcN16262: to=root, delay=1+17:34:26, xdelay=00:00:01, mailer=local, stat=I/O error
Nov 15 14:17:00 hpovnnm sendmail[23463]: RqE16262: to=root, delay=1+17:20:48, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:17:00 hpovnnm sendmail[23463]: RZI16262: to=root, delay=1+17:43:15, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:17:00 hpovnnm sendmail[23463]: RZR16262: to=root, delay=1+17:42:56, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:17:00 hpovnnm sendmail[23463]: SFY11673: to=root, delay=1+16:28:38, xdelay=00:00:00, mailer=local, stat=I/O error
Nov 15 14:17:01 hpovnnm sendmail[23463]: SFN11673: to=root, delay=1+16:29:3#
#
# ls -l
total 4355184
-rw-rw---- 1 root mail 2147483647 Jan 7 11:32 root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2008 08:31 PM
тАО01-06-2008 08:31 PM
Re: How to delete mail messages
ps -ef|grep sendmail