MikeA
01-14-2002, 11:29 AM
Is there any kind of a program out there to determine who a spammer on a server is? Some kind of sniffer or something?
![]() | View Full Version : SPAM Sniffer MikeA 01-14-2002, 11:29 AM Is there any kind of a program out there to determine who a spammer on a server is? Some kind of sniffer or something? hypernatic.net 01-14-2002, 08:01 PM what you could do is this: make a shell script that looks like this: #!/bin/sh ################### # (C) 2002 hypernatic.net ################### mailq >spamlist.txt ./spammail.pl rm -f spamlist.txt then make the perl script (spammail.pl): #!/usr/bin/perl ################### # (C) 2002 hypernatic.net ################### open (mque,"./spamlist.txt"); @mque= <mque>; close (mque); # Open The Mail Program open(MAIL,"|/usr/sbin/sendmail -t"); print MAIL "To: you\@yourhost.com\n"; print MAIL "From: root\@localhost (SpamCheck Daemon)\n"; print MAIL "Subject: SPAM REPORT\n\n"; print MAIL "@mque"; close (MAIL); Please note, this has NOT been tested... Just my 2 cents This runs a mailq (que for outgoingmail display) and it mails it to you... when there is a lot of crap in the mailq report you might want to check for a spammer... Run this script as a cron so you get an hourly, daily or whatever report... |