SSMTP - Tearing Out My Hair - Raspberry Pi Forums
ssmtp - tearing out hair
in looking on-line see several tutorials on how set raspberry pi send email command line using ssmtp. people comment on postings have working (circa 2013). others doesn't work them. i'm 1 of latter. no ssmtp joy on pi.
goal have pi email me status updates on environmental events in home. i'll move phython program, i'm trying simple outbound email test message via command line proof of operation.
below contents of ssmtp.conf file , revaliases file. these configured google mail. know login , password values *work* google mail because can use web browser access account via gmail website interface values.
=======================
ssmtp.conf file
=======================
authuser=3721735@gmail.com
authpass=* (actual value not "*")
fromlineoverride=yes
usestarttls=yes
mailhub=smtp.gmail.com:587
root=3721735@gmail.com
hostname=3721735@gmail.com
=======================
revaliases file
=======================
pi:3721735@gmail.com:smtp.gmail.com:587
root:3721735@gmail.com:smtp.gmail.com:587
==
when enter on command line
echo "sample text" | mail -s "subject" me@hotmail.com
response says
mail: cannot send message: process exited non-zero status
if type on command line $? says "-bash: 36: command not found" (does mean mail returned error code of 36? , if error code of 36 mail mean?
if enter on command line "tail /var/log/syslog" relevant output says
mar 18 20:38:28 raspberrypi ssmtp[8656]: creating ssl connection host
mar 18 20:38:28 raspberrypi ssmtp[8656]: ssl connection using rsa_arcfour_sha1
mar 18 20:38:29 raspberrypi ssmtp[8656]: authorization failed (534 5.7.14 https://support.google.com/mail/bin/ans ... swer=78754 r102sm12558092qkh.12 - gsmtp)
looks pi not validated gmail.
know trying send email pi using ssmtp through own website , asking admin host @ log files see looks on side why didn't work, indication email coming "pi@raspberrypi" (and not authuser= value put in ssmtp.conf file).
@ point i'm totally stumped. knowledge of linux pretty limited. if knows i'm doing wrong i'd grateful suggestions. also, ensure gmail hasn't changed authentication process, currently, successfully, able send outbound mail pi through gmail using ssmtp?
thanks,
in looking on-line see several tutorials on how set raspberry pi send email command line using ssmtp. people comment on postings have working (circa 2013). others doesn't work them. i'm 1 of latter. no ssmtp joy on pi.
goal have pi email me status updates on environmental events in home. i'll move phython program, i'm trying simple outbound email test message via command line proof of operation.
below contents of ssmtp.conf file , revaliases file. these configured google mail. know login , password values *work* google mail because can use web browser access account via gmail website interface values.
=======================
ssmtp.conf file
=======================
authuser=3721735@gmail.com
authpass=* (actual value not "*")
fromlineoverride=yes
usestarttls=yes
mailhub=smtp.gmail.com:587
root=3721735@gmail.com
hostname=3721735@gmail.com
=======================
revaliases file
=======================
pi:3721735@gmail.com:smtp.gmail.com:587
root:3721735@gmail.com:smtp.gmail.com:587
==
when enter on command line
echo "sample text" | mail -s "subject" me@hotmail.com
response says
mail: cannot send message: process exited non-zero status
if type on command line $? says "-bash: 36: command not found" (does mean mail returned error code of 36? , if error code of 36 mail mean?
if enter on command line "tail /var/log/syslog" relevant output says
mar 18 20:38:28 raspberrypi ssmtp[8656]: creating ssl connection host
mar 18 20:38:28 raspberrypi ssmtp[8656]: ssl connection using rsa_arcfour_sha1
mar 18 20:38:29 raspberrypi ssmtp[8656]: authorization failed (534 5.7.14 https://support.google.com/mail/bin/ans ... swer=78754 r102sm12558092qkh.12 - gsmtp)
looks pi not validated gmail.
know trying send email pi using ssmtp through own website , asking admin host @ log files see looks on side why didn't work, indication email coming "pi@raspberrypi" (and not authuser= value put in ssmtp.conf file).
@ point i'm totally stumped. knowledge of linux pretty limited. if knows i'm doing wrong i'd grateful suggestions. also, ensure gmail hasn't changed authentication process, currently, successfully, able send outbound mail pi through gmail using ssmtp?
thanks,
try
believe commenting out
helps , (the default seems "no" ?!)
use gmail + ssmtp setup.
ghans
code: select all
rewritedomain=gmail.com
code: select all
fromlineoverride=yes
use gmail + ssmtp setup.
ghans
raspberrypi
Comments
Post a Comment