# pinHP Alarm Mail

Alarm Mail

About

Did you ever leave your game room for "just a minute" and forgot to come back before the next weekend? Receive an email that the system is still up and running after a specified amount of time. Alarm Mail is a pinHP Arcade Image built-in feature.

This is the stand-alone Raspberry Pi solution, to be connected to your LAN or Wi-Fi and to be switched on and off together with your gameroom toys. The file system is read-only, it is safe to simply power off the Raspberry Pi.

To be configured inside "rpi2jamma/.mail" on the SD card's DOS RPI_DATA partition. Write the image to an SD card (min. 4 GB) using the imager of your choice (Win32DiskImager is included with the distribution). This image is not as plug and play as the Arcade image, there is no fancy interface. It requires some configuration to set up your email account, as explained in the readme.

Download

Download pinHP alarm mail image for Pi3 / Pi4:
  pinhp_alarm_mail_pi3_pi4_27NOV21.zip
(File size 773 MB)

readme.txt


################################
### pinHP alarm mail script ###
### http://pinhp-image.com ###
################################


########## SYSTEM SETUP ##########

SSH login:
USERNAME / PASSWORD
pinhp / root
root / root

To configure email, two files
MUST be edited:
ssmtp.conf and mail_alarm.txt, located in the .mail directory on the DOS RPI_DATA partition (mounted at /mnt/data)

OPTIONAL:
mail_start.txt, if you want to be able to receive start notification emails.
config.ini, which is preconfigured, see the comments inside.

FILE SYSTEM:
The Linux file system is read only, it may be simply powered off.
Make it writeable: /usr/local/bin/writeenable.sh
Make it read only: /usr/local/bin/readonly.sh

Send a test mail: /usr/local/bin/test.sh


########## MAIL SETUP ##########

I have successfully tested a setup with a live gmx.com account.
As an example, let's assume the following fake acoount. Replace email and password with yours:

Email/Login: myrealmail@gmx.com
Password: Supers3cretpa$$word

### BEGIN example ssmtp.conf ###

mailhub=mail.gmx.com
RewriteDomain=gmx.com
AuthUser=myrealmail@gmx.com
AuthPass=Supers3cretpa$$word
AuthMethod=LOGIN
FromLineOverride=YES
UseTLS=YES
UseSTARTTLS=YES
TLS_CA_File=/etc/ssl/certs/ca-certificates.crt

### END example ssmtp.conf ###


In mail_alarm.txt / mail_start.txt you need to edit the "To:" and "From:" fields.
GMX requires the "From:" field to match your authenticated email address.
The "To:" field obviously, takes the address where you want the alarm mail to be sent to.

### BEGIN example mail_alarm.txt ###

To:myrealmail@gmx.com
From:myrealmail@gmx.com
Subject: ARCADE

Up and running!

### END example mail_alarm.txt ###


Additional information:
https://wiki.archlinux.org/index.php/SSMTP