On Sat, 23 Jan 2010, Wietse Venema wrote: > Jozsef Kadlecsik: > > > > How could one achieve that the held messages are separated from the normal > > traffic (i.e. hold queue on another partition), but if the messages cannot > > be held, then those gets rejected instead of queued? > > Given Postfix's architecture, a loosely-coupled pipeline without > global feedback, there is no obvious way to build global feedback > into Postfix itself. > > I suggest that you run an email monitoring system. When the secondary > system stops accepting mail for more than some minimum amount of > time (allowing enough time for the system to reboot), update the > configuration on the primary system.
Yes, monitoring is inevitable. And that imply you would prefer the two instances setup :-). Just as a theoretical question, would it fit somehow into Postfix to support the hold queue *alone* in a separated partition? The flow would look like - normal smtpd processing of incoming request - if the action is HOLD and hold queue on a separate partition by config, ask cleanup to forget about the queue entry in incoming and request a new one in the hold queue - if message cannot be queued successfully, report it to the client Of course it might mean too much violation of the Postfix internals. Best regards, Jozsef - E-mail : kad...@blackhole.kfki.hu, kad...@mail.kfki.hu PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt Address : KFKI Research Institute for Particle and Nuclear Physics H-1525 Budapest 114, POB. 49, Hungary