Hello,
the last day I had to search messages in our "poor man's second
chance" storage.
( an always_bcc solution ). *finding* messages was painful.
using my logging I could follow any message by its queueid. But
finally messages
are delivered by a local transport telling 100000 times: yes, I saved
this message to a maildir.
I ask the dovecot-users list but found a simpler solution yet.
(http://www.dovecot.org/list/dovecot/2014-August/097369.html)
This is the current log of the postfix local delivery agent (which I
use on that specific host):
Aug 6 19:02:48 mailer postfix/local[6543]: 3hSzfc0Tv4z59xm:
to=<u...@example.org>, relay=local, delay=0.05,
delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
with the attached patch I have queueid and messagefile combined in one line.
Aug 6 19:10:40 mailer postfix/local[30116]: 3hSzqh5c7Qz59xt:
to=<u...@example.org>, relay=local, delay=0.08,
delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir,
/home/user/testmaildir/new/1407345040.Vfe00I15813dM811042.mailer)
that solve my current problem. Maybe other find it useful too.
Andreas
Index: postfix-2.11.1/src/local/maildir.c
===================================================================
--- postfix-2.11.1.orig/src/local/maildir.c 2012-01-25 01:41:08.000000000 +0100
+++ postfix-2.11.1/src/local/maildir.c 2014-08-06 19:18:10.000000000 +0200
@@ -242,7 +242,7 @@
defer_append : bounce_append)
(BOUNCE_FLAGS(state.request), BOUNCE_ATTR(state.msg_attr));
} else {
- dsb_simple(why, "2.0.0", "delivered to maildir");
+ dsb_simple(why, "2.0.0", "delivered to maildir: %s", newfile);
deliver_status = sent(BOUNCE_FLAGS(state.request),
SENT_ATTR(state.msg_attr));
}