proje...@djtremors.com a écrit : > Hi, > > > > I’m switching from using virtual mysql mapped maildir mailboxes to > dbmail (www.dbmail.org <http://www.dbmail.org>) style mailboxes and have > an issue regarding multisite/multidomain hosting. > > > > I would like to be able to deliver based on the users email address to > the local delivery system or another server, this gives me the ability > to map users based on where their mailstore is located (ie 1 domain but > 2+ locations). I also need to ability to host different domains in the > same way. > > > > With using lmtp I can specify something like : > > mailbox_transport_maps = mysql:/etc/postfix/mailbox_transport_maps.mysql > > This allows me to have user1 in server1 mailstore and user2 in server2 > mailstore. My problem with this is that by default, postfix assumes unix > style local delivery so the mysql lookup (ie %s param) is only the > username part of the email. So I can’t use this for multidomain support > if there is a john....@domain1.tld <mailto:john....@domain1.tld> and a > john....@domain2.tld <mailto:john....@domain2.tld> . > > > > In using ‘virtual’ in postfix, this works fine as the mailbox delivery > usually corresponds to using a /vmail/{domain}/{user.name} configuration > so using 2 of the same name with 2 different domains works fine. The > only problem with this is that it gives you no ability to have 2 users > in 2 different mailstores ( or locations ). Basically what I’m saying is > that the problem with using virtual instead of local is that there is no > such thing as virtual_mailbox_transport_maps = > mysql:/etc/postfix/mailbox_transport_maps.mysql > > So I can map using lmtp:server1:24 and redirect a user to another server > if virtual_transport was using lmtp >
use transport_maps. > > > I hope i’m clear on this, so with local delivery i can’t do > mailbox_transport_maps lookups and differentiate between 2 users of the > same name but in different domains and i can’t use virtual because i > can’t locally deliver individual users in different servers. > > > > I could go out and make a subdomain and route via that but that’s really > clunky. I either have to deliver ‘local’ly to dbmail-lmtp and modify it > to realise the user is on another server or modify postfix to be able to > lookup using %...@%d instead of just %u.. > > > > Anyone got any ideas? Remember this is to be used with dbmail. >