Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

purge mail file

Status
Not open for further replies.
Oct 9, 2003
174
US
Hey guys

I have a mail file for user X that is really large, about 150MB. I wanted to rename the existing /usr/spool/mail/X file and create a new one. My question is this, Do I have to restart the mail deamon once I do that so that the mail will then start writting to the newly created file. If so, how do I do that?

Thanks
-Travis
 
IMHO no problem, just do something like this:
Code:
cp /usr/spool/mail/X /path/to/newfile
> /usr/spool/mail/X

Hope This Help
PH.
 
Thanks for the response, the copy command I have no problem with.

But your second line, what does that mean? Is this all the same command?

Also, the question that I had was do I have to restart the mail deamon. If so then how.

 
> /usr/spool/mail/X
This command will empties the file.
No need to restart the maild daemon

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top