
mbhangui at gmail
Feb 5, 2010, 7:02 PM
Post #2 of 2
(836 views)
Permalink
|
On Fri, Feb 5, 2010 at 10:06 PM, Jason Staudenmayer <jasons [at] adventureaquarium> wrote: > Hi all > We are in the process of moving our exchange server which is front > ended by qmail. I have had connectors set in exchange to forward all > outbound mail through the qmail server and it's been great for years. OK > users. I know this might sound like a total MS issue but I'm wondering if > there's something I can set on the qmail server that would work like this. > > Old server sends email to user on new server - old server sends email to qmail - qmail sees it's from the old server to the same domain - qmail routes to the new server for delivery. I can think of 3 ways to do it. (listed below in increasing order of complexity) 1. Rename qmail-remote to qmail-remote.orig write a shell script qmail-remote in /var/qmail/bin #!/bin/sh sender=$2 recipient=$3 grep -w $recipient /var/qmail/control/migratedusers.txt >/dev/null 2>&1 if [ $? -eq 0 ] ; then exec /var/qmail/bin/qmail-remote.orig $newhost $sender $recipient else exec /var/qmail/bin/qmail/remote.orig $* fi copy the above shell script with execute permissions to /var/qmail/bin after renaming original qmail-remote to qmail-remote.orig 2. Use moresmtproutes patch. Follow the discussion below http://www.gossamer-threads.com/lists/qmail/users/137183 3. Use indimail from http://www.indimail.org. IndiMail can act as proxy for multiple users located on different exchange servers (in fact any server that supports smtp)
|