1

Topic: Open Xchange Groupware and iRedMail Sieve

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.7.4 + iRedAdmin Pro LDAP 1.7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian 6.0, 64bit
- Related log if you're reporting an issue:
====
Hi!

We switched to iRedMail a while ago and everything works smooth so far. The only problem we have since we´ve changed is our Open Xchange Groupware Server (another, external virtual machine) is not able to connect to sievemanager on iRedMail to handle filter and vacation messages.

It worked flawless with our old mailserver, which was a custom installed Debian with Postfix, Cyrus, Amavis, etc.

I´ve made some changes already in the mailfilter.properties of Open Xchange, for example SIEVE_CREDSRC from session to mail (because iRedMail uses user@domain.com as login), the SIEVE_SERVER, and SIEVE_PORT and SCRIPT_NAME=roundcube (old one was Open-Xchange).

Telnet IP-OF-IREDMAIL-SERVER 4190 does not work, maybe that is the problem. Maybe iRedMail does not allow connections to port 2000 from external sources with default settings?!

You may have a look at the OX mailfilter.properties here:

# Specify which sieve server should be used. Two options are allowed here:
# user : use the imap server setting stored for user in the database
# global : use the sieve server given in this config file for all users
#SIEVE_LOGIN_TYPE=user
SIEVE_LOGIN_TYPE=global
# Specify which sieve credentials should be use. Two options are allowed here:
# "session" : login name and password are used from the current session
# "imapLogin" : the login name is taken from the field imapLogin of the current
#               user the password is taken from the current session
# "mail" : use the primary mail address of the user and the password from the
#          session
#SIEVE_CREDSRC=session
SIEVE_CREDSRC=mail
#SIEVE_CREDSRC=imapLogin
# to override the  sieve server defaults specify a value for the sieve server here
SIEVE_SERVER=1.78.143.246
#SIEVE_PORT=2000
SIEVE_PORT=4190
# If you want the script to be generated with another script name change it here.
# Note that the mail filter bundle will then leave the old script with the old
# script name behind, and doesn't delete it
#SCRIPT_NAME=Open-Xchange
#SCRIPT_NAME=roundcube.sieve
SCRIPT_NAME=roundcube
# Define the charset encoding to use for authentication to sieve server
SIEVE_AUTH_ENC=UTF-8
# Define the regex which recognizes servers with incorrect sieve TLS implementation
NON_RFC_COMPLIANT_TLS_REGEX=^Cyrus.*v([0-1]\\.[0-9].*|2\\.[0-2].*|2\\.3\\.[0-9]|2\\.3\\.[0-9][^0-9].*)$
# Whether to use TLS if available
#TLS=true
TLS=false
# Specify here if vacation messages should only be sent to specific domains
# If multiple domains are given, they should be separated by ","
# e.g. VACATION_DOMAINS=testdomain.com,example.com
VACATION_DOMAINS=
# Specifies when the connection should time out (value in milliseconds)
com.openexchange.mail.filter.connectionTimeout=30000
# Set the password source; meaning which source is taken to determine a user's
# password to login into mail filter system. If 'session' is set, then user's individual
# system's password is taken. If 'global' is set, then the value specified through
# property 'com.openexchange.mail.filter.masterPassword' is taken.
# Currently known values: session and global
com.openexchange.mail.filter.passwordSource=session
# The master password for mail/transport server. Only takes effect when property
# "com.openexchange.mail.filter.passwordSource" is set to "global"
com.openexchange.mail.filter.masterPassword=
# Cyrus imap server uses MODIFIED UTF-7 encoding for folder names in older versions.
# This has to be set to 'true' if a cyrus imap server is used whose version is lower than 2.3.11.
# Otherwise moving mails with the 'fileinto' command will not work for mail folders with special characters in their names.
com.openexchange.mail.filter.useUTF7FolderEncoding=false
# interpret SIEVE Response Codes, see https://tools.ietf.org/html/rfc5804#section-1.3
# in most cases, this option must be kept to false
com.openexchange.mail.filter.useSIEVEResponseCodes=false
# Enable punycode encoding for the username used in authentication against the managesieve server
com.openexchange.mail.filter.punycode=false
~                                               

Open Xchange log says:

