log spam

Marc Lucke marc at marcsnet.com
Fri Jun 11 07:50:41 IST 2010

Spam Actions = &logspam store forward <email address>

sub Initlogspam {};
sub Endlogspam {};
sub logspam {
  my($message) = @_;
  MailScanner::Log::InfoLog("MailScanner: spam: ".$message->{clientip});

this doesn't work.  Complains about @  If I put &logspam at the end, it 
gets ignored.

I want to log the ip address of the person sending me spam, store the 
message and then forward it to my spam box.  Can I have my cake and eat 
it to?  If so, how?

Thanks in advance

More information about the MailScanner mailing list