Tech Journal Back to Tech Journal

Procmail is failing to write to my mailbox because of a "Lock failure"!

If procmail fails to write to a mailbox with the following errors in the log:

procmail: Locking "/var/spool/mail/<mbox>.lock"
procmail: Error while writing to "/var/spool/mail/_j-B.7cLLFB.<host>"
procmail: Lock failure on "/var/spool/mail/<mbox>.lock"

Then the simplest solution is to specify your own lock-file in the recipe this is caused by, in .procmailrc. So instead of the recipe starting with:


It should start with:

:0 : /tmp/some-lock-file
Last updated on 2007-05-31 21:18:46 -0700, by Shalom Craimer

Back to Tech Journal