Hello people!
I need help! fb_mail not working properly after the Fhem update
my data
Fritz!Box 7390 OS 6.03
Fhem 5.7
fb_mail configured as it described in the fhem WIKI
error message from the fhem.log is:
2016.02.26 03:15:00 3: weathermail return value: -1
sh: can't create /var/tmp/fhem_nachricht.txt: Permission denied
rm: can't remove '/var/tmp/fhem_nachricht.txt': No such file or directory
So the mail message could be sent, but Events parsing to the subject of the msg is not possible as the fb_mail not write a thing to the msg body.
Thank you. Birdstreet
You install fhem on the fritzbox?
Could you check the permission of the directory /var/tmp?
ls -lhad /var/tmp
Hello thanks for reply!
Fhem was installed on Fritz!Box for many years and that E-mail problem had happen after the update.
I checked CHMOD with help of your code and it is not looking good:
drwxr-x---
What code do I have to use to change the permission and to fix the problem.
Thank You
Wich user?
And please, give us the output:
ls -lhad /var/tmp
the outpoot is:
drwxr-x--- 5 root root 1.8K Feb 29 20:30 /var/tmp
Sorry but i did not understand you question: "Which user?"
The user is root, see your output. The User fhem can not write in this direktory.
But ... I don't know, wich Processes write in this Direktory.
So you can change the Owner of the directory, or the permission. I think, the permission is the best:
chmod 777 /var/tmp
Sorry, my english is not so ... good
[/code]
Thank you very much! I got the fb_mail working.
Problem was in the permissions and wrong syntax in the EVENT definition.
You english is Ok, my knowledge of the codes and programming slang ........ is poor.
Have a nice Day.