It depends more on what email provider you are using than the client. You need to be using an IMAP or Exchange server. Then you just set up both devices to that account. In he Mac's Mail app you want to make sure you are copying your emails to folders on the server, not folders under the On My Mac list.
Who is your email provider?