configure osx to send mail
https://www.developerfiles.com/how-to-send-emails-from-localhost-mac-os-x-el-capitan/
1
2
sudo vi /etc/postfix/main.cf
Yahoo SMTP
relayhost=smtp.mail.yahoo.com:465
sasl password
sudo vi /etc/postfix/sasl_passwd
Create the Postfix lookup table from the sasl_passwd file. (This will create the file sasl_passwd.db)
sudo postmap /etc/postfix/sasl_passwd
create postfix lookup table
sudo postmap /etc/postfix/sasl_passwd
restart postfix
sudo postfix reload
test email
date | mail -s testing your_email@gmail.com
You can check the mail queue and the posible delivery errors using “mailq“
mailq
Use the postfix logs to ensure everything is working as expected:
tail -f /var/log/mail.log
To clear the mail queue:
sudo postsuper -d ALL alias created ‘clear_mailq’
This post is licensed under CC BY 4.0 by the author.
Comments powered by Disqus.