|
|
10.5: Send mail from Terminal using mail/sendmail
I found this hint very useful and wanted to illustrate its use based on the example of gmail as your outgoing SMTP server.
Here is the content of my main.cf file:
smtp_sasl_auth_enable = yes
As you can see I didn't use parameter, which appears to be not required for gmail. smtp_tls_per_site = hash:/etc/postfix/smtp_tls_sites The content of /etc/postfix/sasl_passwd file is [smtp.gmail.com]:587 your_email@gmail.com:your password after you create the file issue sudo chmod 400 /etc/postfix/sasl_passwd Generate the certificate (this was copied from post above) sudo security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain > /System/Library/OpenSSL/certs/cert.pem
Finally restart Postfix for good measure
sudo Postfix stop
Thats it. You can now send email though gmail. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.11 seconds |
|