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 me@yahoo.com < 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
root=me@yahoo.com
UseTLS=YES
AuthMethod=LOGIN
AuthUser=me@yahoo.com
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 me@yahoo.com -s "subject" -r smtp.mail.yahoo.com -p 587 -tls -m login -u me@yahoo.com -i pa$$w0rd me@yahoo.com < email.txt
mailhub=smtp.gmail.com:465
– kenn Jan 13 '15 at 17:32