Email on Mutt: Difference between revisions

Back up to the Email Clients Category
From AAISP Support Site
(Created page with "There are too many settings for Mutt for us to give a comprehensive example of what will work for you, but assuming support has been compiled in this should get you connected ...")
 
(→‎top: clean up)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<indicator name="Faults">[[File:Menu-email.svg|link=:Category:Email Clients|30px|Back up to the Email Clients Category]]</indicator>
There are too many settings for Mutt for us to give a comprehensive example of what will work for you, but assuming support has been compiled in this should get you connected with IMAPS:


== Incoming Mail ==


Assuming support has been compiled in this should get you connected with IMAPS:
$ cat .muttrc


$ cat .muttrc
set realname="Email Test"
set realname="Email Test"
set from="email@testing.me.uk"
set from="email@testing.me.uk"
Line 17: Line 21:
# Automatically log in to this mailbox at startup
# Automatically log in to this mailbox at startup
set spoolfile="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
set spoolfile="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
# Set INBOX ('=' folder) at startup
# Define the = shortcut, and the entry point for the folder browser (c?)
set folder="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
set folder="imaps://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
set record="=Sent"
set record="=Sent"
set postponed="=Drafts"
set postponed="=Drafts"
# always use SSL when connecting to a server
# always use SSL when connecting to the server
set ssl_force_tls=yes
set ssl_force_tls=yes
# Don't wait to enter mailbox manually
# Automatically enter mailbox
unset imap_passive
unset imap_passive
# Automatically poll subscribed mailboxes for new mail (new in 1.5.11)
# Poll subscribed mailboxes for new mail
set imap_check_subscribed
set imap_check_subscribed
# Reduce polling frequency to a sane level
# Reduce polling frequency
set mail_check=60
set mail_check=60
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11
# Poll the current mailbox more often
set timeout=10
set timeout=10
# keep a cache of headers for faster loading (1.5.9+?)
# Cache of message headers
set header_cache=~/.hcache
set header_cache=~/.hcache
# Display download progress every 5K
set net_inc=5


Replacing 'imaps' with 'pop' will enable POP3. Of course you no longer need the IMAP specific options if you're using POP3:
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
# Automatically log in to this mailbox at startup
set spoolfile="pop://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
set spoolfile="pop://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
# Set INBOX ('=' folder) at startup
# Define the = shortcut, and the entry point for the folder browser (c?)
set folder="pop://email@testing.me.uk@testing.me.uk.mail.aa.net.uk/"
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. On most modern Linux boxes it should "just work" though.



[[Category:Email Clients|Mutt]]

Latest revision as of 23:53, 17 August 2018


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. On most modern Linux boxes it should "just work" though.