Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Our intranet server using sendmail stopped delivering messages.
I found that the /var partition is filled up to 107%, possibly due to the extremely large /var/spool directory.
Please help me how to empty the message queue of sendmail so that it can be fit again, and the messages in the queue presently be preserved for future processing? (I.e. no mails should be lost).
Please be specific as I am a green newbie to sendmail, I do not even know how to start and stop it.
Usually this happens when people (users) leave a copy of their messages on the server. We used to have this problem all the time.
Another cause is the /var/log/ directory. If you check here you will find log files such as "messages.<number>" or "secure.<number>". These will be the older log files and can be deleted with no worries. If you do not delete them they will fill up your /var partition and stop services that depend on them.
DO NOT delete logs not followed by ".<number>"! You will need this info at some point!
to restart any service, use "/etc/init.d/<servicename> restart"
to stop, it's "/etc/init.d/<servicename> stop"
etc, etc....
cd /var/spool/mail
type ls -l and look for any really large files, these will be users not taking their mail off the server. Just copy the files somewhere else for later processing to clear up the space. (The file will be in MBOX format, and can at any time be renamed to a new user for processing, or opened with Pine or Mutt or many other Linux Mail Agents)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.