fetchmail

Fetch emails from remote POP, IMAP, ETRN or ODMR servers

brewmacoslinux
Try with needOr install directly
Source

About

Client for fetching mail from POP, IMAP, ETRN or ODMR-capable servers

Commands

fetchmail

Examples

Fetch mail from configured servers in ~/.fetchmailrc$ fetchmail
Fetch mail from specific server with username and password$ fetchmail -u username -p password mail.example.com
Fetch mail and keep messages on server$ fetchmail -k mail.example.com