Setup smtp on your Mac and send mail from the command line

Install msmtp and create a directory which will hold the ssl-certificates.

Create a system-wide config-file in /usr/local/Cellar/msmtp/1.6.6/etc/msmtprc

Set up to use msmtp

Save your Gmail password in your keychain:

  1. open Keychain Access application on mac
  2. create new password item: File > New Password Item
  3. Keychain Item Name: smtp://
  4. Account Name (exactly as used in msmtprc): <address>
  5. Password: <gmail_password>
  • […] NB: Kijk dan of je mail ook daadwerkelijk binnenkomt in je mailbox. Zo niet, installeer dan het programma msmtp. […]

  • >