Page 1 of 1

Is there a reason why every email is marked as spam?

Posted: Sat May 28, 2011 10:53 am
by TeraS
Having the oddest issue at the moment, and that is using good email addresses in phpBB and running them through the filter via the addition of the script for phpBB results in every good email being blocked as spammy...

Thoughts?



Tera

Re: Is there a reason why every email is marked as spam?

Posted: Sat May 28, 2011 11:45 am
by MysteryFCM
Little bit strange. Are they still shown as spam when checked against the following?

http://fspamlist.com/checkspammers/

http://temerc.com/Check_Spammers/

??

Re: Is there a reason why every email is marked as spam?

Posted: Sat May 28, 2011 4:05 pm
by TeraS
Okay, I ran several emails through and for the most part they come up as non-spammer on your two links, however, a few come up as spammer in the fspamlist...


Tera

Re: Is there a reason why every email is marked as spam?

Posted: Sat May 28, 2011 4:51 pm
by MysteryFCM
Drop me an e-mail with the list of addresses coming up as spammers, and I'll get them removed :)

Re: Is there a reason why every email is marked as spam?

Posted: Sat May 28, 2011 6:15 pm
by TeraS
Here's the thing...

This address: timer328-collective@yahoo.com


Comes up as okay on your links, but it comes up as spam on the script on our site...


Tera

Re: Is there a reason why every email is marked as spam?

Posted: Sun May 29, 2011 3:28 am
by MysteryFCM
Sorry for taking so long, finally managed to get some sleep.

You may want to try a little debugging, as it's possible it's one of the blacklists throwing a limit reached error.

The easiest way of doing this, is to add an "echo" after each of the $fspamcheck returns.

Which of the databases is it saying it's listed in?

Re: Is there a reason why every email is marked as spam?

Posted: Sun May 29, 2011 9:11 am
by TeraS
Getting weirder...

I accessed the antispam check directly through the web interface and it does NOT call the address a spammer.

Same with all of the other email addresses that are coming up as spammy through the script.



Tera

Re: Is there a reason why every email is marked as spam?

Posted: Sun May 29, 2011 9:18 am
by MysteryFCM
So it's only showing as a spammer when queried via phpBB but not when querying directly?

If so, try modifying the phpBB mod code to the following (obviously, replacing the path to the SBST, to the copy on your own server);

Code: Select all

   /// BEGIN SPAM MOD
   $email = request_var('email', '');
   $ip = $_SERVER['REMOTE_ADDR'];
   $fspamcheck = file_get_contents('http://temerc.com/Check_Spammers/check_spammers_plain.php?name='.$username.'&email='.$email.'&ip='.$ip);
   if (substr_count($fspamcheck, 'FALSE') < 1) {
      // Notify admin via e-mail
      $blockedby = str_replace(' TRUE', '', $fspamcheck);
      $blockedby = str_replace(' ', ' & ', $blockedby);
      $msg = 'The following was blocked by the '.$blockedby.' filter<br><br>Username: '.$username.'<br><br>Email: '.$email.'<br><br>IP: '.$ip;
      $to = "YOUR_EMAIL";
      $from = "nobody@".$_SERVER['SERVER_NAME'];
      $subject = "Spammer blocked by hpHosts Spam filter";
      $headers =    "MIME-Versin: 1.0\r\n" .
      "Content-type: text/html; charset=ISO-8859-1; format=flowed\r\n" .
      "Content-Transfer-Encoding: 8bit\r\n" .
      "From: " . $from . "\r\n" .
      "X-Mailer: hpHosts Spam Filter";
      mail($to, $subject, $msg, $headers);
      // Notify user
      return 'Your registration has been blocked by our <a href="http://temerc.com/Check_Spammers/">spam filter</a>. Please either try again or contact an administrator';
      die();
   }else{
      // Registrant was allowed
      // Notify admin via e-mail
      $msg = 'The following user just registered<br><br>Username: '.$username.'<br><br>Email: '.$email.'<br><br>IP: '.$ip.'<br><br>fSpamCheck result was: '.$fspamcheck.'<br><br>';
      $to = "YOUR_EMAIL";
      $from = "nobody@".$_SERVER['SERVER_NAME'];
      $subject = $_SERVER['SERVER_NAME']." Forums - New Registrant: ".$username;
      $headers =    "MIME-Versin: 1.0\r\n" .
      "Content-type: text/html; charset=ISO-8859-1; format=flowed\r\n" .
      "Content-Transfer-Encoding: 8bit\r\n" .
      "From: " . $from . "\r\n" .
      "X-Mailer: hpHosts Spam Filter";
      // Uncomment the following to enable notification e-mails for new registrants
      //mail($to, $subject, $msg, $headers);
   }
   /// END SPAM MOD

Re: Is there a reason why every email is marked as spam?

Posted: Sun May 29, 2011 10:51 am
by TeraS
Will do and will report back ASAP!


Tera

Re: Is there a reason why every email is marked as spam?

Posted: Thu Jun 02, 2011 5:26 pm
by TeraS
Having run for about a day now, the only message that comes back is:

The following was blocked by the Database & match filter

Now, I am waiting for someone to get blocked and send me a note so that I can see if they are in that spam catch, but so far it appears that this is the only message through about 250 checks today...


Tera

Re: Is there a reason why every email is marked as spam?

Posted: Fri Jun 03, 2011 5:37 am
by MysteryFCM
Sorry for taking so long.

There seems to be a mismatch somewhere as there should be a DB name before the "match filter".

You can disable the DB query to rule that out, by changing the following in the config file;

$bln_SaveToDB = TRUE;

To;

$bln_SaveToDB = FALSE;

Or commenting out the following in the check_spammers_plain.php file (line #115);

Code: Select all

   if($bln_SaveToDB==true){
      // If it's already in our database, no need to check further .....
      $sSDBRet = IsSpammerInDB($dbShost, $dbSname, $dbSusername, $dbSpassword, $name, $ip, $mail);
      if($sSDBRet==true){
         echo 'Database match ';
         $spambot=true;
         $bFoundMatch=true;
      } // End if($sSDBRet==true)
   } // End if($bln_SaveToDB==true)

Re: Is there a reason why every email is marked as spam?

Posted: Fri Jun 03, 2011 6:18 am
by TeraS
Shall do and will report back!


Tera

Re: Is there a reason why every email is marked as spam?

Posted: Fri Jun 03, 2011 6:45 am
by MysteryFCM
Just an FYI, my son and other half are on their way here for the afternoon (his 3rd birthday tomorrow), so I may be offline sporadically

Re: Is there a reason why every email is marked as spam?

Posted: Sat Jun 04, 2011 4:06 pm
by TeraS
Okay, every single test comes back with:


The following was blocked by the fSpamlist filter




Tera

Re: Is there a reason why every email is marked as spam?

Posted: Sat Jun 04, 2011 5:02 pm
by MysteryFCM
Can you pop this in just after the getURL() call for fSpamlist (line #142), so we can see what's being returned (or append &debug=1 to the querystring);

echo 'DEBUG: '.$fspamcheck.'<br>';

Feel free to drop me an e-mail with the IPs/emails being checked too;

steven @ it-mate.co.uk