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.