I have a crontab task running every 5 minutes. It writes an output (result of the .sh file run by the crontab) to the /var/spool/mail/user. Should I be worried that this spooler will build up and slow down the system over time? Do these entries ever get cleared out? Are they only temporary? If possible, can I disable it.
feedback
|
migrated from stackoverflow.com Jan 3 at 21:35
This question came from our site for professional and enthusiast programmers.
|
The messages stay there until the user whose mail it is reads and deletes the mail. That might be years later (I kid you not!).
| |||||||
feedback
|
|
The contents of the /var/spool/mail/user directory remain until the user deletes the mail. You may wish to install a script that runs via cron to remove files older than a certain date, and tweak this as you monitor your system. | |||||
feedback
|
|
Well, how can I read the emails? That user is actually me. But it has some default email box on the server. So, how can I read and delete the emails? I'd like to send the emails to an inbox that I actually do read or just delete them from the server.... | |||
|
feedback
|