server: seeker - fetch messages, filter, send via mqtt
This commit is contained in:
parent
41074b75e8
commit
aad12f246f
10
server/seeker/opt/fetch/mail/fetchmailrc
Executable file
10
server/seeker/opt/fetch/mail/fetchmailrc
Executable 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"
|
4
server/seeker/opt/fetch/mail/keywords/full-disclosure
Normal file
4
server/seeker/opt/fetch/mail/keywords/full-disclosure
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
wireshark
|
||||||
|
tcpdump
|
||||||
|
wordpress
|
||||||
|
bash
|
25
server/seeker/opt/fetch/mail/procmailrc
Normal file
25
server/seeker/opt/fetch/mail/procmailrc
Normal 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
|
Loading…
x
Reference in New Issue
Block a user