Solved

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

Posted on 2004-10-13
5
202 Views
Last Modified: 2008-01-09
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.



0
Comment
Question by:pitzalis
  • 3
  • 2
5 Comments
 

Author Comment

by:pitzalis
ID: 12351658
Any thoughts on this?
0
 
LVL 2

Accepted Solution

by:
Donboy earned 500 total points
ID: 12445445
If old.com is listed in /var/qmail/control/locals, you can put new.com in there also.

You'll also need to put new.com into /var/qmail/control/plusdomain and /var/qmail/control/rcpthosts.

Restart qmail and test.
0
 

Author Comment

by:pitzalis
ID: 12449925
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
0
 
LVL 2

Expert Comment

by:Donboy
ID: 12450244
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.
0
 

Author Comment

by:pitzalis
ID: 12465148
Gotcha...Thanks, and best of luck to you.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

In this post, we will have a look on how to install Exchange Server 2013 from command prompt, instead of using the graphical user interface. Below are the steps that are to be performed to install Exchange Server 2013. 1. Domain Controller and…
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now