Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

Changes

Mutt

2,120 bytes added, 16:02, 2 June 2020
References
= Mutt VT"''All mail clients suck. This one just sucks less.''"<ref>http:/Google Mail Setup =/www.mutt.org/</ref>
This will cover basic mutt configuration files '''Mutt''' is a [[w:text user interface|text-based]] [[w:email client|email client]] for connecting to VT webmail[[w:Unix-like|Unix-like]] systems. VT recommends using POP until It was originally written by Michael Elkins in 1995 and released under the quota system is in place because POP will store local copies, but IMAP still works[[w:GNU General Public License|GPL]] version 2 or any later version.<ref>https://en. These settings will get mutt working with VT's email servers, but there are other settings you probably want if you are unfamiliar with muttwikipedia.org/wiki/Mutt_%28email_client%29</ref>
Mutt was originally designed as a [[w:Mail User Agent|Mail User Agent]] (MUA) and relied on locally accessible mailbox and [[w:sendmail|sendmail]] infrastructure. According to the Mutt homepage "though written from scratch, Mutt's initial interface was based largely on the [[w:Elm (email client)|ELM mail client]]". New to Mutt were message scoring and threading capabilities. Support for fetching and sending email via various protocols such as [[w:POP3|POP3]], [[w:IMAP|IMAP]] and [[w:Simple Mail Transfer Protocol|SMTP]] was added later. Mutt relies on external tools for composing and filtering messages. == IMAP Mutt VT/Google Mail Setup ==Anything VT email lives in all caps should be replaced Google GSuite (i.e. gmail). Because GSuite is deprecating "less secure devices/app-passwords",you will need to use IMAP and SMTP with your informationthe XOAUTH2 authentication method.<pre>set imap_user = "PID@vtMost mutt users use [[isync|isync/mbsync]] or [[offlineimap]] as imap reader tools.edu"mbsync is better;offlineimap has longstanding bugs with conflicting message IDs that can cause messages to be deleted, set imap_pass = "PASSWORD"and it is much easier to configure mbsync with multiple imap accounts, however mbsync's auth pluginset from = "PID@vtsupport is fragile, while offlineimap has built-in XOAUTH2 support.edu"set folder = "imapsMutt has some [http://imapwww.mutt.vtorg/doc/manual/#oauth internal] OAUTH support that can be used.eduAlternately,use an external tool like [https:993"set spoolfile = "+Inbox"set hostname = vt//github.eduset postponed = "+Drafts"set record = "+Sent"<com/cscorley/pre>send.py send.py] as your sendmail drop-in.
If trash The caveat of setting up [[OAUTH2]] is compiled into mutt that Google has disabled trial credential creation in billedaccounts (i.e. GSuite), so you *cannot* use your VT account to create them. Further, to reduce abuse,Google must approve all public apps; a warning pops up if it is not approved, which can add:only<pre>be bypassed if you are the owner of the application. In short, you must create OAUTH credentialsset trash = "+Trash"with a non-GSuite google account, add your @vt.edu account to the project, and then use it to</pre>log in.
== POP LUUGmail ==Coming soon...
== SMTP ==<pre>set smtp_url = "smtps:Acidburn currently has functional postfix//PID@vt.edu@auth.smtp.vtdovecot.edu:465/"set smtp_pass = "PASSWORD</pre>If you are using GnuTLS in mutt and get an error saying the key This is too small. GnuTLS supports 256 AES, but how to use it defaults to 128 when connectingwith mutt. For this you must add this:<pre>set ssl_min_dh_prime_bits = 500</pre>
= LUUGmail === IMAP/SMTP for acidburn ===
This is a sample configuration for imap/smtp in mutt for acidburn, provided by [[User:echarlie|echarlie]]
folder-hook $folder 'source ~/.mutt/vtluug'
</pre>
 
== Local Mail on acidburn ==
 
This is how one would read and send local mail on acidburn. This is a fully functional <code>.muttrc</code>, however we
would suggest setting your mutt editor, setting your encoding preference (UTF-8), and changing keybindings to preference.
 
 
<pre>
set mbox_type=Maildir #acidburn uses maildirs
set folder=$HOME/Maildir
set spoolfile=+/
set header_cache=~/.cache/mutt #optional; header caching speeds things up
 
set my_user=wadsworth
 
set realname = "Wadsworth Luugbot"
set from = wadsworth@vtluug.org
set use_from = yes
 
# This is needed if you want to send from another ldapified server
#set smtp_url=smtps://$my_user:$my_pass@acidburn.vtluug.org:587
#set ssl_force_tls = yes
</pre>
 
== References ==
[[Category:Howtos]]
[[Category:Software]]
[[Category:Mail clients]]
[[Category:Needs restoration]]