Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 6 of 6
  1. #1
    blub23 Guest

    Default Question on sieve and open-xchange

    Hi there,

    I have installed a OX with success and everything is running so far.
    Now I would like to add additional sieve filter rules.
    I think I have to add them into the "oxfilterscript.script" files.

    Here is an Example:

    # Generated by OX (remove this line if you edit this manually)
    require "fileinto";
    require "vacation";

    if header :is ["X-Spam-Flag"] ["Yes"]
    {
    fileinto "Spam";
    stop ;
    }


    I would like to add the filter that mails with the receiveraddress junk@hostname
    will be moved to a folder named Junk.

    I added this block to the scriptfile:

    if header :contains ["to"] ["junk@hostname"]
    {
    fileinto "Spam";
    stop ;
    }

    But finally nothing happend. Do I have to call a certain tool, that accepts the changes of the oxfilterscript.script file?

    Thanks in advance.

    Best,

    Tobi

  2. #2
    Join Date
    Oct 2007
    Location
    Germany, Essen
    Posts
    171

    Default

    Hi,

    why you donīt use the tool under ox?

    Configuration-> E-Mail -> Filter

    greets

    outlow

  3. #3
    blub23 Guest

    Default

    Thanks for your fast reply.

    I tried this, but then I realized, that I have a problem in my ox config.

    Here is my setup so far.
    On the mailserver I have an old ox installation (04/2008).
    Then I setup a new OX6-Frontend (6.14) on a different webserver. This
    is working pretty well, I can see and modify the calender and infostore entries.
    But I have a problem modifying the filter settings in the frontend.

    When I try to add a new Filter I get the following warning:

    Error while communicating with the sieve server xxx.yyy.zzz.fff at port 2000 for user USER in context 1 (MAIL_FILTER-0015, 1791538080-149821)


    Do you have any idea?
    Last edited by blub23; 03-26-2010 at 01:33 PM.

  4. #4
    Join Date
    Oct 2007
    Location
    Germany, Essen
    Posts
    171

    Default

    Hi,

    please post your cyrus.conf, or do you use another mailserver?

    outlow

  5. #5
    blub23 Guest

    Default

    Hi,


    attached you find the cyrus conf. It should be pretty much the debian
    standard configuration.
    The only line I changed was the line.
    sieve cmd="/usr/lib/cyrus/bin/timsieved" listen="sieve" prefork=0 maxchild=100

    Thanks!



    # Debian defaults for Cyrus IMAP server/cluster implementation
    # see cyrus.conf(5) for more information
    #
    # All the tcp services are tcpd-wrapped. see hosts_access(5)
    # $Id: cyrus.conf 567 2006-08-14 18:19:32Z sven $

    START {
    # do not delete this entry!
    recover cmd="/usr/sbin/ctl_cyrusdb -r"

    # this is only necessary if idlemethod is set to "idled" in imapd.conf
    #idled cmd="idled"

    # this is useful on backend nodes of a Murder cluster
    # it causes the backend to syncronize its mailbox list with
    # the mupdate master upon startup
    #mupdatepush cmd="/usr/sbin/ctl_mboxlist -m"

    # this is recommended if using duplicate delivery suppression
    delprune cmd="/usr/sbin/cyr_expire -E 3"
    # this is recommended if caching TLS sessions
    tlsprune cmd="/usr/sbin/tls_prune"
    }

    # UNIX sockets start with a slash and are absolute paths
    # you can use a maxchild=# to limit the maximum number of forks of a service
    # you can use babysit=true and maxforkrate=# to keep tight tabs on the service
    # most services also accept -U (limit number of reuses) and -T (timeout)
    SERVICES {
    # --- Normal cyrus spool, or Murder backends ---
    # add or remove based on preferences
    imap cmd="imapd -U 30" listen="imap" prefork=0 maxchild=100
    imaps cmd="imapd -s -U 30" listen="imaps" prefork=0 maxchild=100
    #pop3 cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
    pop3s cmd="pop3d -s -U 30" listen="pop3s" prefork=0 maxchild=50
    #nntp cmd="nntpd -U 30" listen="nntp" prefork=0 maxchild=100
    #nntps cmd="nntpd -s -U 30" listen="nntps" prefork=0 maxchild=100

    # At least one form of LMTP is required for delivery
    # (you must keep the Unix socket name in sync with imap.conf)
    #lmtp cmd="lmtpd" listen="localhost:lmtp" prefork=0 maxchild=20
    lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp" prefork=0 maxchild=20
    # ----------------------------------------------
    # useful if you need to give users remote access to sieve
    # by default, we limit this to localhost in Debian
    #sieve cmd="/usr/lib/cyrus/bin/timsieved" listen="localhost:sieve" prefork=0 maxchild=100
    sieve cmd="/usr/lib/cyrus/bin/timsieved" listen="sieve" prefork=0 maxchild=100

    # this one is needed for the notification services
    notify cmd="notifyd" listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1

    # --- Murder frontends -------------------------
    # enable these and disable the matching services above,
    # except for sieve (which deals automatically with Murder)

    # mupdate database service - must prefork at least 1
    # (mupdate slaves)
    #mupdate cmd="mupdate" listen=3905 prefork=1
    # (mupdate master, only one in the entire cluster)
    #mupdate cmd="mupdate -m" listen=3905 prefork=1

    # proxies that will connect to the backends
    #imap cmd="proxyd" listen="imap" prefork=0 maxchild=100
    #imaps cmd="proxyd -s" listen="imaps" prefork=0 maxchild=100
    #pop3 cmd="pop3proxyd" listen="pop3" prefork=0 maxchild=50
    #pop3s cmd="pop3proxyd -s" listen="pop3s" prefork=0 maxchild=50
    #lmtp cmd="lmtpproxyd" listen="lmtp" prefork=1 maxchild=20
    # ----------------------------------------------
    }

    EVENTS {
    # this is required
    checkpoint cmd="/usr/sbin/ctl_cyrusdb -c" period=30

    # this is only necessary if using duplicate delivery suppression
    delprune cmd="/usr/sbin/cyr_expire -E 3" at=0401

    # this is only necessary if caching TLS sessions
    tlsprune cmd="/usr/sbin/tls_prune" at=0401

    # indexing of mailboxs for server side fulltext searches

    # reindex changed mailboxes (fulltext) approximately every other hour
    #squatter_1 cmd="/usr/bin/nice -n 19 /usr/sbin/squatter -s" period=120

    # reindex all mailboxes (fulltext) daily
    #squatter_a cmd="/usr/sbin/squatter" at=0517
    }

  6. #6
    Join Date
    Oct 2007
    Location
    Germany, Essen
    Posts
    171

    Default

    Hi,

    please change this to

    sieve cmd="/usr/lib/cyrus/bin/timsieved" listen="localhost:sieve" prefork=0 maxchild=100


    and restart services.

    Post your results.

    mfg

    outlow

Bookmarks

Posting Permissions

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