Thomas Landauer via Postfix-users: > Since you're creating the queue ID only after `RCPT TO`, we have the > sender's and the main recipient's address at hand - that would be enough > to set up something like a `queue_id_prefix_map` :-)
First, the queue ID is not the place for this information. This would require a new tag field in logfile messages, plus a new mechanism to assign such tags (see also 'fourth' below). Queue IDs are the names of files that are manipulated with postsuper and postqueue. Queue IDs are exposed in Message-ID headers and in delivery status notifications that may be sent to external senders, and it is none of their business to find out what names you choose to tag your email streams. Second, if you can 'map' a (sender and/or recipient) to an email 'message class' (news, invoice, etc.) while Postfix receives mail, then you can do that mapping outside Postfix while processing the logfile stream. (As a matter of principle, if a niche application like your mapping can be implemented outside Postfix, then that is better than bloating up Postfix with something that almost no-one else will use). Third, if you can do that message class mapping ahead of time, in the form of a DSN envelope ID, then you should consider using that. Just turn off DSNs for the SMTP client, and your Postfix system will inform the sender whether or not delivery was successful. Fourth, requests to tweak logs are better solved by making Postfix logging configurable. Wietse _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org