Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
2  
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

1 Answer 1

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.

  • A@example.com will redirect all mail to C@example.com and D@example.com

  • B@example.com will redirect all mail to C@example.com and D@example.com

C and D will both recieve all mails.

Don't disclose C and D and configure their mail client with A@example.com and B@example.com 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. –  eze Sep 16 '12 at 0:53

Your Answer

 
discard

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.