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,

try

code: select all

rewritedomain=gmail.com 
believe commenting out

code: select all

fromlineoverride=yes 
helps , (the default seems "no" ?!)


use gmail + ssmtp setup.

ghans


raspberrypi



Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support