Red Hat Bugzilla – Bug 1275072
procmail's error code for EX_CANTCREAT is a 5xx error - causing lost email
Last modified: 2017-10-03 21:26:17 EDT
+++ This bug was initially created as a clone of Bug #1275071 +++
When running a default install of postfix with procmail if the spool file becomes 50MB, the combination postfix+procmail will fail to write to the mail spool file with error:
procmail: can't create user output file.
The source code shows:
EX_CANTCREAT, "5.2.0", "can't create user output file",
This means postfix is not signaled to return a temp error and a new delivery is never attempted by the remote smtp server (causing me additional pains not only in lost email but also in having an unreproducable bug that took months to track down)
Note the core reason turned out to be postfix's default behaviour of limiting writes to mbox files in the spool directory to 50MB.
The postfix problem was solved by setting mailbox_size_limit=0
Note this problem only appears when using mbox instead of maildir.
I think it is permanent error, I already wrote comment regarding this in bug 1275078 comment 3, i.e. the error is caused by permanent problem on the server, it's unlikely the system recovers itself.