On Wed, Apr 29, 2015 at 04:32:22AM +0000, Viktor Dukhovni wrote: > On Wed, Apr 29, 2015 at 03:23:20PM +1100, J?r?me Alet wrote: > > You've not explained how you intend to manage mailboxes, or shown any > details of your configuration. My advice was correspondingly sketchy.
My bad, sorry. > If you want to use local(8) delivery, you need to list users in > local_recipient_maps and/or arrange for mailbox_transport or similar > if users don't have system accounts. I forgot in my previous message : all users have system accounts, delivery is to be done (it works fine already) to their home directory's Maildir/ subdirectory, in the Maildir format. The location of their home directory is retrieved from LDAP using the configuration sent previously. > > This is because the real email address is newu...@example.com and not > > newu...@backend2.example.com > > There's no such thing as a "real" email address. There are only > routing rules that deliver mail to the right mail store. OK so with my actual configuration routing and delivery are correct in these directions : Not migrated yet users : Internet => MX => Server1 => Backend1 Backend1 => Server1 => Internet Migrated users : Internet => MX => Server1 => Backend2 Now I want to have this : Backend2 => Server1 => Internet For each migrated user, i.e. who utilises Backend2 as his MUA's SMTP server, even if destination email address is in the already migrated group. > The basic idea is to associate with each user a mailbox address in > addition to their primary email address. Then match either. You > may need to provision additional addresses in LDAP as you migrate > users. Not sure how to do this because in the future (that's why I didn't talk about this) the Server1 => Backend2 connection will be done through a load balancer (there will be several servers to host the 'Backend2' role). So I don't want fixed associations between a migrated user and a particular "Backend2" server. > > Server1's transport : > > --- CUT --- > > # Not migrated yet : > > sub1.example.com relay:[backend1.example.com] > > sub2.example.com relay:[backend1.example.com] > > sub3.example.com relay:[backend1.example.com] > > example.com relay:[backend1.example.com] > > # Migrated mailboxes : > > newus...@sub1.example.com relay:[backend2.example.com] > > newus...@sub2.example.com relay:[backend2.example.com] > > newus...@sub3.example.com relay:[backend2.example.com] > > newu...@example.com relay:[backend2.example.com] > > --- CUT --- > > Well you're going out of your way to create a loop, in which mail for > us...@example.com is sent by the centrall mailhub to the mailstore > host, but you want that host to send such mail back to the mailhub. Not always : not when receiving messages from Server1 using its transport map. This only has to be done (message forwarded to Server1 for routing) when sending messages from Backend2 when Backend2 is used as the outgoing SMTP server in a migrated user MUA's preferences. But I don't know how to differentiate between these two situations in Postfix configuration :-( Thanks in advance for any help -- Jérôme Alet - <jerome.a...@univ-nc.nc> - Direction du Système d'Information Université de la Nouvelle-Calédonie - BPR4 - 98851 NOUMEA CEDEX Tél : +687 290081 Fax : +687 254829