Difference between sharing mail box and sharing memory

Hi,
I am a bit confused and mixing the concepts that "In Indirect Communication, two processes can only communicate if they mail box." Sharing a mail box is like sharing memory. I am bit confused that the main theme of IPC is to avoid sharing memory for process communication. But here the technique is based on sharing the mail box.
Thanks.
