Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-10-13
5
Medium Priority
?
227 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…
Suggested Courses

971 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