Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-03-2010, 08:02 AM
Active Member
 
Posts: 34
Default Local mail marked as spam

Hi all, I'm working with ZSC 5 on centos 5 and have a domain called mail.local.
Local mails are marked as spam and sent to user's junk folder.

I tried to edit
/opt/zimbra/conf/spamassassin/local.cf

inserting
trusted_networks 192.168.0.

and reload the service
zmantispamctl reload

But it didn't help.

I also noticed that the autotraining was not writing any log since the end of 2009.
/opt/zimbra/log/spamtrain.log
...
20091129234511 Finished spam/ham cleanup


I try to run

zmtrainsa
20100503170034 Starting spam/ham extraction from system accounts.
[] WARN: Spam/notspam messages must have attachments (skipping /service/user/spam.qwksig9eca@mail.local/?id=1289)
[] INFO: Total messages processed: 10
[] INFO: Total messages processed: 1
20100503170041 Finished extracting spam/ham from system accounts.
20100503170041 Starting spamassassin training.
netset: cannot include 192.168.0.0/24 as it has already been included
netset: cannot include 127.0.0.0/8 as it has already been included
netset: cannot include 192.168.0.0/24 as it has already been included
Learned tokens from 0 message(s) (7 message(s) examined)
netset: cannot include 192.168.0.0/24 as it has already been included
netset: cannot include 127.0.0.0/8 as it has already been included
netset: cannot include 192.168.0.0/24 as it has already been included
Learned tokens from 1 message(s) (1 message(s) examined)
netset: cannot include 192.168.0.0/24 as it has already been included
netset: cannot include 127.0.0.0/8 as it has already been included
netset: cannot include 192.168.0.0/24 as it has already been included
bayes: synced databases from journal in 0 seconds: 485 unique entries (799 total entries)
20100503170044 Finished spamassassin training.


Could you please help me?
Wich other invormation can I report to clear the problem?
Reply With Quote
  #2 (permalink)  
Old 05-03-2010, 09:58 AM
Active Member
 
Posts: 42
Default

Please, copy and past here the spam email headers
Reply With Quote
  #3 (permalink)  
Old 05-03-2010, 11:36 PM
Active Member
 
Posts: 34
Default

Code:
Return-Path: test1@mydomain.com
Received: from mail.local (LHLO mail.local) (127.0.0.1) by mail.local with
 LMTP; Tue, 4 May 2010 08:25:46 +0200 (CEST)
Received: from localhost (mail.local [127.0.0.1])
	by mail.local (Postfix) with ESMTP id 839A12A030A
	for <test2@mail.local>; Tue,  4 May 2010 08:25:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mail.local
X-Spam-Flag: YES
X-Spam-Score: 9.305
X-Spam-Level: *********
X-Spam-Status: Yes, score=9.305 tagged_above=-10 required=6
	tests=[ALL_TRUSTED=-1.8, BAYES_99=3.5, DNS_FROM_OPENWHOIS=1.13,
	FH_DATE_PAST_20XX=3.188, URIBL_PH_SURBL=1.787, URIBL_WS_SURBL=1.5]
