In the processing of an in-bound email through sendmail and procmail, I am having trouble matching procmail log entries with sendmail's maillog entries. Sendmail posts the queue-id to the log.
Is there a method of sendmail adding the mail queue's "Message-queue-id" to a custom header, and then capturing it in procmailrc for its use in posting it to procmail's log output entries?
For example, we just delete mail identified by spamassassin as Spam, but can't after the fact trace it back to a sendmail log entry due to lack of common identifier.