Am 06.10.2012 18:20, schrieb Steffen Schebesta: > Using Wietse's first approach (adding a custom id to the MAIL FROM address > as an extension) I have tried to output the sender's address in the same > line of the mail.log as the bounce message. > I believe I would need to change the global/log_adhoc.c (e.g. line 109 in > 2.9.4) to do so but I cannot access the sender there. Is there a way to > access the initial sender from the log_adhoc void? Maybe through the > RECIPIENT object: > RECIPIENT->QMGR_QUEUE->QMGR_ENTRY_LIST->QMGR_ENTRY->QMGR_MESSAGE->sender > > I know it sounds awefully complicated but I really need a custom id in the > same line as the bounce message
this is NOT possible please try to understand how a QUEUE works you get ONE message with 10 RCPT some of them are local, some of them not the non-local have different destination servers some of them may not be reachable and tried later so you have on the postfix side many different log lines for the same message, and some of them may arrive 5 days later while some messages are still delivered sucessfully
signature.asc
Description: OpenPGP digital signature