Link to home
Start Free TrialLog in
Avatar of pitzalis
pitzalis

asked on

Configure QMail to route email for user@new.com to user@old.com

I am currently running QMail on a dedicated server with a number of existing users each with their own IMAP email account.

I have been forced to change my domain name.  For simplicity, assume the original domain is old.com and the new domain is new.com.

I have already setup my MX record for new.com to point to the email server that is running at old.com.  

Is there an easy way for me to configure QMail so that email sent to user@new.com will be sent to the existing account at user@old.com?  I am looking to allow for a smooth transition to the new domain name that will allow the users to maintain their existing email folders and messages by simply changing the domain name in their email clients.

Optimally, I would all of my existing users to be able to use either domain during the transition to the new domain, but that's not a requirement, if the solution demands that I terminate functionality for old.com in order to implement the email at new.com.



Avatar of pitzalis
pitzalis

ASKER

Any thoughts on this?
ASKER CERTIFIED SOLUTION
Avatar of Donboy
Donboy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Donboy,

Here's what I did, to get it to work, based on your advice:

1) Since my locals file contained "localhost" only, with no mention of old.com, I left it alone.
2) I put new.com in the rcpthosts file, as you suggested.
3) Since I don't have a file called plusdomain, I took a look at the qmail config files, and noticed that I DO have a file called virtualdomains.  Since old.com was in there, I put new.com in there as well.  I am guessing that maybe I am using an older version of qmail, and plusdomain is the same as virtualdomains in my version.

Anyway, it worked!

Thanks....I am going to accept your answer now.

Len Pitzalis
pitzalis@adnc.com
plusdomain may not exist.  There are a bunch of control files that are like that.  If they don't exist, you can just create them.  For example, queuelifetime isn't there when you install, but you can create the file and put the number of seconds mail is supposed to sit in the queue.

Anyway, you probably don't need it... plusdomain is only used by qmail-inject and is used to append a domain name to a partial email address.  It's just something to make sure you've got all the bases covered for your locals, so you probably don't need it.  Glad it worked.
Gotcha...Thanks, and best of luck to you.