LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-19-2009, 08:36 AM   #1
celeron
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Rep: Reputation: 15
Add spam header into email messages!


Dear experts,
I'm setting up email gateway using Postfix, Amavisd-new, ClamAV and SpamAssassin on Opensuse 11.1. Everything seems okie, but I can't have messages with added spam headers, such as:
X-Spam-Flag: NO
X-Spam-Score: 0.233
X-Spam-Level:
X-Spam-Status: No, score=0.233 tagged_above=-10 required=6.6
tests=[ALL_TRUSTED=-1.8, AWL=0.536, BAYES_50=0.001,]

When I try to debug amavis, I can see that SPAM-TAG, <abc@yahoo.com> -> <celeron@domain.com>, No, score=5.406 tagged_above=-999 required=6.2 tests=[LOCAL_DRUG=4, NO_DNS_FOR_FROM=1.407, NO_RELAYS=-0.001] but they don't add to email messages.

I've configured amavisd-new with $sa_tag_level_deflt = -999 to add spam headers at all but not successful.

Please help me to find out the cause of the problem.

Many thanks for your regards,
 
Old 12-20-2009, 10:09 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Try changing it from '-999' to 'undef' and see if that makes a difference

cheers
 
Old 12-21-2009, 02:21 AM   #3
celeron
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Original Poster
Rep: Reputation: 15
Dear kbp,
Thanks for your reply. I've tried to change it to 'undef' but not also successful! I can't have spam header to email messages. Am I missing anything?

Best Regards,
 
Old 12-21-2009, 02:26 AM   #4
forubu
LQ Newbie
 
Registered: Jul 2009
Location: Trondheim, Norway
Distribution: Ubuntu
Posts: 28

Rep: Reputation: 16
It's SpamAssassin that would add the headers. Have you configured it correctly?
Check out local.cf in /etc/spamassassin/ for how to add spam headers.
 
Old 12-21-2009, 06:03 AM   #5
celeron
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Original Poster
Rep: Reputation: 15
Dear forubu,
I've added the following header to local.cf, but it doesn't still work.
clear_headers
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_

Please help me to resolve the problem!

Many thanks,
 
Old 12-21-2009, 07:12 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Hi Celeron,

Are you forwarding the mail to another server or account? ... I think the 'X-Spam... ' tags will get stripped out if the email is forwarded. Try adding a local account on the mail filtering server and sending a test email from an external account

my test email output to a local account:
Code:
...
X-Virus-Scanned: amavisd-new at xxxx.yyy
X-Spam-Score: 0.483
X-Spam-Level: 
X-Spam-Status: No, score=0.483 tagged_above=-100 required=6.31
	tests=[AWL=0.483]
...
my test email output to a forwarded account:
Code:
...
X-virus-scanned: amavisd-new at xxxx.yyy
...
cheers
 
Old 12-21-2009, 09:56 PM   #7
celeron
LQ Newbie
 
Registered: Nov 2006
Posts: 26

Original Poster
Rep: Reputation: 15
Many thanks kbp! That is my exactly problem.

Have a great day!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting spam IM messages on Pidgin yiannis852 Linux - Software 2 02-27-2009 12:44 PM
discuss spam via LQ private messages? Simon Bridge LQ Suggestions & Feedback 4 09-20-2007 07:41 PM
rm: cannot remove files(spam messages) a.tsilfidis Linux - Server 22 02-15-2007 05:15 PM
yahoo marks Gmail messages as spam arunswarup General 8 11-04-2005 09:45 AM
What email program can work with email header on pop3 server TruongAn Linux - Software 0 01-13-2005 11:48 AM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration