Solved

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

Posted on 2004-10-13
5
207 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clutter - Designating Safe Senders/Domains 2 65
Embed SSRS report in body of SMTP Email 5 307
Encoding scheme on Gmail 6 45
Cloud email filter 3 39
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The purpose of this video is to demonstrate how to set up an account with Mailchimp. This will be demonstrated using a Windows 8 PC. Tools Used are: Mailchimp.com Go to Mailchimp.com : Enter an Email, Username, and Password. Click Create My Acco…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

740 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