SunQuest
           Mail Server Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationMail Server Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old April 25th, 2008, 04:39 AM
honey bee honey bee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Location: Isl,Pakistan
Posts: 83 honey bee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 21 m 13 sec
Reputation Power: 3
Question SpamAssassin, rewrite_header is not working

For:

spamassassin -t -D < /tmp/mail

, i get

Quote:
pts rule name description
---- ---------------------- --------------------------------------------------
0.0 MISSING_DATE Missing Date: header
-2.8 ALL_TRUSTED Did not pass through any untrusted hosts
1.6 MISSING_SUBJECT Missing Subject: header


My local.cf files contains settings:

Quote:
required_hits -2.9
report_safe 0
rewrite_header Subject ****SPAM(_SCORE_)****


and the mail i recieve is:

Quote:
From hina@advcomm.net Fri Apr 25 14:24:54 2008
Return-Path: <hina@advcomm.net>
Received: from [192.168.0.197] ([192.168.0.197])
by localhost.localdomain (8.13.1/linuxconf) with SMTP id m3P9OE0r026394
for declnxadmin@decdom3.com; Fri, 25 Apr 2008 14:24:40 +0500
Date: Fri, 25 Apr 2008 14:24:14 +0500
From: hina@advcomm.net
Message-Id: <200804250924.m3P9OE0r026394@localhost.localdomain>
X-Authentication-Warning: localhost.localdomain: [192.168.0.197] didn't use HELO protocol
X-Spam-Flag: YES
X-Spam-Status: Yes, score=-1.2 required=-2.9 tests=ALL_TRUSTED,MISSING_DATE,
MISSING_SUBJECT autolearn=failed version=3.0.1
X-Spam-Report:
* 0.0 MISSING_DATE Missing Date: header
* -2.8 ALL_TRUSTED Did not pass through any untrusted hosts
* 1.6 MISSING_SUBJECT Missing Subject: header
X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on EnterpriseLinux

heloo123


I don't know why its not adding [Spam] with the subject.Please help me with this.

Reply With Quote
  #2  
Old April 26th, 2008, 07:21 AM
honey bee honey bee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Location: Isl,Pakistan
Posts: 83 honey bee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 21 m 13 sec
Reputation Power: 3
Lightbulb

For SpamAssassin access to mail messages i used spamass-milter ,Sendmail Mail Filter API (Milter).

It had settings :
Quote:
EXTRA_FLAGS="-m -r 15"

, the "-m" options disables rewrite, remove this "-m" and rewrite will work.

I had this flag set in /etc/init.d/spamass-milter file, there is possibility that it may bet set in /etc/sysconfig/spamass-milter.

Reply With Quote
  #3  
Old April 26th, 2008, 10:36 AM
hiker's Avatar
hiker hiker is offline
They're coming to take me away
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2005
Location: Florida
Posts: 2,801 hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)hiker User rank is General 4th Grade (Above 100000 Reputation Level)  Folding Points: 33832 Folding Title: Starter FolderFolding Points: 33832 Folding Title: Starter Folder
Time spent in forums: 1 Month 1 Week 4 Days 7 h 18 m 45 sec
Reputation Power: 1212
Quote:
Originally Posted by honey bee
For SpamAssassin access to mail messages i used spamass-milter ,Sendmail Mail Filter API (Milter).

It had settings :

, the "-m" options disables rewrite, remove this "-m" and rewrite will work.

I had this flag set in /etc/init.d/spamass-milter file, there is possibility that it may bet set in /etc/sysconfig/spamass-milter.


Thanks for posting back the solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationMail Server Help > SpamAssassin, rewrite_header is not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway