Email on Mutt
Incoming Mail
Assuming support has been compiled in this should get you connected with IMAPS:
$ cat .muttrc set realname="Email Test" set from="email@testing.me.uk" set use_from=yes set edit_headers = yes # Auto purge set delete=yes # Tidy header view ignore * unignore from date subject to cc unignore organization organisation x-mailer: x-newsreader: x-mailing-list: unignore posted-to: # Server is sub-domain of aa.net.uk to play nice with SSL certs # Automatically log in to this mailbox at startup set spoolfile="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/" # Set INBOX ('=' folder) at startup set folder="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/" set record="=Sent" set postponed="=Drafts" # always use SSL when connecting to the server set ssl_force_tls=yes # Automatically enter mailbox unset imap_passive # Poll subscribed mailboxes for new mail set imap_check_subscribed # Reduce polling frequency set mail_check=60 # Poll the current mailbox more often set timeout=10 # Cache of message headers set header_cache=~/.hcache
Replacing 'imaps' with 'pop' will enable POP3. Of course you no longer need the IMAP specific options if you're using POP3:
$ cat .muttrc
set realname="Email Test" set from="email@testing.me.uk" set use_from=yes set edit_headers = yes # Auto purge set delete=yes # Tidy header view ignore * unignore from date subject to cc unignore organization organisation x-mailer: x-newsreader: x-mailing-list: unignore posted-to: # Server is sub-domain of aa.net.uk to play nice with SSL certs # Automatically log in to this mailbox at startup set spoolfile="pop://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/" # Set INBOX ('=' folder) at startup set folder="pop://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/" set record="=Sent" set postponed="=Drafts" # always use SSL when connecting to the server set ssl_force_tls=yes
Outgoing Mail
Mutt uses the local host's SMTP relay, so sending is beyond the scope of this article.