Patrik Rak: > > For the archive service to be a delivery agent, Postfix should > > produce sensible behavior when people send mail directly to it with > > transport_maps or whatever, including all the delivery agent features > > that can be tweaked such as rate limits, concurrency scheduling, > > and so on. > > Exactly. You would be able to use all these features, in the very same > way you can use them for the "error" transport. > [...] But it seems quite reasonable to send something to "archive > [email protected]" transport, in the very same way it makes sense to send > it to an "error msg" transport. I though of this as an advantage, not a > shortcoming.
If Postfix sends mail for [email protected] directly to the archive delivery agent using transport_maps or whatever, how would Postfix deliver the output from the archive agent to [email protected] without running into a loop? This problem exists because a) the archive service is a delivery agent, and b) the input email address is the same as the output email address. Possible solutions: - Use an input email address that differs from the output email address. I think that this is just too bizarre to consider. - Change Postfix routing policy, so that the same email address produces different results in different contexts. Currently, the Postfix address resolver implements two routing policies: one for normal deliveries and one for address verification probes. The policies may differ when probes must avoid some intermediate host. The Postfix address resolver could implement a third routing policy to avoid deliveries to the archive transport. With this, even a simple archival scenario would be complicated. - Don't use a delivery agent model, so that the archive daemon receives the archive recipient address via a channel that is not subject to Postfix routing policy. This is the initial draft. In the simplest scenario it sends achive copies to a specified email address without requiring any configuration besides the email address itself. > Anyway, I saw you have been doing pretty cool changes recently, > so I am sure that whatever you'll choose will be great in this > case as well. I won't be around for few days now, so let me wish > you Happy Easter now... Thanks for the input. We aim to keep Postfix relevant. Wietse
