Is it OK to delete the files in the following folder?
/var/spool/clientmqueue
The above folder is more than 6GB and I want to free the disk space. I guess there are mails those failed to be delivered. I do not want those mails anymore.
|
Is it OK to delete the files in the following folder? /var/spool/clientmqueue The above folder is more than 6GB and I want to free the disk space. I guess there are mails those failed to be delivered. I do not want those mails anymore.
| ||||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Be careful. Some of the files may simply been messages that has delayed because of problems with the destination server and are about to be resent. Try to see if you can flush the queue out first. If that does not work, start clearing the messages from that queue. With some mail systems (i.e. Postfix), there is a specific way to clear the queue. Here is one straight from the man page for postsuper:
Most of all, determine why the queue directory is so large. By default, mail systems like sendmail and/or postfix retain messages in the queue for about a week at a most, so having a large mail queue is definitely not normal unless the mail server is intend for high traffic volumes. | |||
|
feedback
|
|
No you should not delete that folder. The cause is usually bad spam filtering. You accept mail for non-existent email addresses then you bounce back mails if later turns out to be undeliverable. (A 6Gb size folder usually means thousands of mails.) The problems is that you cannot distinguish between legitimate and non legitimate mails (there could be a transient error and a deliverable mail is being placed to that directory). You should implement some (very) basic spam filtering (like not accepting mails from unresolvable sender domains) and in a week or two the size of that folder will be near zero. (What I am saying is very easy to do with Postfix and many good docs is available. It is also doable with other MTAs though.) | |||
|
feedback
|