For the Linux server editions which doesn’t have GUI interface can use command line mail clients to access remote mailboxes. This tutorial will help you to access mailbox with POP/IMAP on Linux terminal.
Mutt
Mutt is a mail user agent, a powerful text-based email client for Unix-like (Linux) operating systems. You can easily use this tool on the command line to access remote mailboxes. You can install mutt package from default package repositories on most of the popular Linux operating systems.
Let’s try to connect to your remote mailbox using IMAP or POP3 protocol as described below.
Access Mailbox via IMAP
The IMAPs (Secure IMAP) protocol works on default port 993. You can connect Mailbox using IMAPs protocol as the following command. This will prompt for username and password if authentication is required by the remote system. The insecure IMAP works on default port 143. If you Mailbox provider provides you this options also, You can use the following command.
Access Mailbox via POP3
The POP3s (Secure IMAP) protocol works on default port 995. You can connect Mailbox using POP3s protocol using the following command. This will prompt for username and password if authentication is required by the remote system. Also you can connect your Mailbox with insecure POP3 prototocol on port 110.