aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-20 03:57:29 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-20 03:57:29 +0000
commit7bf1bb01833503664ae430814284ece388a3540a (patch)
treef34f1969e892c97c3515f21a300024cb4da0f612 /packages
parentb4e19988a065c66149d23d498e37cc19a72947dc (diff)
downloadpfsense-packages-7bf1bb01833503664ae430814284ece388a3540a.tar.gz
pfsense-packages-7bf1bb01833503664ae430814284ece388a3540a.tar.bz2
pfsense-packages-7bf1bb01833503664ae430814284ece388a3540a.zip
Add small direction list
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd_verify_to_address.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/packages/spamd_verify_to_address.php b/packages/spamd_verify_to_address.php
index cca3bba7..3887a81d 100644
--- a/packages/spamd_verify_to_address.php
+++ b/packages/spamd_verify_to_address.php
@@ -1,6 +1,5 @@
#!/usr/local/bin/php -q
<?php
-
/*
* pfSense spamd mousetrap
* (C)2006 Scott Ullrich
@@ -12,7 +11,15 @@
* sending to an invalid e-mail address
* then add them to spamtrap.
*
- * XXX:
+ * Directions for usage:
+ * 1. Download this script to the /root/ directory on your pfSense installation.
+ * 2. chmod a+rx spamd_verify_to_address.php
+ * 3. Edit $server_to_pull_data_from to point to a location containing a list of
+ * all valid email addresses c/r seperated.
+ * 4. Add spamd_verify_to_address.php to cron or run it by invoking
+ * ./spamd_verify_to_address.php manually.
+ *
+ * XXX/TODO:
* * Add flag to blacklist a server after receiving X
* attempts at a delivery with invalid to: addresses.
*
@@ -118,8 +125,8 @@ mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt");
mwexec("/sbin/pfctl -t blacklist -T show | cut -d\" \" -f4 > /var/db/blacklist.txt");
if($debug) {
- echo "Items in blacklist.txt: ";
- system("/sbin/pfctl -t blacklist -T show | wc -l");
+ echo "Items in blacklist.txt: ";
+ system("/sbin/pfctl -t blacklist -T show | wc -l");
}
-?>
+?> \ No newline at end of file