On Fri, Mar 29, 2013 at 10:50:07AM +0100, Patrik Rak wrote: > Is it really required that the message is archived before any further > processing continues? It seems to only introduce delays... > > To me, it seems that the archive recipient from the queue manager's POV > is as any other recipient, except that it is automatically routed to it's > own archive transport which passes the message to the archive delivery > agent. Plus the extra treatment of the bounces. Other than that, it > doesn't seem to need to be treated much differently.
The main requirement for this to work reliably is for queue-file REC_TYPE_DONE records to never be used for purposes other than finalizing actual recipients (I believe this is true today). If Postfix were to use REC_TYPE_DONE for other purposes, or to finalize recipients with a different record type, the archive daemon would have trouble determining the message envelope. As for delivery-agent vs. internal service, the internal service approach is likely more robust. There should only be one archive recipient per message. If someone wants more, that can be handled via virtual(5) downstream. -- Viktor.