This post describes the process for setting up macOS to read and store email locally –without deleting it from the remote server. The downloaded email can be read with a local application like Alpine.
The process goes like this:
fetchmail pulls emails from gmail fetchmail hands the emails to postfix for local delivery use alpine to read our locally delivered email use alpine to write an email, which uses postfix to relay it via gmail we can use sendmail for any other application that requires us to send emails Configuring the hostname From the Apple menu, open System Settings, and look for hostname.