Received: from mail.local ([127.0.0.1])
	by localhost (mail.local [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id gJOLQApRxAxG for <test2@mail.local>;
	Tue,  4 May 2010 08:25:46 +0200 (CEST)
Received: by mail.local (Postfix, from userid 101)
	id 0721E2A030D; Tue,  4 May 2010 08:25:46 +0200 (CEST)
Received: from mail.local (mail.local [127.0.0.1])
	by mail.local (Postfix) with ESMTP id CDE392A030A
	for <test2@mail.local>; Tue,  4 May 2010 08:25:45 +0200 (CEST)
Date: Tue, 4 May 2010 08:25:45 +0200 (CEST)
From: test1@mydomain.com
To: test2@mail.local
Message-ID: <364313864.71272954345804.JavaMail.root@mail.local>
Subject: prova
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Originating-IP: [192.168.0.101]
X-Mailer: Zimbra 5.0.16_GA_2921.RHEL5_64 (ZimbraWebClient - FF3.0 (Linux)/5.0.16_GA_2921.RHEL5_64)
Reply With Quote
  #4 (permalink)  
Old 05-03-2010, 11:56 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

When you get a problem with spam you should check the headers and see what's causing it, when you've done that search the forum or the internet for any similar problems. Search these forums for 'FH_DATE_PAST_20XX' and you'll find the solution.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 05-04-2010, 12:26 AM
Moderator
 
Posts: 7,928
Default

You will also want to look at [SOLVED] spamassassin: false positives from openwhois.
__________________
Reply With Quote
  #6 (permalink)  
Old 05-04-2010, 12:47 AM
Active Member
 
Posts: 34
Default

First of all, is there a way to white list mail.local? I need to fix that quickly so a workaround is ok.
I tried
Improving Anti-spam system - Zimbra :: Wiki
The easiest way to "tweak" your spamassassin filtering setup is to edit your /opt/zimbra/conf/salocal.cf.in file...

but it didn't work! Local mails are still marked as spam.

I searched on internet for FH_DATE_PAST_20XX and found
Rules/FH_DATE_PAST_20XX - Spamassassin Wiki
That means "The date is grossly in the future."
It might help to run "sa-update" but how to do it in zimbra? Is there CLI zimbra command?
Or another binary? I can't find a sa-update command:
locate sa-update
/opt/zimbra/conf/spamassassin/sa-update-pubkey.txt
Reply With Quote
  #7 (permalink)  
Old 05-04-2010, 01:21 AM
Moderator
 
Posts: 7,928
Default

Searching the Zimbra forums you would have found the sticky :- [SOLVED] FH_DATE_PAST_20XX - Spamassassin bug - incorrect tagging from Jan 1, 2010 on

If you want the sa-update binary then you will need to upgrade to the latest version of Zimbra.
__________________
Reply With Quote
  #8 (permalink)  
Old 05-04-2010, 01:38 AM
Active Member
 
Posts: 43
Default

Hi sirio81

Just open the file /op/zimbra/spamassassin/50_scores.cf

search the line FH_DATE_PAST_20XX

there will be some number remove that nombers and place 0.0 after that line.

FH_DATE_PAST_20XX 0.0 like this

you can also put this in salocal.cf

most probably you will get rid off the problem.
Reply With Quote
  #9 (permalink)  
Old 05-04-2010, 06:53 AM
Active Member
 
Posts: 34
Default

Hi yogesh2tech, thanks for the answer.

Is it ok like that
Code:
/opt/zimbra/conf/spamassassin/50_scores.cf
score FH_DATE_IS_19XX 1.947 1.970 2.512 2.199 # n=2
score FH_DATE_PAST_20XX 0.0  # n=2
or do I have to remove also the "# n=2" ?
Note that I reported also the line "FH_DATE_IS_19..." because it looks similar and I would not like it need to be changed/removed.

Wich services do I have ro reload to make the changes effective?

Quote:
Searching the Zimbra forums you would have found the sticky :- http://www.zimbra.com/forums/adminis...-1-2010-a.html
I did, as you can see I also posted the link but it didn't help me for the reason below

Quote:
If you want the sa-update binary then you will need to upgrade to the latest version of Zimbra.
PS:
what are the differences between
/opt/zimbra/conf/salocal.cf
/opt/zimbra/conf/salocal.cf.in
/opt/zimbra/conf/spamassassin/local.cf

They all start with the comment
# This is the right place to customize your installation of SpamAssassin.


Thank you all for the help.
Reply With Quote
  #10 (permalink)  
Old 05-04-2010, 07:02 AM
Moderator
 
Posts: 7,928
Default

You should not need to touch the 50_scores.cf file at all. Setting the following in salocal.cf.in
Code:
score FH_DATE_PAST_20XX 0.0
and then restarting Amavis using
Code:
su - zimbra
zmamavisdctl stop ; zmamavisdctl start
I believe will re-write the salocal.cf and tell Amavis to use the new score.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.