2.09.2012 17:02:42 com.openexchange.log.internal.LoggerTask call
SCHWERWIEGEND: Logged at: com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:160)
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 4190 exceptionID=-1477044309-265
com.openexchange.ajp13.remoteAddress=127.0.0.1
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 4190 exceptionID=-1477044309-265

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Open Xchange Groupware and iRedMail Sieve

ventas wrote:

MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 4190 exceptionID=-1477044309-265

It says cannot connect to sieve server (1.78.143.246:4190).

*) Is the sieve service running on this server (1.78.143.246) and port (4190)?
*) If sieve server is running, there must be some log in its log file. On iRedMail, it should be logged to /var/log/dovecot.log and/or /var/log/sieve.log. If there's no detailed log, please turn on debug mode in dovecot.conf (mail_debug = yes), then try again.

Please paste related log here to help troubleshoot.

Addition tips (after we got above issue solved):

*) You can use "SCRIPT_NAME=dovecot.sieve" instead, it's a symbol link to the real sieve file "roundcube" created by Roundcube webmail.

3 (edited by ventas 2013-01-07 18:15:03)

Re: Open Xchange Groupware and iRedMail Sieve

Changed SCRIPT_NAME to dovecot.sieve on Open Xchange´s mailfilter.properties, also port to 4190.
Activated mail_debug for Dovecot.

Login with Open Xchange and going to the filter settings bringt this in dovecot.log:

Jan 07 11:09:56 imap-login: Info: Login: user=<xxx@company.de>, method=PLAIN, rip=1.78.143.244, lip=1.78.143.246, TLS
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Effective uid=1001, gid=1001, home=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25/
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota rule: root=user mailbox=* bytes=0 messages=0
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Jan 07 11:09:56 IMAP(xxx@company.de): Info: dict quota: user=xxx@company.de, uri=proxy::quotadict, noenforcing=0
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Jan 07 11:09:56 IMAP(xxx@company.de): Info: maildir: data=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir/
Jan 07 11:09:56 IMAP(xxx@company.de): Info: maildir++: root=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir, index=, control=, inbox=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: initializing backend with data: vfile
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: acl username = xxx@company.de
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: owner = 1
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl vfile: Global ACL directory: (null)
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Namespace: type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes
Jan 07 11:09:56 IMAP(xxx@company.de): Info: shared: root=, index=, control=, inbox=
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Namespace : Using permissions from /var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir: mode=0700 gid=-1
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl vfile: file /var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir/dovecot-acl not found
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Disconnected: Logged out bytes=60/910
Jan 07 11:09:56 imap-login: Info: Login: user=<xxx@company.de>, method=PLAIN, rip=1.78.143.244, lip=1.78.143.246, TLS
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Effective uid=1001, gid=1001, home=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25/
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota rule: root=user mailbox=* bytes=0 messages=0
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Quota warning: bytes=0 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Jan 07 11:09:56 IMAP(xxx@company.de): Info: dict quota: user=xxx@company.de, uri=proxy::quotadict, noenforcing=0
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Jan 07 11:09:56 IMAP(xxx@company.de): Info: maildir: data=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir/
Jan 07 11:09:56 IMAP(xxx@company.de): Info: maildir++: root=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir, index=, control=, inbox=/var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: initializing backend with data: vfile
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: acl username = xxx@company.de
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl: owner = 1
Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl vfile: Global ACL directory: (null)
Jan 07 11:09:56 IMAP(xxx@company.de): Info: Namespace: type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes
Jan 07 11:09:56 IMAP(xx@company.de): Info: shared: root=, index=, control=, inbox=
Jan 07 11:09:56 IMAP(xx@company.de): Info: Namespace : Using permissions from /var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir: mode=0700 gid=-1
Jan 07 11:09:56 IMAP(xx@company.de): Info: acl vfile: file /var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir/dovecot-acl not found

4

Re: Open Xchange Groupware and iRedMail Sieve

Still not work? I cannot find related error message in your debug log.

5

Re: Open Xchange Groupware and iRedMail Sieve

But I can see an error:

Jan 07 11:09:56 IMAP(xxx@company.de): Info: acl vfile: file /var/vmail/vmail1/company.de/x/x/x/xxx-2011.11.14.21.37.25//Maildir/dovecot-acl not found

This and all that above comes when opening the filter page in the mail settings inside Open Exchange.

6

