Spam report script
This perl script generates a detailed report about your received spam emails.
It scans your procmail logfile for new spam emails and logs all relevant
From: and Subject: lines to an email-report. This report will be
emailed to you every day (depends on your cron settings).
Report example
Report generated at 21.02.2005 : 06:05:01
-----------------------------------------------------------------
Total number of received mails : 71
Total number of spam mail : 31
-----------------------------------------------------------------
Information about the new mails:
From : aipymo@osb.net Sun Feb 20 07:44:16
Subject : Jo1Iy gO0d anti spyware
From : xzklzkie@dost.com Sun Feb 20 09:10:25
Subject : 4 times a year not enough
...
Installation
- Edit spam.pl and define everything to suit your needs.
- Is the path of the perl interpreter in the first line correct?
- Create a crontab entry: crontab -e and add a line similar
to this:5 6 * * * /app/home/user/spam.pl. This will send a
report 5 minutes after 6am every day. The path is the path to your
spam.pl file.
- Make spam.pl executable: chmod a+x spam.pl
Dependencies
Script
spam.pl [4.9 KB] MD5:
8cda3960cd0d9ef87bb21347bf5135e7
Links
Procmail website
Spamassassin website
License
Released under a BSD style copyright.
|