Configuring SDU e-mail to be able to open it, read and send mails form the command line in Ubuntu. Mutt is a small but very powerful text-based mail client for Unix operating systems.
For tutorials and man pages visit Mutt's website
Install mutt and create main directories:
$ sudo apt-get install mutt
$ sudo mkdir ~/.mutt/cache/headers
$ sudo mkdir ~/.mutt/cache/bodies
$ sudo touch ~/.mutt/certificates
There are two configuration files in the repo. muttrc contains the credentials and basic confuguration data, while mailcap is just for dealing with HTML emails. Download this repo and edit the muttrc file in the fields indicated in the comments.
$ git clone <repo url>
$ vim muttrc
$ cp muttrc ~/.muttrc
$ cp mailcap ~/.mailcap
To verify that everything is working enter mutt by the command:
$ mutt
Check that the INBOX is working. Then, to compose and send a test mail type m in the main menu and start following indications displayd on top of the mutt interface.