Demchenko Yevheniy writes:

I need to move the mail system to a new server running courier-0.43.2. So, for a certain period of time there will be two servers receiving mails for a same domains "foo.domain.cc","relay.foo.domain.cc" etc. User accounts will be moved one by one from the old server to the new one, which would take some time. MX record will point to the new server.
So, if account is not moved yet, mails should be redirected to the old server insteed of generating DSN. Using aliasdir/.courier-default won't help, because all domains the old server accepts mail for must be in 'locals' on the new server,so courier won't use esmtproutes and will try to deliver mail back to itself.
I believe, that by adding some forged hostname to the backuprelay file and adding it to esmtproutes pointing to the old server IP, would help, but it isn't good solution, is it?

Assign a secondary domain to the other server, such as 'oldmx.domain.com', make sure the old server recognizes this hostname as local, and internal DNS is set accordingly.

Install a .courier-default file:

|| /usr/bin/fwd


Install a shell script, with execute permissions enabled, as /usr/bin/fwd:

#!/bin/sh
echo "[EMAIL PROTECTED]"



Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to