One of our clients sends contract notes to their customers and they require to store all logs of deliveries/bounces by some law.
They have requirements like * The log should contain the full date including year * The log line should indicate full info --> sender,rcpt,datetime,size,status I have managed to add custom logs in postfix source in bounce.c and sent.c. (Thanks to the neatly structured code it wasnt much of an effort) Only problem is when a message expires there is no log line that says $queue-id: "$sender" to "$rcpt" status=expired How can I log this ? Thanks Ram