Magnus B?ck <[EMAIL PROTECTED]> wrote: > On Wednesday, September 24, 2008 at 20:40 CEST, > mouss <[EMAIL PROTECTED]> wrote: > > > Scott Sharkey wrote: > > > > > Sahil (and others). HOW, exactly, do I direct everything destined > > > for a specific domain to the hold queue? I've been googling for a > > > couple days, without finding anything specific. A pointer to > > > appropriate doc's would be much appreciated. > > > > smtpd_sender_restrictions = > > check_recipient_access hash:/etc/postfix/rcpt_hold > > > > == rcpt_hold > > example.com HOLD > > Just don't forget that HOLD (like REDIRECT and FILTER) is a message > property, so if the message put on hold also has recipients in other > domains they won't get the messsage either.
To avoid this situation, use a transport map to temporarily defer mail *just* for those recipients. Once you're ready to "go live" on the new server, remove the "defer:" transport map for example.com (make sure you postmap if it's a hash), and flush the queue. If mail destined for example.com should instead be directed to smtp:[some.where.else], then instead of removing the transport map entirely, you would obviously update it (replacing the "defer:" portion) as necessary and then flush the queue. See transport(5). -- Sahil Tandon <[EMAIL PROTECTED]>
