Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 04:03:49 PM


Login with username, password and session length


Pages: 1 ... 15 16 [17]   Go Down
  Print  
Author Topic: How-to: Train SpamAssassin - Updated May 30 2007  (Read 43551 times)
Christo
Newbie
*
Offline Offline

Posts: 3


« Reply #240 on: March 28, 2008, 02:32:15 PM »

Follow up questions:

RE: 2. When you say "It will not create it for a given account until spam is received at that account." does this apply to the primary account domain only , or to all of the add-on domains also ?!  Because I have received plenty of spam on the add-on domain, and it has not created the spam folder in there. Neither has it made one in the primary domain account..

3. Yes, let's get it working on my add-on domain, I will help test. I'll send you a pm here.

EDIT: pm not possible?!... I will email you.
« Last Edit: March 28, 2008, 02:35:25 PM by Christo » Logged
w98
Galactic Royalty
*****
Offline Offline

Posts: 435



WWW
« Reply #241 on: March 28, 2008, 02:49:04 PM »

Hi Christo,

If it's not labeling or flagging spam for your add-on domain(s) then you should contact LP support. Usually looking at the raw source of the Email will show headers like this:

Code:
X-Spam-Status: Yes, score=14.9
X-Spam-Score: 149
X-Spam-Bar: ++++++++++++++
X-Spam-Report: Spam detection software, running on the system "janus.lunarpages.com", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
the administrator of that system for details.
Content preview:  No text version was provided Email template Click here to
get enrolled for your Medical Billing Degree! We hope you enjoyed receiving
this email, but if you no longer wish to receive our emails please press
here. or please write to us at: 770 E Main Street #259 Lehi, UT 84043 [...]
Content analysis details:   (14.9 points, 3.5 required)
pts rule name              description
---- ---------------------- --------------------------------------------------
3.5 BAYES_99               BODY: Bayesian spam probability is 99 to 100%
[score: 1.0000]
1.0 FH_XMAIL_RND_833       Special X-Mailer Version
-0.0 SPF_PASS               SPF: sender matches SPF record
2.7 URI_UNSUBSCRIBE        URI: URI contains suspicious unsubscribe link
2.9 URI_L_PHP              URI: URI_L_PHP
1.5 HTML_IMAGE_ONLY_20     BODY: HTML: images with 1600-2000 bytes of words
0.1 HTML_COMMENT_SAVED_URL BODY: HTML message is a saved web page
0.4 HTML_IMAGE_RATIO_02    BODY: HTML has a low ratio of text to image area
0.0 HTML_MESSAGE           BODY: HTML included in message
0.7 MPART_ALT_DIFF         BODY: HTML and text parts are different
1.4 MIME_QP_LONG_LINE      RAW: Quoted-printable line longer than 76 chars
1.5 URIBL_OB_SURBL         Contains an URL listed in the OB SURBL blocklist
[URIs: wetherwarnings.com]
-0.9 AWL                    AWL: From: address is in the auto white-list
X-Spam-Flag: YES

Ian
Logged

Christo
Newbie
*
Offline Offline

Posts: 3


« Reply #242 on: March 28, 2008, 03:05:08 PM »

What a difference, you are getting a ton of info in your headers.

In comparison, all I am getting is these three headers:

X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on   grafias.lunarpages.com
X-Spam-Level: **
X-Spam-Status: No, score=3.0 required=5.0 tests=BAYES_60,URIBL_BLACK   autolearn=no version=3.2.3

Another strange thing is, I NEVER see any emails greater than my 5.0 threshold. I am assuming that they get diverted or deleted.... But I never set it up that way !!
Logged
w98
Galactic Royalty
*****
Offline Offline

Posts: 435



WWW
« Reply #243 on: March 28, 2008, 03:07:49 PM »

Once you run my script you'll see how many spam/ham messages that SpamAssassin has seen since you modified your user_prefs file to use your own bayesian database. Once it's seen 200 spam and ham come in (aside from training) it'll kick into overdrive. In the meantime, training SA on what you consider spam/ham will be that much more beneficial once the magic 200 numbers have been reached.
Logged

paris2
Newbie
*
Offline Offline

Posts: 1


« Reply #244 on: April 27, 2008, 12:24:08 AM »

Can someone help me with this error?

ERROR MESSAGE:

syntax error at tpix-sa-trainer.cgi line 91, near "$check_user_Inbox_for_ham "
BEGIN not safe after errors--compilation aborted at tpix-sa-trainer.cgi line 189.


RELEVANT LINES (I think) FROM SA-TRAINER:

#####
# if you want to scan your users' Inbox folders instead of a separate 'ham'
# folder, set the following line to "Y".
# If you are using the global Email address or $global_hambox variables
# listed above, then THIS variable MUST remain set to "N" -- you cannot scan
# both your user's Inboxes *and* a global Email account/folder for ham.
# Enabling this variable and setting it to 'N' will search for a folder called
# 'ham' within each user account. MOST USERS WILL SET THIS TO "N"
$check_user_Inbox_for_ham = "N" ;
# if the above variable is set to "N", you can enter a mailbox name here to
# scan for non-spam messages; we recomment users create a folder called "ham"
# but you can set that here to some other name
#$user_hambox = "ham" ;


Thanks.
Logged
w98
Galactic Royalty
*****
Offline Offline

Posts: 435



WWW
« Reply #245 on: April 27, 2008, 10:03:02 AM »

Perl isn't always that smart when defining errors. I'm guessing the error is actually on line 81 with the $global_hambox variable.

If you like, you can Email a copy of your script to me and I'll check it out. Go to the 'contact me' page at iandouglas.com for my Email addresses.
Logged

Pages: 1 ... 15 16 [17]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM