Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Working with an external SPAM filter server

  1. #1
    tron is offline Senior Member
    Join Date
    Oct 2005
    Posts
    52
    Rep Power
    9

    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.

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    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.

  3. #3
    tron is offline Senior Member
    Join Date
    Oct 2005
    Posts
    52
    Rep Power
    9

    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.

  4. #4
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

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

  5. #5
    tron is offline Senior Member
    Join Date
    Oct 2005
    Posts
    52
    Rep Power
    9

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

  6. #6
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

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

    roland

  7. #7
    tron is offline Senior Member
    Join Date
    Oct 2005
    Posts
    52
    Rep Power
    9

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

  8. #8
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    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

  9. #9
    tron is offline Senior Member
    Join Date
    Oct 2005
    Posts
    52
    Rep Power
    9

    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

  10. #10
    schemers is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

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

    roland

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Authentication to external ldap stop working.
    By jahaj in forum Installation
    Replies: 3
    Last Post: 12-05-2006, 03:17 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 09:19 AM
  5. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •