diff --git a/server/seeker/opt/fetch/mail/fetchmailrc b/server/seeker/opt/fetch/mail/fetchmailrc new file mode 100755 index 0000000..fa35d64 --- /dev/null +++ b/server/seeker/opt/fetch/mail/fetchmailrc @@ -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" diff --git a/server/seeker/opt/fetch/mail/keywords/full-disclosure b/server/seeker/opt/fetch/mail/keywords/full-disclosure new file mode 100644 index 0000000..4eea4b8 --- /dev/null +++ b/server/seeker/opt/fetch/mail/keywords/full-disclosure @@ -0,0 +1,4 @@ +wireshark +tcpdump +wordpress +bash diff --git a/server/seeker/opt/fetch/mail/procmailrc b/server/seeker/opt/fetch/mail/procmailrc new file mode 100644 index 0000000..d560132 --- /dev/null +++ b/server/seeker/opt/fetch/mail/procmailrc @@ -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