Re: Open Xchange Groupware and iRedMail Sieve

What's the situation in Open Xchange side?

7 (edited by LucapcHumas 2013-01-08 22:48:30)

Re: Open Xchange Groupware and iRedMail Sieve

actually i don't know .
low cost generic copier ink

8 (edited by ventas 2013-01-08 16:10:03)

Re: Open Xchange Groupware and iRedMail Sieve

open-xchange.log.0 during login and checking mailfilter (1.78.143.246 is iRedMail):

==> open-xchange.log.0 <==
08.01.2013 09:08:27 com.openexchange.log.internal.LoggerTask call
SCHWERWIEGEND: Logged at: com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:160)
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 2000 exceptionID=1970102152-1519
com.openexchange.ajp13.remoteAddress=127.0.0.1
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 2000 exceptionID=1970102152-1519
    at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:214)
    at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:110)

9

Re: Open Xchange Groupware and iRedMail Sieve

ventas wrote:

MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 2000 exceptionID=1970102152-1519

Port 2000? Or 4190?

10

Re: Open Xchange Groupware and iRedMail Sieve

ZhangHuangbin wrote:
ventas wrote:

MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 2000 exceptionID=1970102152-1519

Port 2000? Or 4190?

Yeah, that´s strange. I´ve changed the port to 4190 yesterday (see my comment) and OX still tries port 2000. I´ll have to check this first.

11 (edited by ventas 2013-01-08 18:21:37)

Re: Open Xchange Groupware and iRedMail Sieve

Fixed port on OX side. Still get errors connecting to iRedMail´s SIEVE:


08.01.2013 11:20:32 com.openexchange.log.internal.LoggerTask call
SCHWERWIEGEND: Logged at: com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:160)
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 4190 exceptionID=228287586-7
com.openexchange.ajp13.remoteAddress=127.0.0.1
MAIL_FILTER-0014 Category=8 Message=Error in low level connection to sieve server 1.78.143.246 at port 4190 exceptionID=228287586-7
    at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:214)
    at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:110)
    at com.openexchange.mailfilter.ajax.actions.AbstractAction.action(AbstractAction.java:79)
    at com.openexchange.mailfilter.ajax.AJAXServlet.doGet(AJAXServlet.java:158)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.openexchange.ajp13.najp.AJPv13RequestHandlerImpl.doServletService(AJPv13RequestHandlerImpl.java:563)
    at com.openexchange.ajp13.AJPv13Request.response(AJPv13Request.java:138)
    at com.openexchange.ajp13.najp.AJPv13RequestHandlerImpl.createResponse(AJPv13RequestHandlerImpl.java:365)
    at com.openexchange.ajp13.najp.AJPv13ConnectionImpl.createResponse(AJPv13ConnectionImpl.java:224)
    at com.openexchange.ajp13.najp.AJPv13Task.call(AJPv13Task.java:394)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
    at java.util.concurrent.FutureTask.run(FutureTask.java:123)
    at com.openexchange.threadpool.internal.CustomThreadPoolExecutor$Worker.runTask(CustomThreadPoolExecutor.java:781)
    at com.openexchange.threadpool.internal.CustomThreadPoolExecutor$Worker.run(CustomThreadPoolExecutor.java:807)
    at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:367)
    at java.net.Socket.connect(Socket.java:524)
    at com.openexchange.jsieve.export.SieveHandler.initializeConnection(SieveHandler.java:237)
    at com.openexchange.mailfilter.ajax.actions.MailfilterAction.actionConfig(MailfilterAction.java:208)
    ... 15 more

12 (edited by ventas 2013-01-08 18:24:58)

Re: Open Xchange Groupware and iRedMail Sieve

These are the actual settings in mailfilter.properties (OX):

