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

Say I want users A and B to receive each other's mail under Postfix. Is there a way to set this up as root? My first approach hasn't worked. Namely, under /etc/aliases, the following:

A: A, B
B: B, A

causes an understandable forwarding loop.

Thanks in advance for your help.

share|improve this question
If you're using IMAP and both users are on the same IMAP server, it might be cleaner to have each user subscribe to the other's mail boxes, rather than muck through mail forwarding. – cjc Sep 15 '12 at 15:08
up vote 2 down vote accepted

Give user A and B a different login : C and D.

Then configure A and B to be aliases for both C and D.

To make it clear : A and B wont be real nor virtual users anymore, just aliases.

  • will redirect all mail to and

  • will redirect all mail to and

C and D will both recieve all mails.

Don't disclose C and D and configure their mail client with and as their main mail adress : Try to make sure no legitimate mail is written directly to C and D.

Is it what you are trying to achieve?

share|improve this answer
Thanks, that does it. I was hoping there would be a cleaner approach. It is disappointing that Postfix can't understand the original syntax... Thanks again. – ezequiel-garzon Sep 16 '12 at 0:53

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.