This python3 program is meant to be run on a working Pi-Star system. It will monitor incoming DAP GW traffic for messages sent to a specified RIC. When detected, it will trigger an email with the contents of the pager message.
This is a great way to play with POCSAG paging for amateur radio without having to first invest in a pager.
Thanks to the DAPNET (Decentralized Amateur Paging Network) folks for providing the backend that makes all this work. Thanks to G4KLX for providing the gateway software and to MW0MWZ for including it in his Pi-Star distribution.
For more information about amateur radio paging, see https://hampager.de.
Configuration needs to be done in the /etc/dapgw2email.conf file. You may specify one primary RIC and up to 9 Rubrics (or other RICs). If using authenticated SMTP on port 465, be sure to set the USE_SSL option and enter your email username and password.
Pi-Star is restrictive about outbound access, so you'll need to add a firewall rule to allow the outbound email access. These go in /root/ipv4.fw:
iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 465 -j ACCEPT
You only need the rule for the port that you will use. sudo pistar-firewall reloads the ruleset without having to reboot.
The latest release is available as a .deb package. See:
https://github.com/K2IE/dapgw2email/releases
The package includes a systemd unit .service file and a .timer file. Enable the .timer file after you have installed and configured the package. Do not enable the .service but start it.
sudo systemctl daemon-reload
sudo systemctl enable dapgw2email.timer
sudo systemctl start dapgw2email.service
This software is offered under the terms of the GNU General Public License v3.0.
Dan Srebnick (K2IE)
February 12, 2020 (rev. 12/04/2020)