Re: Working with overly aggressive anti-spam measures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Travis, Chris,

Thank you for your advice.

I've installed spamassassin and I'm using it to monitor how well my PHP generated emails rate as spam.

So far, I'm not doing well. I have two main issues so far:

1. Spamassassin says:

Spam detection software, running on the system "homebase", has
identified this incoming email as possible spam.  [...]

Content analysis details:   (0.3 points, 5.0 required)

pts rule name              description
---- ---------------------- --------------------------------------------------
0.3 AWL                    AWL: From: address is in the auto white-list

I looked up about auto white-lists on the net, and it says that it's a comparison between the current and previous emails. But for testing purposes, I don't really want it to compare against previous emails, since previous test emails would be "spammier" and bias spamassassin the wrong way.

How can I compensate for this?

2. I've attempted to add the "Return-Path" headers to my headers, like so:

$headers = "Return-Path: info@xxxxxxxxxxxxxxx\n";
$headers .= "From: Tokyo Street Hockey Association <info@xxxxxxxxxxxxxxx>\n";
$headers .= "X-Sender: info@xxxxxxxxxxxxxxx\n";
mail($member, $subject, $content, $headers);

And yet, when I look at the headers of the email that's being generated, it says:

Return-Path: <nobody@xxxxxxxxxxxxxxxxxxxx>
Received: from server.mywebhost.com (ns1.nameserver.com [123.123.123.123] (may be forged)

(Note that I've changed the names of servers and the DNS just to keep some info private)

Why are my attempts to set these headers in PHP not taking effect?

--
Dave M G
Ubuntu 6.06 LTS
Kernel 2.6.17.7
Pentium D Dual Core Processor
PHP 5, MySQL 5, Apache 2

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux