Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in the works of installing a postfix mailserver on a machine currently being used as web server. As of right now, I've got it working as far as that I can send and receive emails using telnet through port 25.

However, as my customer is concerned with downtime, I'd like to setup all the accounts one by one over time, and making sure it works, rather than just cutting the cord to the old mail server and start creating new accounts on the new system.

How can I add the domain to my mail server and just add something like to the users and aliases-lists without the web server trying to send all emails with the domain to the new mail server?

I'm running ubuntu, using postfix and postfix-mysql on the new machine, the old mail server is on a hosted environment somewhere else, where I don't have any control.

share|improve this question
up vote 1 down vote accepted

You should be able to do that using transport maps to send mail to the new server for migrated accounts and to the old server for accounts that have not been migrated yet.

share|improve this answer
Thanks, sound exactly right! – Niclas Lindqvist Sep 5 '12 at 10:30
Do you have any experience with this kind of setup? Can I do something like line 1: -> in my environment; line 2: -> send to relay; like a catch all for the adresses not in the list, if you get what I mean? – Niclas Lindqvist Sep 5 '12 at 10:51
As documented in transport(5), domain wildcards are supported. – adaptr Sep 6 '12 at 10:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.