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-17-2008, 07:05 AM
Advanced Member
 
Posts: 205
Default [SOLVED] Spam Backscatter

Looking in /opt/zimbra/conf/spamassassin/ I see 20_vbounce.cf, along with many more, which appears to check for backscatter due to forged "From" and "ReplyTo" values. Two questions 1)How do I confirm that it is being used?
2)IF its not being used how can I trigger it to be used?

I have several users who are getting a "LOT" of this type of spam which I would like to just drop in the bit bucket.

I have looked at Improving Anti-spam system - Zimbra :: Wiki any other suggestions on further reading on configuring spamassassin within Zimbra?

Thanks

Last edited by jrefl5; 04-21-2008 at 10:07 AM.. Reason: moved to solved and spelling change
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 07:57 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Details here: VBounceRuleset - Spamassassin Wiki Effectively you need to add the following to your local.cf file:

Code:
whitelist_bounce_relays myrelay.mydomain.net
Obviously put your own server name in there, this won't survive any upgrade and you'll have to redo the change.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 08:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Sorry, I forgot some additional information from here: taint.org: Justin Mason’s Weblog » Dealing with backscatter, revisited
__________________
Regards


Bill
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 08:18 AM
Advanced Member
 
Posts: 205
Default Thks

Bill,
Thanks I'll try it out shortly. It looks like 1 or more spammers are rotating through some of my users e-mail addresses that have been on a public website for several years.

Question does local.cf imply /opt/zimbra/conf/salocal.cf.in or is it in another location?

James

Last edited by jrefl5; 04-17-2008 at 08:27 AM..
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 01:52 PM
Moderator
 
Posts: 1,209
Default

Quote:
Originally Posted by phoenix View Post
Sorry, I forgot some additional information from here: taint.org: Justin Mason’s Weblog » Dealing with backscatter, revisited
Hi Bill,

From the taint website it looks like I could just add:

/^Content-Type: multipart\/report; report-type=delivery-status\;/ REJECT no third-party DSNs
/^Content-Type: message\/delivery-status; / REJECT no third-party DSNs

to /opt/zimbra/conf/postfix_header_checks.in and get most of the benefits.

But that's not the syntax for the other lines in postfix_header_checks.in so I am asking if doing so is OK?

Thanks,
Mark
__________________
___________________________________
L. Mark Stone, CIO


"Uptime. All the time."

477 Congress Street | Portland, ME 04101-3431 | (207) 772-5678

proactive maintenance and monitoring | technology consulting
Zimbra groupware | EMR implementations | private cloud hosting
Reply With Quote
  #6 (permalink)  
Old 04-17-2008, 02:01 PM
Advanced Member
 
Posts: 205
Default Updating

I'll let you know soon.
I needed to get the correct location of the local.cf (/opt/zimbra/conf/spamassassin/local.cf) file to test.

I'm about to head to the server to make the changes.

>>Update<<

changes completed updated postfix_header_check.in, and local.cf
>zmcontrol stop start
Server back up and running a few test messages inbound and outbound seem ok.
We'll see how the backscatter cleans-up.
Thanks bill

James

Last edited by jrefl5; 04-17-2008 at 02:38 PM.. Reason: Update
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 12:12 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

Mark

Adding those lines into the conf.in should just add them in the same format to the updated conf file. Let us know how you both get on with this.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 07:03 AM
Advanced Member
 
Posts: 205
Default Solved?

Looks like that did the trick.

Bill,
Do you know of a way to reject based on Charset of the e-mail.
None of the people I support currently read any languages that are in Crylic and there is a fair volume of spam that contains the following.
Quote:
------=_NextPart_000_0002_01C8A152.056221DB
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Thanks
James
Reply With Quote
  #9 (permalink)  
Old 04-18-2008, 07:52 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

It's not something I've used as I don't get much foreign language spam but you should be able to list the accepted languages with the following added to the /opt/zimbra/conf/spamassassin/v310.pre file:

Code:
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english french 
ok_languages            en fr 

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en
Be careful if you use the body test for language as it will slow down spamassassin. There's a handy little generator for the list of languages at the bottom of this page: SpamAssassin Configuration Generator
__________________
Regards


Bill
Reply With Quote
  #10 (permalink)  
Old 04-18-2008, 08:43 AM
Advanced Member
 
Posts: 205
Default

Bill
Thanks. I'll look into those. I did stumble upon a possible test to put in postfix_header_check.in
Quote:
/^SUBJECT:.*koi8-r/ DISCARD No Crylic users on site
as the string appears in the SUBJECT headers on many of them.


I'll be testing it later today.

James
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.