[rt-users] temp files leftover in /tmp sucking up all space
Vivek Khera
vivek at khera.org
Mon Oct 3 15:25:22 EDT 2005
I have my max attachment size set to 3Mb. Occasionally, I get a
"brilliant" customer who decides to email a 5 or 7 Mb attachment to
our RT (running 3.2.3). What happens is that some temp file is
created in /tmp of a huge size, and then rt-mailgate dies. The mail
logs show something like this:
Oct 3 03:02:54 w01 postfix/local[28234]: 9F290362CA: to=<MUMBLE>,
relay=local, delay=257901, status=deferred (temporary failure.
Command output: An Error Occurred ================= 500 Server
closed connection without sending any data back )
and the temp file is left sitting there sucking up valuable space.
Eventually, after the mail server retries that message a handful of
times, /tmp fills up and all heck breaks loose.
What can I do to protect myself from this? Can mailgate do the usual
open/delete/use tempfile trick that make unix special? Or do I need
to bump up the maxmem setting for mail processes or something?
More information about the rt-users
mailing list