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 04-27-2009, 03:49 AM
Intermediate Member
 
Posts: 15
Default Missing X-Spam Flags in Message Headers!

Hi All,

My problem is similar to the post outlined here: https://www.zimbra.com/forums/admini...n-missing.html

New user to Zimbra, but not linux

Installation was a breeze, got it all up and running in no time. However when it came to configuring the spamassassin rules to my own preferences, this is where I started getting problems.

Before I did any modifications to /opt/zimbra/conf/salocal.cf my X-Spam Flags were fine:

X-Spam-Status: No, score=-2.23 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, AWL=-0.050, BAYES_00=-2.599, TVD_SPACE_RATIO=2.219]
X-Virus-Scanned: amavisd-new at foo.com
Recieved: from zimbra.foo.com ([127.0.0.1]) by localhost (zimbra.foo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vKkBvkKlT3N1 for <test3@foo.com>; Tue, 21 Apr 2009 16:48:06 +0100 (BST)
Received: from zimbra.foo.com (zimbra.foo.com [192.168.1.37]) by zimbra.foo.com (Postfix) with ESMTP id B157057C213 for <test3@foo.com>; Tue, 21 Apr 2009 16:48:06 +0100 (BST)
X-Spam-Flag: NO
X-Spam-Score: -2.23
X-Originating-IP: [192.168.1.26]

Now when I change the salocal.cf and then REVERT it back to the original file and restore the permissions and restart Zimbra I only get.

X-Virus-Scanned: amavisd-new at foo.com
Recieved: from zimbra.foo.com ([127.0.0.1]) by localhost (zimbra.foo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vKkBvkKlT3N1 for <test3@foo.com>; Tue, 21 Apr 2009 16:48:06 +0100 (BST)
Received: from zimbra.foo.com (zimbra.foo.com [192.168.1.37]) by zimbra.foo.com (Postfix) with ESMTP id B157057C213 for <test3@foo.com>; Tue, 21 Apr 2009 16:48:06 +0100 (BST)

What the weird problem is, that if I restart Zimbra or amavisd services (several times I might add), it will revert back to the original X-Spam info, but after the 2nd or 3rd email... it goes back to no information.

EDIT:

Forgot to mention, I have run SpamAssassin in debug mode and looking at the results, I get this..

Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: X-Virus-Scanned: amavisd-new at foo.com\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: X-Spam-Flag: YES\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: X-Spam-Score: 6.784\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: X-Spam-Level: ******\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: X-Spam-Status: Yes, score=6.784
tagged_above=-10 required=6.6\n\ttests=[AWL=-4.516, BAYES_95=3, NO_RELAYS=-0.001, URIBL_BLACK=1.955,\n\tURIBL_JP_SURBL=1.501, URIBL_OB_SURBL=1.5, URIBL_PH_SURBL=1.787,\n\tURIBL_RED=0.001, URIBL_RHS_DOB=1.083, URIBL_SC_SURBL=0.474]\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) header: Received: from zimbra.foo.com ([127.0.0.1])\n\tby localhost (zimbra.foo.com [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id BQCBXx1EZrPk for <admin@foo.com>;\n\tThu, 23 Apr 2009 15:24:27 +0100 (BST)\n
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) headers CLUSTERING: done all 1 recips in one go
Apr 23 15:24:29 zimbra.foo.com /opt/zimbra/amavisd/sbin/amavisd[25989]: (25989-01) SPAM-TAG, <zimbra@zimbra.foo.com> -> <admin@foo.com>, Yes, score=6.784 tagged_above=-10 required=6.6 tests=[AWL=-4.516, BAYES_95=3, NO_RELAYS=-0.001, URIBL_BLACK=1.955, URIBL_JP_SURBL=1.501, URIBL_OB_SURBL=1.5, URIBL_PH_SURBL=1.787, URIBL_RED=0.001, URIBL_RHS_DOB=1.083, URIBL_SC_SURBL=0.474]

But STILL the email has no X-SPAM headers! I cant figure this out!

I really need to see the X-Spam info consistently in every email. Can anyone help me troubleshoot this?

Can you also tell me which is the correct local file to put my own SpamAssassin rules?

/opt/zimbra/conf/salocal.cf
/opt/zimbra/conf/spamassassin/local.cf

I am running:

OS: CentOS 5.2
Installation File: zcs-5.0.11_GA_2695.RHEL5.20081117051306.tgz
If I do : /opt/zimbra/bin/zmprov getServer zimbra.foo.com | grep zimbraMtaMyNetworks
Result: zimbraMtaMyNetworks: 127.0.0.0/8

Any questions I'll be happy to answer. I just want this fixed!

Thanks

Last edited by no1youknowz; 04-27-2009 at 03:54 AM..
Reply With Quote
  #2 (permalink)  
Old 04-28-2009, 12:30 AM
Zimbra Consultant & Moderator
 
Posts: 19,653
Default

Quote:
Originally Posted by no1youknowz View Post
If I do : /opt/zimbra/bin/zmprov getServer zimbra.foo.com | grep zimbraMtaMyNetworks
Result: zimbraMtaMyNetworks: 127.0.0.0/8
That's incorrect, you need the following settings: ZimbraMtaMyNetworks - Zimbra :: Wiki
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-28-2009, 02:18 AM
Intermediate Member
 
Posts: 15
Default

Thanks for replying, but I already tried this and it doesnt make any change...

Quote:
mynetworks = 127.0.0.0/8 192.168.1.0/24

zmprov getServer zimbra.foo.com | grep zimbraMtaMyNetworks
zimbraMtaMyNetworks: 127.0.0.0/8 192.168.1.0/24
Can anyone please help?
Reply With Quote
  #4 (permalink)  
Old 04-28-2009, 04:35 AM
Moderator
 
Posts: 7,911
Default

Would you please post the full headers from a email.
__________________
Reply With Quote
  #5 (permalink)  
Old 04-28-2009, 04:53 AM
Intermediate Member
 
Posts: 15
Default

From 1 local account to zimbra to another. The client is Thunderbird.

Reply With Quote
  #6 (permalink)  
Old 04-29-2009, 02:01 AM
Intermediate Member
 
Posts: 15
Default

Anyone have any ideas?

I may probably nuke the box and start again, even though its a test one for now.

What I dont want to be, is back at this point when I start modifying the salocal.cf, local.cf rules.

Thanks
Reply With Quote
  #7 (permalink)  
Old 04-29-2009, 02:46 AM
Moderator
 
Posts: 7,911
Default

Instead of re-installing why not try just upgrading to 5.0.15 ?
__________________
Reply With Quote
  #8 (permalink)  
Old 04-29-2009, 03:17 AM
Intermediate Member
 
Posts: 15
Default

Would a small incremental upgrade from 5.0.11 to 5.0.15 really make that much of a difference??
Reply With Quote
  #9 (permalink)  
Old 04-29-2009, 03:22 AM
Moderator
 
Posts: 7,911
Default

It can do ...
__________________
Reply With Quote
  #10 (permalink)  
Old 04-30-2009, 02:20 AM
Intermediate Member
 
Posts: 15
Default

I will be upgrading sometime today, does anyone know a fix if it doesnt work?
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.