Maildrop: Unable to create temporary files

Discussion in 'Installation/Configuration' started by gallen, Sep 28, 2011.

  1. gallen

    gallen New Member

    Hi,

    I have setup an ISPConfig 3 server as per:
    http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3

    Everything is working except receiving emails with attachments.

    The error message I see is:

    Sep 28 14:22:24 ispconfig3 maildrop[5387]: Unable to create temporary file.
    Sep 28 14:22:24 ispconfig3 postfix/pipe[5386]: 2585740185: to=<[email protected]>, orig_to=<[email protected]>, relay=maildrop, delay=0.02, delays=0.01/0.01/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to create temporary file. )

    From research so far, it seems maildrop writes to temporary files when messages are over a certain size. So, I assume the problem is that reception of emails with attachments results in Maildrop needing to write to a temp file, which it is having problems with.

    Some background:
    ls -la /var/tmp/
    total 8
    drwxrwxrwt. 2 root root 4096 Sep 28 14:22 .
    drwxr-xr-x. 28 root root 4096 Sep 15 00:30 ..

    ls -l `which maildrop`
    -r-sr-sr-x 1 root mail 202224 Sep 14 11:08 /usr/bin/maildrop

    maildrop -v
    maildrop 2.5.4 Copyright 1998-2005 Double Precision, Inc.
    GDBM/DB extensions enabled.
    Courier Authentication Library extension enabled.
    Maildir quota extension are now always enabled.
    This program is distributed under the terms of the GNU General Public
    License. See COPYING for additional information.

    As I said before, receiving "small" emails is fine, so I presume all the "routing/filtering" functions are working fine. Everything else (web sites, ftp, etc) also work fine.

    Appreciate any help.....Graeme.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Maildrop normally writes the temporary files in /tmp. Please check that /tmp is writable for all users incl. vmail and postfix and if /tmp is a separate partition, then check that it is large enough.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    And if the above wont help, please try a:

    chown -R vmail:vmail /var/vmail
     
  4. gallen

    gallen New Member

    Hi Till,

    Thanks for the speedy response!

    /tmp was the issue (I had assumed it was /var/tmp).

    chmod -R a=+rwx /tmp

    fixed this problem.

    Thanks again....Graeme.
     

Share This Page