File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 242242
243243 fredrick-pipe unix - n n - - pipe
244244 flags=Fq user=servicemailer argv=/usr/bin/nice /etc/postfix/service-scripts/fredrick-reply.sh
245+
246+ fritz-report-pipe unix - n n - - pipe
247+ flags=Fq user=servicemailer argv=/usr/bin/nice /etc/postfix/service-scripts/fritz-report-pipe.sh
245248 tags :
246249 - role::postfix
247250 - role::postfix::service-scripts
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ # {{ ansible_managed }}
3+ #
4+ # Forwards emails sent to fritz-report@pydis.wtf to the fritz-report service.
5+ # This generates a Discord report for information from Chris's Fritz!Box router.
6+
7+ # Write mail to a temporary file
8+ TEMPFILE=$( mktemp /tmp/fritz-pipe.XXXXXX)
9+ cat > " $TEMPFILE "
10+
11+ # Run the FRITZ!Box Discord binary with the email as input
12+ /home/joe/scripts/fritz-router-discord " $TEMPFILE "
13+
14+ # Clean up the temporary file
15+ rm " $TEMPFILE "
Original file line number Diff line number Diff line change 22#
33# Postfix Mail Transport Map
44
5- fortune@int.pydis.wtf fortune-pipe:
5+ fortune@int.pydis.wtf fortune-pipe:
66
7- fredrick@pydis.wtf fredrick-pipe:
7+ fredrick@pydis.wtf fredrick-pipe:
8+
9+ fritz-report@int.pydis.wtf fritz-report-pipe:
You can’t perform that action at this time.
0 commit comments