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 have a mail server for a domain Currently all users’ mail box is also in the same server. Now my office is starting its operation in multiple Countries. How can I have mailbox store of the users in one country to be stored locally in a server in that country office server. My current setup is a combination of Postfix + Courier IMAP + MySQL + Amavisd-new + SpamAssassin + ClamAV + SASL . Basically what I need is user A's mails should go to the server in Country A and user B's mails should go to the server in Country B. If my question is not clear enough I am open to questions. One main thing here is the domain name should be the same for all users. I cannot have an id like or

share|improve this question

migrated from Jan 29 '10 at 12:01

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

Use postfix transport maps.

e.g. in

transport_maps = /etc/postfix/transport

in /etc/postfix/transport:


The run postmap /etc/postfix/transport ; postfix reload

That will deliver email for user1 and user2 to

If you don't specify anything in the transport map, the default transport (which is usually deliver locally) will be used. You'll also need to make sure both sets of users are accepted as valid recipients on this machine (usually by making sure they have accounts)

It's also a good idea to split mail routing out from your mailbox server and do routing/spam/virus etc filtering on frontend MX machines.

share|improve this answer
+1 for short thorough answer. – Patrick R Jan 29 '10 at 14:57

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.