To find what happened with a message we must look in two
logs: the mailserver logs and procmail log.
After we find the from recored (say the user complain about)
we know the Message-ID and we search again to find the "to="
records. Then we get an output like:
Jan 26 16:49:46 yarkon postfix/local[3814]: F2FDD4F882:
to=<alex(_at_)(_dot_)(_dot_)(_dot_)
status=sent ("|/usr/bin/procmail")
Now we must open procmail log to continue..
I solved this problem by starting my procmailrc with the following:
TRAP='logger -i -t procmail -p mail.info "$MID: lastfolder=$LASTFOLDER"'
:0 HB
* (with E?SMTP |[)]$)[ ]*id \/[^; ]+
{
MID=$MATCH
}
The TRAP will add a line with message-ID and the folder into
the maillog.
Enjoy,
Udi
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail