j.emerlik: > I would like have policy service that will be able to write do data base > some information eg. when exactly message was sent, message ID, DSN if > soemthing goes wrong. That means it should be working with Postfix queue.
You can use "postqueue -j" to get a machine-readable queue listing with arrival time, and why mail is still in the queue. However for historical information of past deliveries you will have to rely on Postfix logs. Wiietse