Open main menu

Linux and Unix Users Group at Virginia Teck Wiki β

Changes

Mutt

3,565 bytes added, 16:02, 2 June 2020
References
= Mutt Mail Setup ="''All mail clients suck. This one just sucks less.''"<ref>http://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 [[w:Unix-like|Unix-like]] systems. It was originally written by Michael Elkins in 1995 and released under the [[w:GNU General Public License|GPL]] version 2 or any later version.<ref>https://en.wikipedia.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. == Mutt VT webmail/Google Mail Setup == VT email lives in Google GSuite (i.e. VT recommends using POP until the quota system gmail). Because GSuite is in place because POP deprecating "less secure devices/app-passwords",you will store local copies, but need to use IMAP still worksand SMTP with the XOAUTH2 authentication method. These settings will get  Most mutt working users use [[isync|isync/mbsync]] or [[offlineimap]] as imap reader tools. mbsync is better;offlineimap has longstanding bugs with conflicting message IDs that can cause messages to be deleted, and it is much easier to configure mbsync with VTmultiple imap accounts, however mbsync's email serversauth pluginsupport is fragile, while offlineimap has built-in XOAUTH2 support. Mutt has some [http://www.mutt.org/doc/manual/#oauth internal] OAUTH support that can be used. Alternately,use an external tool like [https://github.com/cscorley/send.py send.py] as your sendmail drop-in. The caveat of setting up [[OAUTH2]] is that Google has disabled trial credential creation in billedaccounts (i.e. GSuite), but there are other settings so you probably want *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 onlybe bypassed if you are unfamiliar the owner of the application. In short, you must create OAUTH credentialswith a non-GSuite google account, add your @vt.edu account to the project, and then use it tolog in. == LUUGmail == Acidburn currently has functional postfix/dovecot. This is how to use it with mutt. === IMAP/SMTP for acidburn === This is a sample configuration for imap/smtp in mutt for acidburn, provided by [[User:echarlie|echarlie]]
== IMAP ==
Anything in all caps should be replaced with your information
<pre>
set realname = 'Wadsworth Luugbot' #your display name hereset imap_user = "PID@vtwadsworth #this should be your LDAP account nameset imap_pass=$my_luug_pass #Whatever your LUUG password is. Here we used a personal variable.edu"set imap_pass ssl_force_tls= "PASSWORD"yesset from ssl_starttls= "PID@vt.edu"yes set folder = "imapsimap://imap$imap_user@acidburn.vtvtluug.eduorg:993143/"set spoolfile = "+Inbox"INBOXset postponed = +Draftsset record = +sentset imap_check_subscribed set hostname pgp_sign_as = vt"wadsworth@vtluug.eduorg" # If you like pgp-signing things set postponed from = "+Draftswadsworth@vtluug.org" #### THIS IS IMPORTANT ####set record use_from = yesset smtp_url= smtp://$imap_user:$imap_pass@acidburn.vtluug.org:587 # this is for if you use multiple accounts. The ssl settings are necessary since we don't have a# certified tls key right nowaccount-hook $folder "+Sentset imap_user=$imap_user imap_pass=$imap_pass ssl_verify_dates=no ssl_verify_host=no"
</pre>
If trash is compiled This section assumes you are using mutt with multiple accounts. For that, we reccomend putting the following into <code>.muttrc/vtluug</code> or something similar, and having this in your <code>.mutt can add/muttrc</code> :
<pre>
set trash = source "+Trash~/.mutt/vtluug"folder-hook $folder 'source ~/.mutt/vtluug'
</pre>
== SMTP 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 wewould suggest setting your mutt editor, setting your encoding preference (UTF-8), and changing keybindings to preference.  
<pre>
set smtp_url mbox_type=Maildir #acidburn uses maildirsset folder=$HOME/Maildirset spoolfile= "smtps:+/set header_cache=~/PID@vt.educache/mutt #optional; header caching speeds things up set my_user=wadsworth set realname = "Wadsworth Luugbot"set from = wadsworth@authvtluug.smtp.vt.edu:465/"orgset smtp_pass use_from = "PASSWORDyes</pre>If # This is needed if you are using GnuTLS in mutt and get an error saying the key is too smallwant to send from another ldapified server#set smtp_url=smtps://$my_user:$my_pass@acidburn. GnuTLS supports 256 AES, but it defaults to 128 when connectingvtluug. For this you must add thisorg:587<pre>#set ssl_min_dh_prime_bits ssl_force_tls = 500yes
</pre>
 
== References ==
 
 
[[Category:Howtos]]
[[Category:Software]]
[[Category:Mail clients]]
[[Category:Needs restoration]]