17 Comments

  1. Juan C

    Oh man!

    Finally I've found something that really works!
    THANKS A LOT!

    Reply
  2. Ani Papyan

    Thanks a lot! it really helps

    Reply
  3. jason

    I use fedora13, and I get the following error when trying to send and email with mail command as you showed above.

    errormsg='cannot set X509 trust file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt for T
    LS session: Error while reading file.' exitcode=EX_NOINPUT

    I see that I do not have the Equifax_Secure_CA.crt file. How can I fix this problem.

    Thank you.

    Reply
    • Ito

      I'm also on Fedora (19) and I'm using file "/usr/share/kde4/apps/kssl/ca-bundle.crt" (package kdelibs)
      It works for me.

      Reply
  4. bk322

    Thanks, I've profited from this.

    Reply
  5. Luke Mackenzie

    I followed the insructions but get:

    send-mail: account default not found: no configuration file available

    Reply
  6. Tom

    nice, simple instructions. works a treat!
    is there any way to attach files?

    Reply
  7. Edward G Prentice

    To use with Gmail's two-step authentication, generate a password for msmtp and use that instead of your regular password in the .msmtprc file.

    http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833

    Reply
    • Linerd

      Thanks for the tip on 2 Factor authentication.

      Reply
  8. Mike

    Exactly what I was looking for and it works! Thanks!

    Reply
  9. James

    Perfect, and super-easy to set up (Ubuntu Precise here). Thanks!

    Reply
  10. unni smohan

    hi thanks this really worked.
    I need to know whether we can do it in redhat linux enterprise editon 5 also?
    if yes then how?

    Reply
  11. Menno

    Does this work if you normally use two-factor authentication for your gmail account?

    Reply
    • Ton van Overbeek

      Yes, works with two-factor authentication.
      You will have to generate an application specific password for msmtp on your pi on your Google account page.
      Use this application specific password in your .msmtprc file.

      Reply
      • Linerd

        Thanks for the tip!

        Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>