procmail, deliver and failure (65)

Matteo Corti matteo at
Fri Jun 12 06:04:38 EDT 2009


I use procmail to filter emails tagged by spamassassin and use deliver  
to put them in the mailbox as follows:

:0 w
| /usr/lib/cyrus-imapd/deliver -a $USER -m user.$USER

after a recent update I am getting an exit code 65 from deliver which,  
if I am not wrong, means a wrong formatting.

Following several suggestions I removed the From header from the email:

| formail -I "From "
:0 w
| /usr/lib/cyrus-imapd/deliver -a $USER -m user.$USER

but I always get the same error.

I then saved emails to see what the problem could be.

| formail -I "From "
:0 c
| cat > /tmp/backup
:0 w
| /usr/lib/cyrus-imapd/deliver -a $USER -m user.$USER

This is what I get:

$ cat /tmp/backup
Return-Path: <root at>
Received: by (Postfix, from userid 0)
         id 8339B2EC003; Fri, 12 Jun 2009 12:01:47 +0200 (CEST)
Date: Fri, 12 Jun 2009 12:01:47 +0200
To: corti at
Subject: Testsubject
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20090612100147.8339B2EC003 at>
From: root at (root)

Test text


Do you have any hint at what could be the problem?

I am using version 2.3.14

Many thanks,


Matteo Corti

More information about the Info-cyrus mailing list