# Specify which sieve server should be used. Two options are allowed here:
# user : use the imap server setting stored for user in the database
# global : use the sieve server given in this config file for all users
#SIEVE_LOGIN_TYPE=user
SIEVE_LOGIN_TYPE=global
# Specify which sieve credentials should be use. Two options are allowed here:
# "session" : login name and password are used from the current session
# "imapLogin" : the login name is taken from the field imapLogin of the current
#               user the password is taken from the current session
# "mail" : use the primary mail address of the user and the password from the
#          session
SIEVE_CREDSRC=session
#SIEVE_CREDSRC=mail
#SIEVE_CREDSRC=imapLogin
# to override the  sieve server defaults specify a value for the sieve server here
SIEVE_SERVER=1.78.143.246
#SIEVE_PORT=2000
SIEVE_PORT=4190
# If you want the script to be generated with another script name change it here.
# Note that the mail filter bundle will then leave the old script with the old
# script name behind, and doesn't delete it
#SCRIPT_NAME=Open-Xchange
#SCRIPT_NAME=roundcube.sieve
#SCRIPT_NAME=roundcube
SCRIPT_NAME=dovecot.sieve
# Define the charset encoding to use for authentication to sieve server
SIEVE_AUTH_ENC=UTF-8
# Define the regex which recognizes servers with incorrect sieve TLS implementation
NON_RFC_COMPLIANT_TLS_REGEX=^Cyrus.*v([0-1]\\.[0-9].*|2\\.[0-2].*|2\\.3\\.[0-9]|2\\.3\\.[0-9][^0-9].*)$
# Whether to use TLS if available
TLS=true
#TLS=false

13

Re: Open Xchange Groupware and iRedMail Sieve

Caused by: java.net.SocketTimeoutException: connect timed out

Looks like it cannot connect to SIEVE server at all.

- Is sieve service port (4190) open in iptables?
- Is sieve service only listening on 127.0.0.1?

14 (edited by ventas 2013-01-08 18:55:51)

Re: Open Xchange Groupware and iRedMail Sieve

ZhangHuangbin wrote:

Caused by: java.net.SocketTimeoutException: connect timed out

Looks like it cannot connect to SIEVE server at all.

- Is sieve service port (4190) open in iptables?
- Is sieve service only listening on 127.0.0.1?

root@vm-iredmail:/var/log# netstat -tupan| grep 4190
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      10283/dovecot

root@vm-iredmail:/var/log# iptables --list
Chain INPUT (policy DROP)
target     prot opt source               destination         
fail2ban-postfix  tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,sieve
fail2ban-ssh  tcp  --  anywhere             anywhere            tcp dpt:ssh
fail2ban-dovecot  tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,sieve
fail2ban-roundcube  tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,sieve
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,submission,ssmtp,ssh,zabbix-agent,zabbix-trapper
ACCEPT     all  --  anywhere             anywhere           
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request

Chain FORWARD (policy DROP)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain fail2ban-dovecot (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere           

Chain fail2ban-postfix (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere           

Chain fail2ban-roundcube (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere           

Chain fail2ban-ssh (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere

15

Re: Open Xchange Groupware and iRedMail Sieve

ventas wrote:

ACCEPT     tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,submission,ssmtp,ssh,zabbix-agent,zabbix-trapper

Sieve service port is not open in your iptables.

16 (edited by ventas 2013-01-08 19:09:40)

Re: Open Xchange Groupware and iRedMail Sieve

ZhangHuangbin wrote:
ventas wrote:

ACCEPT     tcp  --  anywhere             anywhere            multiport dports www,https,smtp,ssmtp,pop3,pop3s,imap2,imaps,submission,ssmtp,ssh,zabbix-agent,zabbix-trapper

Sieve service port is not open in your iptables.

Ah OK. How can I do this, I´m not so experienced in using iptables...

17

Re: Open Xchange Groupware and iRedMail Sieve

Try this command first:

# iptables -I INPUT -p tcp --dport 4190 -j ACCEPT

Then test Open Xchange again. if it works, open /etc/default/iptables and add port 4190.

18 (edited by ventas 2013-01-08 22:52:51)

Re: Open Xchange Groupware and iRedMail Sieve

ZhangHuangbin wrote:

Try this command first:

# iptables -I INPUT -p tcp --dport 4190 -j ACCEPT

Then test Open Xchange again. if it works, open /etc/default/iptables and add port 4190.

Yeah, it works. Found a small How To with Google.

It works! Just needed:

iptables -A INPUT -p tcp --dport 4190 -j ACCEPT
iptables -A INPUT -p tcp --sport 4190 -j ACCEPT

I can now use OX with iRedMail´s SIEVE filtering or create my own set of filters in side OX.

Thanks for your help and I hope this thread helps other users/customers to understand how to setup Open Xchange Groupware with iRedMail! :-)

Problem solved.