SUP: What’s up?
Home Page, Under Ubuntu, there is package sup-mail, install it. Configure it using:
sup-config
Answer all question, if you are using gmail, then consult gmail’s help page. This process results in configuration file /home/UserName/.sup/config.yaml
I used editor “joe”, you may use editor of your choice like Vim, Emacs or Pico.
Mine file is ( /home/hsrai is Home folder):
---
:thread_by_subject: false
:confirm_no_attachments: true
:accounts:
:default:
:signature: /home/hsrai/.signature
:email: falseEmail.Org.Com@gmail.com
:alternates: []
:name: HSRai
:sendmail: msmtp --account=DotOrgDotCom -t
:edit_signature: true
:editor: /usr/bin/joe
:confirm_top_posting: true
:ask_for_to: true
:discard_snippets_from_encrypted_messages: false
:ask_for_cc: true
:default_attachment_save_dir: ""
:ask_for_bcc: false
:poll_interval: 300
:ask_for_subject: true
:sent_source: sup://sent
Install msmtp, and configure it. Mine configuration file (/home/hsrai/.msmtprc) is:
#Set default values for all following accounts.
defaults
logfile ~/Mail/.msmtp.log
# My SMTP
account DotOrgDotCom
host smtp.gmail.com
port 587
from falseEmail.Org.Com@googlemail.com
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
auth on
user falseEmail.Org.Com@googlemail.com
password k*e*e*p*I*T*s*e*c*r*e*t*
# Set a default account
account default : DotOrgDotCom
Change permissions:
chmod 600 ~/.msmtprc
Manage certificates.
Make a file named test.mail, with content
To: second@gne.com
From: first@gne.com
Subject: Test from command line
Hello, this is a test. Don't forget to change email ID in To and From above. These may be your two email IDs
and test email delivery by:
msmtp --account=foobar -t < test.mail
User Guide, replace “sup” with “sup-mail” in second line, helpful link1, SUP wiki, Mutt + GMail, more about certificates, SUP ReadMe, FAQs