-   Linux - Server (
-   -   Webmail interface could not log on to timsieved (

XXLRay 01-08-2013 12:56 AM

Webmail interface could not log on to timsieved
I ported a mail server from RHEL4 to RHEL6 (Red Hat Enterprise Linux Server release 6.3). It has a cyrusd running and email via IMAP works in principle fine.
My problem is with a Squirrelmail webmail interface on another RHEL6 server. It connects fine to the mailserver and can send and receive emails. The problem is with the avelsieve plugin. As soon as I enable it the interface reports to any logged in user:

"Could not log on to timsieved daemon on your IMAP server
Please contact your administrator."

The plugin worked with the old server and the new one has - to the best of my knowledge - the same IP, hostname and firewall settings (port 2000/tcp is open).
Currently I am trying to get version 1.9.9 (alpha) running where as far as I remember 1.9.8 (alpha) was the version that worked before on the old server (but not on the new one either).

I can ping the server and the telnet connection looks fine:

# telnet 2000
 Connected to
 Escape character is '^]'.
 "IMPLEMENTATION" "Cyrus timsieved v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5"
 "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy"

The settings in /etc/imapd.conf are:

sievedir: /var/lib/imap/sieve
sieve_maxscriptsize: 512

Where these are the permissions for the sieve directory:

# getfacl /var/lib/imap/sieve
getfacl: Removing leading '/' from absolute path names
# file: var/lib/imap/sieve
# owner: cyrus
# group: mail

The user running the imap daemon is indeed cyrus:

# ps aux | grep imap
cyrus      461  0.0  0.1 119000  3460 ?        S    Jan07  0:10 imapd -s

My settings in /etc/cyrus.conf are:

  # add or remove based on preferences
  sieve        cmd="timsieved" listen="sieve-filter" prefork=0

I tried also "sieve" and "" instead of "sieve-filter".

I disabled TLS in my /usr/share/squirrelmail/plugins/avelsieve/config/config.php

$sieveport = 2000;
$avelsieve_disabletls = true;

I even disabled the firewall completely but this did not help. Do you have any ideas which settings I could try or how to debug the problem? It is urging me quite a lot (although you need not to be urged of course) because lots of users need to disable their vacation responders after the holidays.

vishesh 01-08-2013 06:59 AM

Did you cross checked SeLinux related settings . I mean to say SeLinux is in enabled state or its in disabled state .

root# sestatus


XXLRay 01-08-2013 07:50 AM


# sestatus
SELinux status:                enabled
SELinuxfs mount:                /selinux
Current mode:                  permissive
Mode from config file:          enforcing
Policy version:                24
Policy from config file:        targeted

The debug mode of the avelsieve plugin is not very helpful for me by the way:

(Debug Mode). Login failed. Capabilities:ERROR:
Could not log on to timsieved daemon on your IMAP server
Please contact your administrator.

XXLRay 01-08-2013 08:44 AM

Got it back running. The utilized sieve port has changed from 2000 to 4190 between RHEL4 and RHEL6 furthermore I had to explicitely allow plaintext for saslauth in my imapd.conf.

All times are GMT -5. The time now is 06:44 AM.