Mutt: Difference between revisions

imported>Pew
No edit summary
Line 8: Line 8:
== Mutt VT/Google Mail Setup ==
== Mutt VT/Google Mail Setup ==


This will cover basic mutt configuration files for connecting to VT webmail. VT recommends using POP until the quota system is in place because POP will store local copies, but IMAP still works. These settings will get mutt working with VT's email servers, but there are other settings you probably want if you are unfamiliar with mutt.
VT email lives in Google GSuite (i.e. gmail). Because GSuite is deprecating "less secure devices/app-passwords",
you will need to use IMAP and SMTP with the XOAUTH2 authentication method.


=== IMAP ===
Most mutt users use [[isync|isync/mbsync]] or [[offlineimap]] as imap reader tools. mbsync is better;
Anything in all caps should be replaced with your information
offlineimap has longstanding bugs with conflicting message IDs that can cause messages to be deleted,
<pre>
and it is much easier to configure mbsync with multiple imap accounts, however mbsync's auth plugin
set imap_user = "PID@vt.edu"
support is fragile, while offlineimap has built-in XOAUTH2 support.
set imap_pass = "PASSWORD"
set from = "PID@vt.edu"
set folder = "imaps://imap.vt.edu:993"
set spoolfile = "+Inbox"
set hostname = vt.edu
set postponed = "+Drafts"
set record = "+Sent"
</pre>


If trash is compiled into mutt you can add:
Mutt has some [http://www.mutt.org/doc/manual/#oauth internal] OAUTH support that can be used. Alternately,
<pre>
use an external tool like [https://github.com/cscorley/send.py send.py] as your sendmail drop-in.
set trash = "+Trash"
</pre>


=== POP ===
The caveat of setting up [[OAUTH2]] is that Google has disabled trial credential creation in billed
Coming soon...
accounts (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 only
=== SMTP ===
be bypassed if you are the owner of the application. In short, you must create OAUTH credentials
<pre>
with a non-GSuite google account, add your @vt.edu account to the project, and then use it to
set smtp_url = "smtps://PID@vt.edu@auth.smtp.vt.edu:465/"
log in.
set smtp_pass = "PASSWORD
</pre>
If you are using GnuTLS in mutt and get an error saying the key is too small. GnuTLS supports 256 AES, but it defaults to 128 when connecting. For this you must add this:
<pre>
set ssl_min_dh_prime_bits = 500
</pre>


== LUUGmail ==
== LUUGmail ==