Announcement

Collapse
No announcement yet.

Error in low level connection to sieve server

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cornfelt
    Guest replied
    I've decided against maildrop and for dovecot as virtual transporter.
    And now the sieve filter works fine.

    Thank you Martin for your help.

    cornfelt

    Leave a comment:


  • cornfelt
    Guest replied
    is there a chance to use maildrop as mailfilter together with ox?

    Leave a comment:


  • Martin Heiland
    replied
    The sieve filter will only be used if the E-Mail is delivered via LDA, otherwise it won't do anything (my guess).

    Take a look:

    Leave a comment:


  • cornfelt
    Guest replied
    our email-acocunts are only mentioned in the database. there are no unix-user-accounts.
    what have I to do and to note that lda is used (a little howto)?
    ?????

    or

    is there another way to use sieve-filter, without lda?
    Last edited by Guest; 11-25-2008, 06:20 PM.

    Leave a comment:


  • Martin Heiland
    replied
    Hi,

    could it be that LDA is not used at all on your setup? Just a guess because you mentioned maildrop...

    Greetings

    Leave a comment:


  • cornfelt
    Guest replied
    sieve filter don't work

    I was to fast.

    The filters don't working.
    I create 2 filters to move some mails in another folder. I created both with the gui and both appear in the user-sieve-file.
    But if I get an email it arrives in the inbox.

    Additionally infos
    - I use postfix, maildrop and spamassassin too

    If I get an email in ox and look at the dovecotinfo.log (with mail_debug=yes) there is no entry with sieve or managesieve.
    If I set a filter managesieve appears in this logfile.

    Why don't work the filter.

    my full dovecot.conf
    Code:
    protocols = imap imaps managesieve lda
    listen = *
    login_process_size = 64
    
    mail_location = maildir:/data/fs/mail/kunden/%d/%u/
    
    log_path = /var/log/dovecot.log
    info_log_path = /var/log/dovecotinfo.log
    
    auth_debug = yes
    mail_debug = yes
    
    namespace private {
    	separator = .
    	prefix = INBOX.
    	inbox = yes
    }
    
    namespace private {
    	separator = .
    	prefix =
    	inbox = no
    	hidden = yes
    }
    
    mail_uid = vmail
    mail_gid = vmail
    verbose_proctitle = yes
    first_valid_uid = 2200
    first_valid_gid = 2200
    #umask = 0077
    mbox_read_locks = fcntl
    mbox_write_locks = fcntl
    
    max_mail_processes = 512
    mail_process_size = 256
    
    ssl_disable = no
    disable_plaintext_auth = no
    
    ssl_cert_file = /etc/ssl/certs/dovecot.pem
    ssl_key_file = /etc/ssl/private/dovecot.pem
    
    # If key file is password protected, give the password here. Alternatively
    # give it when starting dovecot with -p parameter.
    ssl_key_password =
    
    protocol imap {
    	mail_max_userip_connections = 15
    	imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
    
    	mail_plugin_dir = /usr/local/lib/dovecot/imap
    	mail_plugins = quota imap_quota expire
    }
    
    protocol lda {
    	postmaster_address = postmaster@car-copy.com
    	sendmail_path = /usr/sbin/sendmail
    	mail_plugin_dir = /usr/local/lib/dovecot/lda
    	mail_plugins = quota expire cmusieve
    }
    
    protocol managesieve {
    	listen = *:2000
    	login_executable = /usr/local/libexec/dovecot/managesieve-login
    	mail_executable = /usr/local/libexec/dovecot/managesieve
    	managesieve_max_line_length = 65536
    	sieve_storage = 
    	sieve = /data/fs/mail/sieve-scripts/%u.sieve
    	managesieve_implementation_string = dovecot
    }
    
    auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
    
    auth_verbose = yes
    auth default {
    	passdb sql {
    		args = /usr/local/etc/dovecot-mysql.conf
    	}
      
    	userdb sql {
            args = /usr/local/etc/dovecot-mysql.conf
    	}
    }
    
    dict {
    	quotadict = mysql:/usr/local/etc/dovecot-dict-quota.conf
    	expire = mysql:/etc/dovecot-dict-expire.conf
    }
    
    plugin {
    	quota = maildir:User quota
            quota_rule = *:storage=1G:messages=20000
    	quota_warning = storage=95%% /usr/local/wx/share/quota-warning.sh 95 %u
    	quota_warning2 = storage=80%% /usr/local/wx/share/quota-warning.sh 80 %u
      	expire_dict = proxy::expire
    	sieve = /data/fs/mail/sieve-scripts/%u.sieve
    }
    thanks,

    cornfelt

    Leave a comment:


  • cornfelt
    Guest replied
    Hi,

    thanks for the hints.
    I didn't know, that I have to install ManageSieve too.

    Now, everything works fine.

    cornfelt

    Leave a comment:


  • Martin Heiland
    replied
    Hi,

    i installed Dovecot on Debian and had to compile it myself because the SIEVE plugin is only one part of the implementation. The ManageSieve module also needs to compiled into Dovecot and is the management module which allows access via port 2000.




    The compile process itself was pretty straight-forward but requires some dependencies to build all the stuff.

    Hope that helps

    Leave a comment:


  • cornfelt
    Guest replied
    Hi Martin,

    at first, thanks for the response.
    sieve seems to be installed following files are available:

    Code:
    /usr/local/libexec/dovecot/sieved
    /usr/local/libexec/dovecot/sievec
    /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.a
    /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.so
    /usr/local/lib/dovecot/lda/lib90_cmusieve_plugin.la
    but telnet says "connection refused".
    Well, there is no sieve server running. There must be something wrong in my dovecot-config. If I (re)starts dovecote no errors occur at stdout or in the log files.
    I've tried to start sieved manuelly, but it seemse to be no daemon. It asks for a script (I think a sieve-filter-script??).
    Can you give me more hints or tips?

    Thanks ,

    cornfelt

    Leave a comment:


  • Martin Heiland
    replied
    Hi,

    i've a Dovecot 1.1.6 working properly with SIEVE against OX6, so there is no problem with it. Are you sure the SIEVE Service is installed properly? (telnet localhost 2000 should print some output).

    Greetings

    Leave a comment:


  • cornfelt
    Guest started a topic Error in low level connection to sieve server

    Error in low level connection to sieve server

    Hello,

    after the login I get following error message in Quickinfo

    Code:
    Fehlermeldung: Error in low level connection to sieve server (MAIL_FILTER-0014,-329333138-68)
    the log-file shows this

    Code:
    SEVERE: MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server exceptionID=-329333138-68
    MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server exceptionID=-329333138-68
            at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:165)
            at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:98)
            at com.openexchange.mailfilter.ajax.actions.AbstractAction.action(AbstractAction.java:79)
            at com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:192)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at com.openexchange.ajp13.AJPv13Request.response(AJPv13Request.java:120)
            at com.openexchange.ajp13.AJPv13RequestHandler.createResponse(AJPv13RequestHandler.java:466)
            at com.openexchange.ajp13.AJPv13Connection.createResponse(AJPv13Connection.java:197)
            at com.openexchange.ajp13.AJPv13Listener.run(AJPv13Listener.java:259)
            at java.lang.Thread.run(Thread.java:636)
    Caused by: java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
            at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:381)
            at java.net.Socket.connect(Socket.java:537)
            at java.net.Socket.connect(Socket.java:487)
            at java.net.Socket.<init>(Socket.java:384)
            at java.net.Socket.<init>(Socket.java:198)
            at com.openexchange.jsieve.SieveHandler.initializeConnection(SieveHandler.java:241)
            at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:158)
            ... 10 more
    my mailfilter.properties
    Code:
    SIEVE_LOGIN_TYPE=global
    SIEVE_CREDSRC=imapLogin
    SIEVE_SERVER=localhost
    SIEVE_PORT=2000
    SCRIPT_NAME=Open-Xchange
    I've installed dovecot 1.1.7 with Sieve plugin v1.1.5 and ox 6.6.

    relevant parts of my dovecot.conf
    Code:
    protocol lda {
            postmaster_address = postmaster@foo.com
            sendmail_path = /usr/sbin/sendmail
    
            mail_plugin_dir = /usr/local/lib/dovecot/lda
            mail_plugins = quota expire cmusieve
    }
    plugin {
            sieve = /data/fs/mail/sieve-scripts/%u.sieve
    }
    IMAP is ok, but if I want to create a filter the same error occcurs.
    If I start dovecot there is no hint, that the siveplugin is loaded, only the other plugins are indicated.

    Can someone help me?
    I found no helpful entries in this forum and I also found nothing with google.
    Can it be, that I understand something wrong with the plugin and the ox-sieve-server?

    Thanks,

    cornfelt
Working...
X