From: Victor Duchovni (no email)
Date: Mon Oct 01 2007 - 23:09:33 EDT
On Mon, Oct 01, 2007 at 10:45:17PM -0400, Maykel Moya wrote:
>
> El lun, 01-10-2007 a las 11:30 -0400, Victor Duchovni escribi??:
> > On Mon, Oct 01, 2007 at 04:20:50AM -0400, Maykel Moya wrote:
> >
> > > I have a server with a ton of local users. Nobody has local access
> > > granted, just mail delivery. I'm in process of migrate them to LDAP with
> > > the implication of make them virtual instead of local users.
> > >
> > > Due to some constrains I should make the migration in-site. I have been
> > > thinking in configuring Postfix to lookup first users in LDAP, then in
> > > local database but it's not clear to me how to accomplish this given
> > > that one set of users are virtual and the other local.
> >
> > Use virtual_mailbox_maps via LDAP for the virtual users. See
> > VIRTUAL_README.
>
> virtual_mailbox_maps implied that the domain in question, say foo.org,
> will be listed in virtual_mailbox_domains and thus *not* listed in
> mydestinations.
No, it does not. All that is required is that the users in question be
routed by one means or another to the virtual(8) transport, and that
smtpd(8) be given appropriate recipient validation tables for each
address class.
You can split the domain by rewriting, via mailbox_transport_maps or
via per-user transport_maps. Each choice has different pros/cons.
> I would to have the possibility to make a gradual migration. I mean, not
> entering all the users to LDAP at the same time.
>
> The logic I would like Postfix to follow is: is the user is in LDAP use
> the directory data to deliver, is not, then try to deliver locally. Is
> there any trick I could follow to achieve that?
>
Rewrite (virtual(5)) selectively to a virual domain, or route
(transport(5)) selectively to the virtual(8) transport, or hand-off
mailbox delivery (mailbox_transport_maps) selectively to a virtual
transport.
-- 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:?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.
|
|
|