Thomas Landauer via Postfix-users: > Hi, > > my use case: I want to find out if outgoing messages were delivered > successfully, so I'm looking at the lines containing `status=` in the > logfile. > > But I need this only for some mails (not all). To find out, I have to > query the database for the Queue-ID. This step could be skipped if it > would be possible to prefix something like `foo.` to the Queue-ID. > > (I know that there are other lines in the logfile with more details > about the mail, but putting all those lines together is probably taking > more time than the database query ;-) > > Is it true that the Queue-ID is generated before Postfix receives the > message content? After which SMTP command?
Use Viktor's logfile collation tool. It groups multiple records based on process ID and queue ID. This is included with Postfix source code under auxiliary/collate. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org