Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-12 Thread Richard Lynch
On Wed, October 11, 2006 9:14 pm, Google Kreme wrote:
 On 10 Oct 2006, at 19:57 , Dave M G wrote:
 It took me a little while to realize that the Spamassassin always
 says that an email is possible scam if it has any score above zero,
 but it takes a score of 5.0 to actually be deleted as spam.

 No no no, this is not at all true.

 First off, Spamassassin does not delete mail. It, in point of fact,
 CANNOT delete mail as it has no mechanism to do so.

Sorry -- I was very ambiguous.

Everywhere I typed SA in my post should be replaced with:

The squirrel-mail interface provided by my webhost, combined with a
custom PHP IMAP inbox-scanning/filtering script I hacked up for my own
unique needs, along with the Spam Assassin scoring also provided by my
webhost

My apologies for imprecision.

But I get bonus points for brevity in the original post :-)

 Anyone who is automatically deleting mail on their own with a score
 of 5.0 or higher _will_ miss some legitimate email.  Not might,
 WILL.  Even at a score of 10.0 (where I auto-delete my mail) you will
 miss as much as 0.004% legitimate mail, iirc. (so, 4 messages in
 100,000)

Yes, but getting 10,000 messages per day[*] means I don't READ email
anymore.

I do email triage. :-)

I'm losing 4 real emails every 10 days to my triage.

I can live with that.

I cannot live with skimming through 10,000 emails per day searching
for the ~1 email every other day that is valid.

YMMV


[*]
It's been several years since I've seen a report on how many
unfiltered emails per day I received.  10,000 was the number back
then.  It is inconceivable that the number has decreased, by any
realistic projection.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-11 Thread Richard Lynch
On Tue, October 10, 2006 8:57 pm, Dave M G wrote:
 It took me a little while to realize that the Spamassassin always says
 that an email is possible scam if it has any score above zero, but it
 takes a score of 5.0 to actually be deleted as spam. I checked through
 a
 bunch of emails in my inbox, and all of them got at least some score,
 usually between .5 and 1.5, even though they were all legitimate
 emails.

That 5.0 is user-configurable -- In fact, for my Inbox, 3.0 or above
is sent direct to trash.

I spent a month or two with 10 filters sending every message to one of
10 boxes:
Inbox.1
Inbox.2
Inbox.3
...
Inbox.10

As time went on, I found that only 1 and 2 scores were worth digging
through, and lowered my SA setting to 3 and above is just auto-trash.

And a couple mailing lists were going to higher scores, but those were
easily white-listed.

This would have been much easier had the email client let me sort by
SA score, but that feature has apparently not been invented yet...

YMMV, but it's amazing how much less spam I got once I let SA kill off
all the junk it was pre-configured to accept.

Course, I'm sure I'm losing some legit email as well, but it's such a
tiny percentage, I just can't get too worked up about it.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-11 Thread Google Kreme

On 10 Oct 2006, at 19:57 , Dave M G wrote:
It took me a little while to realize that the Spamassassin always  
says that an email is possible scam if it has any score above zero,  
but it takes a score of 5.0 to actually be deleted as spam.


No no no, this is not at all true.

First off, Spamassassin does not delete mail. It, in point of fact,  
CANNOT delete mail as it has no mechanism to do so.


Anyone who is automatically deleting mail on their own with a score  
of 5.0 or higher _will_ miss some legitimate email.  Not might,  
WILL.  Even at a score of 10.0 (where I auto-delete my mail) you will  
miss as much as 0.004% legitimate mail, iirc. (so, 4 messages in  
100,000)


most good email will score between -3 and +1 in Spamassassin if  
you've been running it for any length of time.  Your message scored


X-Spam-Status: No, score=-2.4 required=5.0  
tests=BAYES_00,DNS_FROM_RFC_ABUSE,

SPF_PASS autolearn=no version=3.1.0

So, a -2.4 which, last I checked was something like 99.97% likely to  
be ham.


--
Well I've seen the Heart of Darkness/Read the writing on the wall/and  
the voice out in the desert/Was the voice out in the hall


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



Re: [PHP] Working with overly aggressive anti-spam measures [SOLVED]

2006-10-10 Thread Dave M G

Travis, Richard, Chris,

Thank you for your helpful advice.

I've managed to set the Return-Path correctly now, and Spamassassin is 
now only giving me the whitelist error, which I don't think I'm going to 
get rid of.


It took me a little while to realize that the Spamassassin always says 
that an email is possible scam if it has any score above zero, but it 
takes a score of 5.0 to actually be deleted as spam. I checked through a 
bunch of emails in my inbox, and all of them got at least some score, 
usually between .5 and 1.5, even though they were all legitimate emails.


So compared to other emails I'm getting, I'm scoring very low at 0.2. My 
emails don't use HTML, don't have any common spam key words, and have 
correct spelling and grammar, so it all helps establish my email's 
legitimacy.


Here is the PHP code I'm using:

$fromAddress = [EMAIL PROTECTED];
$fromName = My Name;
$headers = From:  . $fromName .   . $fromAddress . \n;
$headers .= Reply-to:  . $fromName .   . $fromAddress . \n;
$extra = -f . $fromAddress;

mail($toAddress, $subject, $content, $headers, $extra);

Thank you all for your time and expert information.

--
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