Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to send an email with attachment using PHP and I get this error:

Insufficient disk space; try again later
Insufficient disk space; try again later
returntosender: cannot select queue for root
Insufficient disk space; try again later
returntosender: cannot select queue for postmaster
queueup: cannot create queue file qfp5M7HeoG001376, euid=51, fd=-1, fp=0x0: No space left on device

I checked and it seems that there is space:

Size  Used Avail Use% Mounted on
112G   89G   18G  84% /
 99M   22M   73M  23% /boot
4.9G   33M  4.6G   1% /tmp
4.9G  4.6G     0 100% /var

The file I'm trying to attach has less than 4MB. Any idea where this comes from and how can I fix it?

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

Obviously there is not space in /var which is where it will try & create the spool

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.