Solved

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

Posted on 2004-10-13
5
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I tend toward trying the newest hardware and software.  Thiss sometimes works out to my benefit, and sometimes not.  Because I downloaded and installed Android 5.x (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.htm…
I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

739 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