The files in the msgq directory are supposed to be hard links to the control files in the msgs directory. For some reason, they were being hard linked to the files in the archive directory instead.
I suspect that the problem only occurs when a message bounces. If you have a test system, try to reproduce the problem by enabling the archive option, and sending a message that bounces.
If the diagnosis is correct, try the following fix:
pgp00000.pgp
Description: PGP signature
Index: courier/cdmsgq3.C
===================================================================
RCS file: /cvsroot/courier/courier/courier/courier/cdmsgq3.C,v
retrieving revision 1.10
diff -U3 -r1.10 cdmsgq3.C
--- courier/cdmsgq3.C 6 Jan 2002 06:37:34 -0000 1.10
+++ courier/cdmsgq3.C 8 Jan 2004 04:15:08 -0000
@@ -458,6 +458,9 @@
p->removeq();
if (access(qmsgsdatname(p->msgnum), 0) == 0)
reschedule=1;
+ else
+ unlink(buf);
+
}
}
else if (successcnt + failcnt == ctlinfo.nreceipients || j < 0
pgp00001.pgp
Description: PGP signature
