server: seeker - fetch messages, filter, send via mqtt

This commit is contained in:
root 2016-05-14 20:31:01 +02:00
parent 41074b75e8
commit aad12f246f
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,10 @@
set no bouncemail
set daemon 10
set logfile /opt/fetch/mail/fetchmail.log
poll mail.br0tkasten.de protocol POP3
user "fetch"
password "xxxx"
fetchall
no ssl
mda "/usr/bin/procmail -m /opt/fetch/mail/procmailrc %T"

View File

@ -0,0 +1,4 @@
wireshark
tcpdump
wordpress
bash

View File

@ -0,0 +1,25 @@
LOGFILE=/opt/fetch/mail/procmail.log
:0 fhw
| formail -I "X-Keyword: 0"
:0 fBW
* ? grep -iqf /opt/fetch/mail/keywords/full-disclosure
| formail -I "X-Keyword: 1"
:0
* ^X-Keyword: 0
/dev/null
:0c
| formail -I "" >> /opt/fetch/mail/mail.bodies
:0
| formail -I "" | /usr/bin/mosquitto_pub -h mqtt.lxc.br0tkasten.de -i seeker -t notify/full-disclosure -s
:0
/dev/null
#:0
#/opt/fetch/mail/mail.mbox