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 10-24-2006, 06:47 PM
Member
 
Posts: 13
Default Disable outbound SA check, and/or remove headers?

It's a long story as to why this is needed, but the short story is that it is needed in my case.

Is there any way to tell SpamAssassin to not bother it's checking for outbound mail. That is to say, for mail originating on my local network?

What would be best is to have a way to strip the whole header process entirely to a simple, minimal header. The various "X-DSPAM-Result:", "X-Spam-*" and "X-Virus-*" headers are causing GMAIL's (yes, google's mail) to think that any mail sent from Zimbra is actually spam itself. I know that's hard to believe, but it appears to be true.

Even if the solution relies in Postfix, is there any way to remove these headers on the "outbound"?

I've whitelisted my local domain inside zimbra's /etc/mail/spamassasin/local.cf file, but it seems to do nothing (all headers are still in there).

Don't get me wrong, I love that Zimbra checks incoming email for virus & spam, but most mail servers allow you to re-write the headers on outbound (to hide the details of the configuration behind your firewall).

Gracias!
Reply With Quote
  #2 (permalink)  
Old 10-25-2006, 05:45 PM
Active Member
 
Posts: 30
Default

Assuming you have one on your network, I'm wondering if specifying an non-zimbra, e.g. straight up sendmail, server in "Global Settings -> MTA -> Relay MTA for external delivery" will solve your problem?
Reply With Quote
  #3 (permalink)  
Old 10-26-2006, 09:44 AM
Member
 
Posts: 13
Default

Thanks. That's what I ended up doing. We now punt to an MTA in the DMZ running exim that strips the headers.
Reply With Quote
  #4 (permalink)  
Old 03-08-2007, 06:56 AM
Junior Member
 
Posts: 5
Default

I have the same problem, and i think that using a relay mta isnt the best solution. There is a way to strip off de X-spam headers in the outbound mail???
Reply With Quote
  #5 (permalink)  
Old 08-29-2007, 12:33 PM
Senior Member
 
Posts: 61
Question how to omit X-Spam-Score header for non-spam ?

I have the same problem. I'm a department on a campus and they only add a X-Spam-Score header if the score is >= 5. They've told users they can junk messages if the header exists at all. Zimbra adds this header even if the score is negative.

The salocal.cf.in looks like this:
Code:
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_
So...
I would like to keep the X-Spam-Status header intact:
Code:
X-Spam-Status: Yes, score=9.773 tagged_above=-10 required=6.6
	tests=[BAYES_99=3.5, CAMPUS_FLAGGED_AS_SPAM=5,   
        INFO_TLD=1.273]
But not create a X-Spam-Score header if the score is < 5.


Anyone know how to make that change in spamassassin? I could look into doing it on my edge MTA, but I think that might be messy to try doing selectively.
Reply With Quote
  #6 (permalink)  
Old 08-29-2007, 03:34 PM
Senior Member
 
Posts: 61
Default

I've tried

Code:
clear_headers
add_header spam Flag _YESNOCAPS_
#add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_
add_header spam 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_
remove_header ham Score
But I still get a X-Spam-Score header even for negative values. In fact I don't think my changes are doing anything. After changing salocal.cf.in I'm running 'zmantispamctl reload' and I see that the amavisd process has an updated timestamp.

How do I get rid of X-Spam-Score headers on ham?
Reply With Quote
  #7 (permalink)  
Old 01-22-2009, 08:20 AM
Member
 
Posts: 12
Default found solution

I ran into this same issue. The culprit is some jiggery-pokery that AmavisD is doing, so changing /opt/zimbra/conf/amavisd.conf.in resolves it.

The line that needed changing starts with "$sa_tag_level_deflt =" -- it was set to -10, and I changed it to 4.

I'm guessing that this change will not persist across upgrades.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


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.