
qmail at top-consulting
May 2, 2011, 9:15 AM
Post #3 of 6
(1220 views)
Permalink
|
Quoting Manvendra Bhangui <mbhangui [at] gmail>: > On Mon, May 2, 2011 at 9:13 PM, <qmail [at] top-consulting> wrote: >> >> Is it possible with Qmail to do user level delivery rules ? >> >> For example, we have a Qmail box that hosts some accounts for >> domainA.com and an Exchange server that hosts some accounts also >> for domainA.com >> > You could write a wrapper around qmail-remote and have that called in > .qmail files for re-directing the mails to the exchange server > >> >> We want to place another box ( Qmail ideally ) in front of these >> two and to select which server the messages goes to based on the >> recipient. >> >> If it's recipients 1,2,3 go to serverA, if it's recipients 4,5,6 >> then go to serverB. >> >> > For recipients 4, 5, 6 create a .qmail which calls qmail-remote to > send the email to the exchange server. If you search for 'qmail-remote > wrapper' in google, you might get a better idea. > > At the cost of beating my own drum, If you want an elegant solution, > look at IndiMail which does the same thing without having the need to > create users on the qmail box as well as the exchange box. IndiMail > modifies qmail-rspawn to lookup users in a MySQL table for the host > which has the user's mailbox. > > In fact IndiMail started as a way to migrate corporates in India > seamlessly out of exchange. IndiMail does not require you to have a > hard cutover to migrate out of exchange and users can continue to be > on both the servers as long as you with. > The .qmail calling .qmail-remote appears to be the best solution. If we end up using a proxy - like Indimail - then mail sent locally will never hit the proxy and generate an error instead. Is there a workaround for this ? So the final setup would be something like: Exchange set up with dual delivery. E-mail comes in, goes to our Barracuda box. Barracuda forwards all to Exchange which also delivers to Qmail. Qmail is setup with the aliases on Exchange and delivers there remotely for those accounts. This sounds like it might work but involves a lot of .qmail file maintenance!
|