Domino Posted October 27, 2016 Share Posted October 27, 2016 Hello community I'm trying to send reports by email but no success. This is my configuration from the module From johndoe@gmail.com To johndoe@gmail.com SMTP Server smtp.gmail.com SMTP Port 587 Domain gmail.com Username johndoe@gmail.com Password johndoe_password Use TLS yes Use STARTTLS yes Also I've downgrade my security from Google Dashboard to use third party clients My log from /tmp/reporting.log 2016-10-27-20:00: Failed to save to SD card - no SD card found 2016-10-27-21:00: Failed to send email to johndoe@gmail.com 2016-10-27-21:00: Failed to save to SD card - no SD card found 2016-10-27-22:00: Failed to send email to johndoe@gmail.com 2016-10-27-22:00: Failed to save to SD card - no SD card found 2016-10-27-23:00: Failed to send email to johndoe@gmail.com 2016-10-27-23:00: Failed to save to SD card - no SD card found 2016-10-28-00:00: Failed to send email to johndoe@gmail.com 2016-10-28-00:00: Failed to save to SD card - no SD card found Any ideas? something wrong with gmail ? I have to tweak something with ssmtp ? Thanks Domino Quote Link to comment Share on other sites More sharing options...
Domino Posted October 28, 2016 Author Share Posted October 28, 2016 Forget the error - no SD card found. The reports files correctly write into the /tmp/ folder Quote Link to comment Share on other sites More sharing options...
Foxtrot Posted October 28, 2016 Share Posted October 28, 2016 Google's SMTP server port is 465, not 587 1 Quote Link to comment Share on other sites More sharing options...
Domino Posted October 30, 2016 Author Share Posted October 30, 2016 Thanks Foxtrot for your reply I've changed 587 to 465. The result it's the same. Failed to send email. Quote Link to comment Share on other sites More sharing options...
bitxo Posted October 31, 2016 Share Posted October 31, 2016 There is a bug in reporting module, You need to edit the /etc/ssmtp/ssmtp.conf and change it with your configuration. For example, configuration for GMAIL: root@Pineapple:/etc/ssmtp# cat ssmtp.conf # # /etc/ssmtp.conf -- a config file for sSMTP sendmail. # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=your_email@gmail.com # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=smtp.gmail.com:465 # Where will the mail seem to come from? rewriteDomain=gmail.com # The full hostname hostname=mail.gmail.com # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. FromLineOverride=YES # Use SSL/TLS to send secure messages to server. UseTLS=YES #UseSTARTTLS=Yes AuthUser=your_email@gmail.com AuthPass=your_gmail_password # Use SSL/TLS certificate to authenticate against smtp host. #UseTLSCert=YES # Use this RSA certificate. #TLSCert=/etc/ssl/certs/ssmtp.pem 1 1 Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted October 31, 2016 Share Posted October 31, 2016 1 hour ago, bitxo said: There is a bug in reporting module Which firmware are you on? This shouldn't be an issue anymore, not for longer time. Quote Link to comment Share on other sites More sharing options...
Domino Posted October 31, 2016 Author Share Posted October 31, 2016 2 minutes ago, Sebkinne said: Which firmware are you on? This shouldn't be an issue anymore, not for longer time. Hello Sebkinne For me I'm on : 1.1.1 I've done the changes into /etc/ssmtp.conf @bitxo but no success again. Failed to send ! I'll reboot the device Quote Link to comment Share on other sites More sharing options...
bitxo Posted October 31, 2016 Share Posted October 31, 2016 10 hours ago, Sebkinne said: Which firmware are you on? This shouldn't be an issue anymore, not for longer time. I had 1.1.2. Now, with 1.1.3 it works fine, thanks. Quote Link to comment Share on other sites More sharing options...
Domino Posted October 31, 2016 Author Share Posted October 31, 2016 It works ! I simply 'del' everything inside /etc/ssmtp.conf copy/paste Bitxo configs then reboot at the end. Great Thanks, Domino Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted October 31, 2016 Share Posted October 31, 2016 1 hour ago, bitxo said: I had 1.1.2. Now, with 1.1.3 it works fine, thanks. Glad to hear it. Quote Link to comment Share on other sites More sharing options...
pcliferight Posted January 19, 2019 Share Posted January 19, 2019 On 10/31/2016 at 2:31 AM, bitxo said: There is a bug in reporting module, You need to edit the /etc/ssmtp/ssmtp.conf and change it with your configuration. For example, configuration for GMAIL: root@Pineapple:/etc/ssmtp# cat ssmtp.conf # # /etc/ssmtp.conf -- a config file for sSMTP sendmail. # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=your_email@gmail.com # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=smtp.gmail.com:465 # Where will the mail seem to come from? rewriteDomain=gmail.com # The full hostname hostname=mail.gmail.com # Set this to never rewrite the "From:" line (unless not given) and to # use that address in the "from line" of the envelope. FromLineOverride=YES # Use SSL/TLS to send secure messages to server. UseTLS=YES #UseSTARTTLS=Yes AuthUser=your_email@gmail.com AuthPass=your_gmail_password # Use SSL/TLS certificate to authenticate against smtp host. #UseTLSCert=YES # Use this RSA certificate. #TLSCert=/etc/ssl/certs/ssmtp.pem I dont see the file i need to edit when i do into etc there is etthercap Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.