![]() The most basic way to send mail is trough a telnet session with the smtp server of your provider/network. The last but crucial step is making sure your Keychain has the information exactly in the format that msmtp will expect it: If you use brew it will be /usr/local/bin/msmtp so the file would look like this: set sendmail="/usr/local/bin/msmtp" Then you need a ~/.mailrc file to say where the msmtp binary is located. I put mine in ~/Dropbox/Thawte Roots so that I can have it on all of my Macs. Note that tls_trust_file line should point to wherever you have downloaded and installed the certificates from. # You need to set a default account for Mail ![]() Tls_trust_file /path/to/Thawte Roots/Thawte SSLWeb Server Roots/thawte Premium Server CA/Thawte Premium Server CA.pem # This next line should all be on one long line: # If this doesn't work, check the mstmp documentation ![]() ![]() # this next line is crucial: you have to point to the correct security certificate for GMail. # Set default values for all following accounts. The first is /usr/local/etc/msmtprc # Begin msmtprc Then the rest is just a matter of setting up the related configuration files I have written up HOWTOs for both of them:Ĭonfiguration is complicated enough that I'm not sure if I should replicate all of the steps here, but I will mention that if you use There are two programs that I am aware of which will easily allow you to configure your Mac to send email from the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |