Trying to send an email from Ubuntu 14.04 to yahoo smtp.
My ip address at home changes and I would like to know it during the day. I was just using wget http://wtfismyip.com/text
and then I want to email the result of that to myself.
I get this error after running ssmtp [email protected] < text
:
ssmtp: 553 From address not verified - see
http://help.yahoo.com/l/us/yahoo/mail/original/manage/sendfrom-07.html
I looked at the webpage but it doesn't help.
Here is my /etc/ssmtp/ssmtp.conf
:
mailhub=smtp.mail.yahoo.com:587
FromLineOverride=YES
hostname=localhost
rewriteDomain=yahoo.com
[email protected]
UseTLS=YES
AuthMethod=LOGIN
[email protected]
AuthPass=xxxxxx
UseSTARTTLS=Yes
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
Maybe there is a command line that does it? It can be done in cygwin like so:
email -V -f [email protected] -s "subject" -r smtp.mail.yahoo.com -p 587 -tls -m login -u [email protected] -i pa$$w0rd [email protected] < email.txt
mailhub=smtp.gmail.com:465
– kenn Jan 13 '15 at 17:32