--- /dev/null
+require ["fileinto"];
+require ["reject"];
+require ["envelope"];
+require ["vacation"];
+
+# Oracle stuff
+if header :contains ["from"] ["replies@oracle-mail.com"] {
+ fileinto "Betrieb/Oracle" ;
+
+# Change announcements
+}
+elsif allof ( header :contains ["from"] ["8x5@pixelpark.com"],
+ header :contains ["subject"] ["Change: "]) {
+ fileinto "Betrieb/Change" ;
+
+# Confluence
+}
+elsif allof ( header :contains ["from"] ["confluence@pixelpark.com"],
+ header :contains ["from"] ["confluence@digitaspixelpark.com"]) {
+ fileinto "Betrieb/Confluence" ;
+
+# Incidents
+}
+elsif allof ( header :contains ["from"] ["8x5@pixelpark.com"],
+ anyof ( header :contains ["subject"] ["Incidentreport: "],
+ header :contains ["subject"] ["Incidentannouncement: "])) {
+ fileinto "Betrieb/Incident" ;
+
+# Myracloud
+}
+elsif anyof ( header :contains ["from"] ["noreply@myracloud.com"],
+ header :contains ["from"] ["support@myrasecurity.com"]) {
+ fileinto "Betrieb/Myra" ;
+
+# Logwatch
+}
+elsif allof ( header :contains ["from"] ["logwatch@"],
+ header :contains ["subject"] ["Logwatch for "]) {
+ fileinto "Betrieb/Logwatch" ;
+
+# Undelivered mail
+}
+elsif allof ( header :contains ["from"] ["MAILER-DAEMON@pixelpark.com"],
+ header :contains ["subject"] ["Undelivered Mail Returned to Sender"]) {
+ fileinto "Betrieb/postmaster/Undelivered" ;
+}
+elsif allof ( anyof ( header :contains ["to"] ["postmaster@pixelpark.com"],
+ header :contains ["to"] ["ppjira@pixelpark.com"]
+ ),
+ anyof ( header :contains ["subject"] ["Undelivered Mail Returned to Sender"],
+ header :contains ["subject"] ["Delivery Status Notification (Failure)"],
+ header :contains ["subject"] ["Delivery Notification: Delivery has failed"],
+ header :contains ["subject"] ["Delivery Notification: Delivery has been delayed"],
+ header :contains ["subject"] ["Delivery Notification: Delivery has timed out and failed"]
+ )
+ ) {
+ fileinto "Betrieb/postmaster/Undelivered" ;
+
+# Amazon Web Services (AWS)
+}
+elsif anyof ( header :contains ["from"] ["aws-marketing-email-replies@amazon.com"],
+ header :contains ["from"] ["aws-apac-marketing@amazon.com"],
+ header :contains ["from"] ["no-reply-aws@amazon.com"],
+ header :contains ["from"] ["route53-dev-admin@amazon.com"],
+ header :contains ["from"] ["@email.amazon.com"]) {
+ fileinto "Betrieb/AWS" ;
+
+# Barracuda Spam firewall
+}
+elsif anyof ( header :contains ["from"] ["barracuda@pixelpark.com"],
+ header :contains ["from"] ["report-bounces@barracudanetworks.com"]) {
+ fileinto "Betrieb/postmaster/Barracuda" ;
+
+# Barracuda Spam firewall
+}
+elsif header :contains ["to"] ["barracuda-report@pixelpark.com"] {
+ fileinto "Betrieb/postmaster/Barracuda" ;
+}
+elsif header :contains ["from"] ["zabbix@pixelpark.com"] {
+ fileinto "Betrieb/Monitoring" ;
+}
+elsif header :contains ["from"] ["Zabbix Monitoring"] {
+ fileinto "Betrieb/Monitoring" ;
+}
+elsif header :contains ["from"] ["(Cron Daemon)"] {
+ if header :contains ["subject"] ["clamav"] {
+ fileinto "Betrieb/Cron/Clamav" ;
+ }
+ elsif header :contains ["subject"] ["clamscan"] {
+ fileinto "Betrieb/Cron/Clamav" ;
+ }
+ elsif header :contains ["subject"] ["/opt/fbb_scanner.sh"] {
+ fileinto "Betrieb/Cron/Clamav" ;
+ }
+ elsif header :contains ["subject"] ["couchdbbackup.sh"] {
+ fileinto "Betrieb/Cron/Couch" ;
+ }
+ elsif header :contains ["subject"] ["restic-backup.sh"] {
+ fileinto "Betrieb/Cron/Couch" ;
+ }
+ elsif header :contains ["subject"] ["automongobackup.sh"] {
+ fileinto "Betrieb/Cron/Mongo" ;
+ }
+ elsif header :contains ["subject"] ["fetch_ampdata_pdu"] {
+ fileinto "Betrieb/Cron/Netbackup" ;
+ }
+ elsif header :contains ["subject"] ["backup_config_a10.sh"] {
+ fileinto "Betrieb/Cron/Netbackup" ;
+ }
+ elsif header :contains ["subject"] ["mysql-mariabackup"] {
+ fileinto "Betrieb/Cron/Mariabackup" ;
+ }
+ elsif header :contains ["subject"] ["mariabackup-wrapper"] {
+ fileinto "Betrieb/Cron/Mariabackup" ;
+ }
+ elsif header :contains ["subject"] ["mariabackup.sh"] {
+ fileinto "Betrieb/Cron/Mariabackup" ;
+ }
+ elsif header :contains ["subject"] ["db_backup.bsh"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["mysql-dump-backup.sh"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["dump-database.sh"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["mysqlbackup.sh"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["mysql-binlog"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["--name mysql"] {
+ fileinto "Betrieb/Cron/MySQL" ;
+ }
+ elsif header :contains ["subject"] ["mk_clean_logfiles.sh"] {
+ fileinto "Betrieb/Cron/DocMorris" ;
+ }
+ elsif header :contains ["subject"] ["docker run"] {
+ fileinto "Betrieb/Cron/Docker" ;
+ }
+ elsif header :contains ["subject"] ["pg_backup_encrypted.sh"] {
+ fileinto "Betrieb/Cron/PostgreSQL" ;
+ }
+ elsif header :contains ["subject"] ["live-search-spk.spk.pixelpark.net:9200"] {
+ fileinto "Betrieb/Cron/Sparkasse" ;
+ }
+ else {
+ fileinto "Betrieb/Cron" ;
+ }
+# Mein Laptop
+}
+elsif header :contains ["from"] ["@fb-lap.pixelpark.com"] {
+ fileinto "Privat/Laptop" ;
+# Hostmaster stuff
+}
+elsif header :contains ["from"] ["guardian-v4@dns-net.de"] {
+ fileinto "Betrieb/Hostmaster" ;
+
+# Hostmaster stuff
+}
+elsif header :contains ["to"] ["hostmaster@pixelpark.com"] {
+ fileinto "Betrieb/Hostmaster" ;
+}
+elsif header :contains ["from"] ["Gitlab Pixelpark"] {
+ fileinto "Betrieb/Git" ;
+}
+elsif header :contains ["from"] ["ppjira@pixelpark.com"] {
+ fileinto "Betrieb/Tickets" ;
+}
+elsif header :contains ["from"] ["cert-admin@S-CERT.de"] {
+ fileinto "Betrieb/S-Cert" ;
+}
+elsif header :contains ["from"] ["datadomain-01.pixelpark.com"] {
+ fileinto "Betrieb/Datadomain" ;
+}
+
+++ /dev/null
-require ["fileinto"];
-require ["reject"];
-require ["envelope"];
-require ["vacation"];
-
-# Oracle stuff
-if header :contains ["from"] ["replies@oracle-mail.com"] {
- fileinto "Betrieb/Oracle" ;
-
-# Change announcements
-}
-elsif allof ( header :contains ["from"] ["8x5@pixelpark.com"],
- header :contains ["subject"] ["Change: "]) {
- fileinto "Betrieb/Change" ;
-
-# Confluence
-}
-elsif allof ( header :contains ["from"] ["confluence@pixelpark.com"],
- header :contains ["from"] ["confluence@digitaspixelpark.com"]) {
- fileinto "Betrieb/Confluence" ;
-
-# Incidents
-}
-elsif allof ( header :contains ["from"] ["8x5@pixelpark.com"],
- anyof ( header :contains ["subject"] ["Incidentreport: "],
- header :contains ["subject"] ["Incidentannouncement: "])) {
- fileinto "Betrieb/Incident" ;
-
-# Myracloud
-}
-elsif anyof ( header :contains ["from"] ["noreply@myracloud.com"],
- header :contains ["from"] ["support@myrasecurity.com"]) {
- fileinto "Betrieb/Myra" ;
-
-# Logwatch
-}
-elsif allof ( header :contains ["from"] ["logwatch@"],
- header :contains ["subject"] ["Logwatch for "]) {
- fileinto "Betrieb/Logwatch" ;
-
-# Undelivered mail
-}
-elsif allof ( header :contains ["from"] ["MAILER-DAEMON@pixelpark.com"],
- header :contains ["subject"] ["Undelivered Mail Returned to Sender"]) {
- fileinto "Betrieb/postmaster/Undelivered" ;
-}
-elsif allof ( anyof ( header :contains ["to"] ["postmaster@pixelpark.com"],
- header :contains ["to"] ["ppjira@pixelpark.com"]
- ),
- anyof ( header :contains ["subject"] ["Undelivered Mail Returned to Sender"],
- header :contains ["subject"] ["Delivery Status Notification (Failure)"],
- header :contains ["subject"] ["Delivery Notification: Delivery has failed"],
- header :contains ["subject"] ["Delivery Notification: Delivery has been delayed"],
- header :contains ["subject"] ["Delivery Notification: Delivery has timed out and failed"]
- )
- ) {
- fileinto "Betrieb/postmaster/Undelivered" ;
-
-# Amazon Web Services (AWS)
-}
-elsif anyof ( header :contains ["from"] ["aws-marketing-email-replies@amazon.com"],
- header :contains ["from"] ["aws-apac-marketing@amazon.com"],
- header :contains ["from"] ["no-reply-aws@amazon.com"],
- header :contains ["from"] ["route53-dev-admin@amazon.com"],
- header :contains ["from"] ["@email.amazon.com"]) {
- fileinto "Betrieb/AWS" ;
-
-# Barracuda Spam firewall
-}
-elsif anyof ( header :contains ["from"] ["barracuda@pixelpark.com"],
- header :contains ["from"] ["report-bounces@barracudanetworks.com"]) {
- fileinto "Betrieb/postmaster/Barracuda" ;
-
-# Barracuda Spam firewall
-}
-elsif header :contains ["to"] ["barracuda-report@pixelpark.com"] {
- fileinto "Betrieb/postmaster/Barracuda" ;
-}
-elsif header :contains ["from"] ["zabbix@pixelpark.com"] {
- fileinto "Betrieb/Monitoring" ;
-}
-elsif header :contains ["from"] ["Zabbix Monitoring"] {
- fileinto "Betrieb/Monitoring" ;
-}
-elsif header :contains ["from"] ["(Cron Daemon)"] {
- if header :contains ["subject"] ["clamav"] {
- fileinto "Betrieb/Cron/Clamav" ;
- }
- elsif header :contains ["subject"] ["clamscan"] {
- fileinto "Betrieb/Cron/Clamav" ;
- }
- elsif header :contains ["subject"] ["/opt/fbb_scanner.sh"] {
- fileinto "Betrieb/Cron/Clamav" ;
- }
- elsif header :contains ["subject"] ["couchdbbackup.sh"] {
- fileinto "Betrieb/Cron/Couch" ;
- }
- elsif header :contains ["subject"] ["restic-backup.sh"] {
- fileinto "Betrieb/Cron/Couch" ;
- }
- elsif header :contains ["subject"] ["automongobackup.sh"] {
- fileinto "Betrieb/Cron/Mongo" ;
- }
- elsif header :contains ["subject"] ["fetch_ampdata_pdu"] {
- fileinto "Betrieb/Cron/Netbackup" ;
- }
- elsif header :contains ["subject"] ["backup_config_a10.sh"] {
- fileinto "Betrieb/Cron/Netbackup" ;
- }
- elsif header :contains ["subject"] ["mysql-mariabackup"] {
- fileinto "Betrieb/Cron/Mariabackup" ;
- }
- elsif header :contains ["subject"] ["mariabackup-wrapper"] {
- fileinto "Betrieb/Cron/Mariabackup" ;
- }
- elsif header :contains ["subject"] ["mariabackup.sh"] {
- fileinto "Betrieb/Cron/Mariabackup" ;
- }
- elsif header :contains ["subject"] ["db_backup.bsh"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["mysql-dump-backup.sh"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["dump-database.sh"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["mysqlbackup.sh"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["mysql-binlog"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["--name mysql"] {
- fileinto "Betrieb/Cron/MySQL" ;
- }
- elsif header :contains ["subject"] ["mk_clean_logfiles.sh"] {
- fileinto "Betrieb/Cron/DocMorris" ;
- }
- elsif header :contains ["subject"] ["docker run"] {
- fileinto "Betrieb/Cron/Docker" ;
- }
- elsif header :contains ["subject"] ["pg_backup_encrypted.sh"] {
- fileinto "Betrieb/Cron/PostgreSQL" ;
- }
- elsif header :contains ["subject"] ["live-search-spk.spk.pixelpark.net:9200"] {
- fileinto "Betrieb/Cron/Sparkasse" ;
- }
- else {
- fileinto "Betrieb/Cron" ;
- }
-# Mein Laptop
-}
-elsif header :contains ["from"] ["@fb-lap.pixelpark.com"] {
- fileinto "Privat/Laptop" ;
-# Hostmaster stuff
-}
-elsif header :contains ["from"] ["guardian-v4@dns-net.de"] {
- fileinto "Betrieb/Hostmaster" ;
-
-# Hostmaster stuff
-}
-elsif header :contains ["to"] ["hostmaster@pixelpark.com"] {
- fileinto "Betrieb/Hostmaster" ;
-}
-elsif header :contains ["from"] ["Gitlab Pixelpark"] {
- fileinto "Betrieb/Git" ;
-}
-elsif header :contains ["from"] ["ppjira@pixelpark.com"] {
- fileinto "Betrieb/Tickets" ;
-}
-elsif header :contains ["from"] ["cert-admin@S-CERT.de"] {
- fileinto "Betrieb/S-Cert" ;
-}
-elsif header :contains ["from"] ["datadomain-01.pixelpark.com"] {
- fileinto "Betrieb/Datadomain" ;
-}
-