On Mon, May 04, 2009 at 06:17:16PM +0000, George Forman wrote: > I am a primary for system X where the mails accounts and messages > are split betweentwo separate complexes. In order for an account to be > migrated, I must stop acceptingthe mail temporarily until it has been > migrated to the other system.
Sounds like an LDAP-based transport(5) switch or an LDAP-based virtual(5) rewrite table. With per-user transport(5) lookups you may not need to suspend delivery, unless your strategy is to wait for queued mail to drain, before migrating a "quiescent" mailbox, and then resuming delivery to the new location. Even then, it may be best to accept the mail, but defer the delivery, by setting the per-user transport to "retry:4.2.1 Mailbox migration in progress". This requires Postfix 2.4 or later. > I am using a ldap back-end that containing transport information to > distinguishing between the two systems.I would like to create a new ldap > attribute (ie inMigration) that causes postfix to return 4XX on the rcpt > tountil the account is migrated. > Does anyone have a suggestion on how this can be accomplished? If you must ask the sender to retry (instead of queueing locally, which is recommended above), use an access(5) table that queries LDAP and returns: DEFER 4.2.1 Mailbox migration in progress given an appropriate lookup key (test with "postmap -q" first). -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.