Knowledgebase

WARNING! Tell your admin to set the SpamFilters_YourHop variable.


I get the following error-message when trying to setup spam filters:

WARNING! Tell your admin to set the SpamFilters_YourHop variable.

Solution:

Set this to a string containing something unique to the line in the header you want me to find IPs to scan the databases with. For example, All the email coming IN from the internet to my site has a line in the header that looks like (all on one line):

Received: [from usw-sf-list1.sourceforge.net (usw-sf-fw2.sourceforge.net     [216.136.171.252]) by firewall.persistence.com (SYSADMIN-antispam      0.2) with  

Since this line indicates the FIRST hop the email takes into my network, I set my SpamFilters_YourHop to 'by firewall.persistence.com' but any case-sensitive string will do. You can set it to something found on every line in the header (like ' ') if you want to scan all IPs in the header (lots of false alarms here tho).

global $SpamFilters_YourHop;

$SpamFilters_YourHop = ' ';

Example

Received: from sitemeter.com (mail.sitemeter.com [69.44.157.220])     by mail.mailserver.com (Postfix) with ESMTP id 487A61F6151     for ; Mon, 6 Dec 2004 08:53:21 +0000 (GMT)Received: from SM50442 ([66.132.236.185])     by sitemeter.com (sitemeter.com [69.44.157.220])     (MDaemon.PRO.v7.2.0.R)     with ESMTP id md50016287249.msg     for ; Mon, 06 Dec 2004 03:49:26 -0500

In the above address header, my real mail server is "mail.mailserver.com" and hence I would set:

$SpamFilters_YourHop = 'by mail.mailserver.com';