Web Hosting Talk







View Full Version : /var/spool/mail/httpd


Pingu
03-17-2002, 06:57 PM
It's getting quite big.

Can it be cleared without messing things up? And if so, how?

Thanks :)

nozol
03-18-2002, 06:12 AM
Yes it can be deleted. Just go to /var/spool/mail
then as root do the following.

rm httpd
touch httpd
chown httpd httpd
chgrp httpd httpd
chmod 600 httpd


That's it.

Regards,

Ahmed

Pingu
03-18-2002, 01:41 PM
That's what I figured.
Thanks for helping me out here :)

dayandj
02-08-2006, 08:28 AM
Hi,

I too have the same problem. I normally Telnet to delete the httpd mail file every now and then. But recently, on one of my servers I am unable to telnet and get an error "error loading share libraries".

I can't telnet or SSH to delete the file!

Is there a way I can pop the mails out of the httpd mailbox? I tried all the passwords I could think off but nothing works! Please help!!

Regards,

Dayan

srcnix
02-08-2006, 08:40 AM
Yes it can be deleted. Just go to /var/spool/mail
then as root do the following.

rm httpd
touch httpd
chown httpd httpd
chgrp httpd httpd
chmod 600 httpd


That's it.

Regards,

Ahmed
Would it not be faster on the end users behalf to do "echo '' > /var/spool/mail/httpd"?

haitattan
06-15-2007, 12:10 AM
wat happened if it had been so full that I cannot su as root anymore?

any advice?

tsj5j
06-15-2007, 12:19 AM
wat happened if it had been so full that I cannot su as root anymore?

any advice?

Do you need disk space to su? That's a first to me.

Otherwise do :

sudo '> FILE_TO_EMPTY'

dayandj
06-15-2007, 12:27 AM
Confirmed. You need var space to SU. I shutdown the server, removed the HDD and mounted the volume from another linux machine. Then removed the oversized httpd mailbox.

Rebooted the server, var space went from 100% to 11% and I could SU in no problem.

haitattan
06-15-2007, 02:28 AM
any way to solve this problem once and for all?

tsj5j
06-15-2007, 03:00 AM
any way to solve this problem once and for all?

Usually theres just a single warning message flooding the logs every few seconds.
Try to resolve that warning.

Also, you can cron the emptying of the log file.

dayandj
06-18-2007, 09:52 PM
The only way to resolve this is to make sure you dont get spammed! Another method I have heard off but have not tried is too create an alias in the aliases for mails to httpd.

I have found that the main cause for this problem is poorly coded PHP scripts that opens up holes for spambots.