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-15-2005, 06:23 PM
Senior Member
 
Posts: 52
Default Working with an external SPAM filter server

We are looking at migrating our mail service to Zimbra. Currently, we have a cluster of servers that does virus and spam filtering. The suspect-spam messages are tagged with a X-header and delivered to the SMTP host. The SMTP host then uses procmail to drop the messages either into INBOX or a Quarantine mailbox.

Could I configure Zimbra to do this kind of delivery based on the X-header or is there a better way to do this with Zimbra?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 10-15-2005, 06:54 PM
Zimbra Employee
 
Posts: 4,792
Default

Is the Quarantine a folder in the user's mailbox or a seperate mailbox? If it's just a folder you could create a default rule for each user to move thi mail to that folder on delivery. That way if user's like they can remove/modify the rule and it gives them finer control.
Reply With Quote
  #3 (permalink)  
Old 10-15-2005, 07:53 PM
Senior Member
 
Posts: 52
Default

Currently, QUARANTINE is just an IMAP folder, i.e., a folder in the user's mailbox. How do I create a default rule in Zimbra?

thanks for the help?

Quote:
Originally Posted by KevinH
Is the Quarantine a folder in the user's mailbox or a seperate mailbox? If it's just a folder you could create a default rule for each user to move thi mail to that folder on delivery. That way if user's like they can remove/modify the rule and it gives them finer control.
Reply With Quote
  #4 (permalink)  
Old 10-15-2005, 09:20 PM
Zimbra Employee
 
Posts: 4,792
Default

I think you can set that attribute with zmprov. Just create a filter via the UI an look at it via LDAP (sorry don't have the schema in front of me at the moment).
Reply With Quote
  #5 (permalink)  
Old 10-16-2005, 08:16 AM
Senior Member
 
Posts: 52
Default

So, let me clarify this, I need to add an attribute for each user I create with zmprov? There isn't a global one that I can set on a per CoS level?

Quote:
Originally Posted by KevinH
I think you can set that attribute with zmprov. Just create a filter via the UI an look at it via LDAP (sorry don't have the schema in front of me at the moment).
Reply With Quote
  #6 (permalink)  
Old 10-16-2005, 11:28 AM
Zimbra Employee
 
Posts: 228
Default

correct. System-wide (and/or COS-wide) filters are planned for a future release.

roland
Reply With Quote
  #7 (permalink)  
Old 10-16-2005, 09:02 PM
Senior Member
 
Posts: 52
Default

Thanks, Kevin. The attribute name is zimbraMailSieveScript. However, the filter rule spans multiple lines, see below
require ["fileinto", "reject", "tag", "flag"];

# SPAM
if anyof (header :is "X-Spam-Flag" "YES" )
{
fileinto "/Junk";
}

How do I add an attribute with value that spans multiple lines with zmprov?


Quote:
Originally Posted by KevinH
I think you can set that attribute with zmprov. Just create a filter via the UI an look at it via LDAP (sorry don't have the schema in front of me at the moment).
Reply With Quote
  #8 (permalink)  
Old 10-16-2005, 10:18 PM
Zimbra Employee
 
Posts: 228
Default

You should be able to quote the newlines via \n:

Code:
zmprov ma some@account.domain zimbraMailSieveScript "a\nb\nc"
Also note at the moment the mail server might not immediately pickup values changed via zmprov, since it is talking to LDAP directly, and the mail server is caching, so you either need to restart the mail server (tomcat) or wait 15 minutes or so.

A future version of zmprov will use SOAP to the mail server, and update its cache.

roland
Reply With Quote
  #9 (permalink)  
Old 10-17-2005, 07:18 AM
Senior Member
 
Posts: 52
Default

\n did not seem to work. It took \n literally and did not turn them into newlines.


Quote:
Originally Posted by schemers
You should be able to quote the newlines via \n:

Code:
zmprov ma some@account.domain zimbraMailSieveScript "a\nb\nc"
Also note at the moment the mail server might not immediately pickup values changed via zmprov, since it is talking to LDAP directly, and the mail server is caching, so you either need to restart the mail server (tomcat) or wait 15 minutes or so.

A future version of zmprov will use SOAP to the mail server, and update its cache.

roland
Reply With Quote
  #10 (permalink)  
Old 10-17-2005, 10:11 AM
Zimbra Employee
 
Posts: 228
Default

It worked for me, but that was against my latest build, so maybe that change when in after M1.

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