andyross34
Posts: 8
Joined: Thu Oct 30, 2014 9:53 am

Trouble trying to setup mail on rasberry pi

Fri Oct 31, 2014 11:37 am

Hello i have been trying to be able to alert myself through email if motin is dectedted through my camera, i have been following this tutorial : http://iqjar.com/jar/sending-emails-fro ... pberry-pi/

I hit trouble when it wants me to edit the SSMTP configuration file:

nano /etc/ssmtp/ssmtp.conf

I just get Permission denied when i try to save as that file, i wasn't sure how to be able to edit it ? i believe i've edited it before so that is why it wont let me but does anyone know a solution ?

thanks

RogerFulcher
Posts: 5
Joined: Sat Jul 28, 2012 11:22 am
Location: Plymouth

Re: Trouble trying to setup mail on rasberry pi

Fri Oct 31, 2014 11:43 am

Use:-

sudo nano /etc/ssmtp/ssmtp.conf

andyross34
Posts: 8
Joined: Thu Oct 30, 2014 9:53 am

Re: Trouble trying to setup mail on rasberry pi

Fri Oct 31, 2014 11:51 am

Worked thank you :) :D

Now im stuck again, sorry, At this point:

"You should create one line for all the users in your system from which you plan to be able to send emails. For example:

root:root@your.domain:smtp.gmail.com:587
www-data:yourwebpagesname@your.domain:smtp.gmail.com:587"

Im not sure how to write this: My email is andyross324@gmail.com but d o i write this as follows ? :
root:root@andyross324@gmail.com:smtp.gmail.com:587

Then not sure what to put for the "www-data...... etc" at all ?

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Trouble trying to setup mail on rasberry pi

Fri Oct 31, 2014 2:31 pm

Reread the tutorial you are following.

The sample configuration line you are querying is NOT in ssmtp.conf, it is in revaliases

Googling for information about this file finds useful hits, including this one - http://www.boristheengineer.co.uk/slug/ ... _ssmtp.htm

This shows that the format of the revaliases file is:

Code: Select all

# Format: local_account:outgoing_address:mailhub

Return to “Troubleshooting”