- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem with my mailbox
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
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
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
09-12-2006 12:17 AM
09-12-2006 12:17 AM
I got this problem.. i got many program running on the background, but one of them is constantly flooding my /var/spool/mail:
-rw-rw---- 1 user1 mail 2135295451 Sep 12 14:14 user1
Is there anyway i can find out the culprit?
and how to i flush the mailbox harmlessly?
Regards
Henry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 12:24 AM
09-12-2006 12:24 AM
Re: problem with my mailbox
Read /var/mail/user1.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 12:25 AM
09-12-2006 12:25 AM
Solutionto see what it might be...
To zero the file:
> /var/spool/mail/user1
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 12:26 AM
09-12-2006 12:26 AM
Re: problem with my mailbox
tail -100 user1 should give you a clue as to where the messages come from.
You can empty your mail by overwriting the file or read/delete all your messages from the mailx commandline.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 01:37 PM
09-12-2006 01:37 PM
Re: problem with my mailbox
thanks for the info, is there a way i can delete mail from before a certain date?
Best regards
Henry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 03:14 PM
09-12-2006 03:14 PM
Re: problem with my mailbox
To delete mail past a certain date you must write a script to do that.
You could also pull the mail onto a PC with popmail if you install qpopper from the Internet Express Suite at http://software.hp.com
> mailbox
Will zero it out but you will lose all of the mail. It is quite harmless.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 12:20 AM
09-13-2006 12:20 AM
Re: problem with my mailbox
# cat delmail
#!/bin/sh
# script to delete mail older then current month
# gwild
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "delmail \"userid\""
echo "Example:"
echo "delmail root"
exit 1
fi
MONTH=`date +%b`
USER=$1
E=`mailx -H -u $USER |grep -v $MONTH |wc -l`
echo "d1-$E" |mailx -u $USER
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 12:52 AM
09-13-2006 12:52 AM
Re: problem with my mailbox
just tried this, but I had a backup !!!
For example for 29th June, as user user1
grep -n -e'Jun 29' /var/mail/user1
In my example line 18
sed "1,17 d" /var/mail/user1 > /tmp/x.x
mv /tmp/x.x /var/mail/user1
chmod 660 /var/mail/user1
chgrp mail /var/mail/user1
mailx still seems to work with the new file, but that may be just my luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2006 01:42 AM
09-15-2006 01:42 AM
Re: problem with my mailbox
Rgds....Geoff