Article ID: 124167, created on Jan 8, 2015, last review on Apr 7, 2015

  • Applies to:
  • Operations Automation 5.5
  • Operations Automation 5.4


QMail-related task in POA control panel fails with the error like below:

Last execution output   Destination host '' (#1001), IP '' : Internal error: /usr/local/qmail/bin/setquota /usr/local/qmail/bin/setquota /usr/local/qmail/shared/mailnames/o/k/-1001/1001/Maildir/ 157286400S failed with code 1 saying: STDOUT: '' STDERR 'Failed to generate new maildir size name of '/usr/local/qmail/shared

One or both of the below is true:

  1. QMail-related folders (mailfolder, new, cur, tmp) within the folder that is mentioned in task error message are missing on the QMail server.

  2. QMail quota-related binaries have incorrect permissions (see below).


QMail hosting was removed by another task from POA side or folders/permissions were manually removed.


Following resolutions correspond to the symptoms above.

  1. Recreate the missing directories on the QMail server:

    # pwd
    # mkdir mailfolder
    # mkdir new
    # mkdir cur
    # mkdir tmp
    # ls -ld *
    drwxr-xr-x  2 root root 4096 Jul 15 17:27 cur
    drwxr-xr-x  2 root root 4096 Jul 15 17:27 mailfolder
    drwxr-xr-x  2 root root 4096 Jul 15 17:27 new
    drwxr-xr-x  2 root root 4096 Jul 15 17:27 tmp
    # chmod -R 700 *
    # chown -R mailnames:qmail /usr/local/qmail/shared/mailnames/o/k/-1001/1001/Maildir/
  2. Make sure that setquota and checkquota binaries have proper ownership, fix it if needed:

    chown mailnames:qmail /usr/local/qmail/bin/setquota
    chown mailnames:qmail /usr/local/qmail/bin/checkquota
    chmod +s /usr/local/qmail/bin/setquota
    chmod +s /usr/local/qmail/bin/checkquota
    chmod g-s /usr/local/qmail/bin/checkquota

Search Words

sync mail


Failed to generate new maildir size name

task fail

ac82ce33439a9c1feec4ff4f2f638899 caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e 5b048d9bddf8048a00aba7e0bdadef37

Email subscription for changes to this article
Save as PDF