On Wed, 14 Jan 2009, Sahil Tandon wrote: > On Wed, 14 Jan 2009, Noel Jones wrote: > > > On Wed, Jan 14, 2009 at 04:41:59PM -0800, Jeff Weinberger wrote: > > > > > > On Jan 14, 2009, at 3:53 PM, Roderick A. Anderson wrote: > > > > > > >Jeff Weinberger wrote: > > > >>This may seem like an odd question, but I need to find a way to > > > >>suspend delivery of mail to one account or one domain for a short > > > >>period of time to allow me to do a bit of maintenance. > > > >>As it stands now, I use maildrop as my delivery transport for > > > >>virtual mailboxes. > > > >>Is there a way to tell postfix to hold the mail in its queue until > > > >>I tell it I'm ready? > > > > > > > >I've used a pretty simple trick of putting the domain in the > > > >header_checks.regexp file. > > > > > > > >header_checks.regexp > > > > > > > >/^To: ....@example.com/ HOLD > > > > > > > > > > > > Using header_checks for this is unreliable; there is no guarantee the > > recipient > > will be listed in the To: header. You're not listed in To: in this > > message, but > > you receive it anyway. > > > > You can use HOLD with a check_recipient_access map reliably, that's another > > good way to temporarily pause delivery. > > I think this affects all recipients of the message, so the OP probably wants > to > use transport_maps to limit holding/queuing only for a particular sent of > recipients.
s/sent/set/ :) -- Sahil Tandon <sa...@tandon.net>