1

Topic: Cant login to httpS://example.com/mail/

Hallo all,

i have installed a iRedMail server on openSuse 11.4.
I followed this guide http://www.howtoforge.com/iredmail-0...-opensuse-11.3

Now when i restart the services i get the following from the terminal:

Shutting down syslog services                                        done
Starting syslog services                                             done
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)         done
Starting httpd2 (prefork)                                            done
Shutting down mail service (Postfix)                                 done
Starting mail service (Postfix)                                      done
Restarting service MySQL 
Shutting down service MySQL                                          done
Starting service MySQL                                               done
Shutting down ldap-server                                            done
Starting ldap-server                                                 done
Shutting down policyd                                                done
Starting policyd                                                     done
Stopping dovecot                                                     done
Starting dovecot Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied
Error: managesieve dump-capability process returned 84
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
startproc:  exit status of parent of /usr/sbin/dovecot: 89
                                                                     failed
Shutting down virus-scanner (amavisd-new): Daemon [23632] terminated by SIGTERM
                                                                     done
Starting virus-scanner (amavisd-new):                                done
Shutting down Clam AntiVirus daemon                                  done
Starting Clam AntiVirus daemon                                       done
Shutting down Clam AntiVirus database update daemon                  done
Starting Clam AntiVirus database update daemon                       done
Shutting down CRON daemon                                            done
Starting CRON daemon                                                 done
Stopping iredapd ...
Starting iredapd ...
Loading firewall rules                                               done
linux-nws1:/home/iRedMail-0.7.1 #

And when i test i cant log in to the webmail accounts.
If i try to log in i get this massage:

Connection to IMAP server failed

All the other services work and i can log in to them.
I also just restarted Linux and restarted the services then the output looked like this:

Shutting down syslog services                                        done
Starting syslog services                                             done
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)         done
Starting httpd2 (prefork)                                            done
Shutting down mail service (Postfix)                                 done
Starting mail service (Postfix)                                      done
Restarting service MySQL 
Shutting down service MySQL                                          done
Starting service MySQL                                               done
Shutting down ldap-server                                            done
Starting ldap-server                                                 done
Shutting down policyd                                                done
Starting policyd                                                     done
Stopping dovecot                                                     done
Starting dovecot                                                     done
Shutting down virus-scanner (amavisd-new): Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied
Error: managesieve dump-capability process returned 84
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
Daemon [2487] terminated by SIGTERM
                                                                     done
Starting virus-scanner (amavisd-new):                                done
Shutting down Clam AntiVirus daemon                                  done
Starting Clam AntiVirus daemon                                       done
Shutting down Clam AntiVirus database update daemon                  done
Starting Clam AntiVirus database update daemon                       done
Shutting down CRON daemon                                            done
Starting CRON daemon                                                 done
Stopping iredapd ...
Starting iredapd ...
Loading firewall rules                                               done

Now my question is how do i fix this.

greets Davano

----

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

2

Re: Cant login to httpS://example.com/mail/

Starting dovecot Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied

It's strange that there's a permission issue. File permission on my openSUSE-11.4 (x86_64) is:

# ls -dl /usr/lib/dovecot/managesieve
-rwxr-xr-x 1 root root 989496 Feb 23 08:02 /usr/lib/dovecot/managesieve

Can you show us which version of Dovecot you're running with below command?

# rpm -qa | grep -i dovecot

3 (edited by Davano 2011-05-10 22:50:38)

Re: Cant login to httpS://example.com/mail/

Thx for the reply.

File permissions i have.

ls -dl /usr/lib/dovecot/managesieve
-rwxr-xr-x 1 root root 1007416 Feb 22 19:04 /usr/lib/dovecot/managesieve

Here is my Dovecot version.

dovecot12-1.2.16-4.4.i586
dovecot12-backend-sqlite-1.2.16-4.4.i586
dovecot12-backend-pgsql-1.2.16-4.4.i586
dovecot12-backend-mysql-1.2.16-4.4.i586

When i look at the /var/log/mail.err i see

ay 10 09:12:30 erik roundcube: IMAP Error: Login failed for postmaster@erik.nl from 127.0.0.1. Could not connect to 127.0.0.1:143: Connection refused in /srv/www/roundcubemail-0.5.2/program/include/rcube_imap.php on line 192 (POST /mail/?_task=login&_action=login)
May 10 09:52:11 erik roundcube: IMAP Error: Login failed for postmaster@erik.nl from 127.0.0.1. Could not connect to 127.0.0.1:143: Connection refused in /srv/www/roundcubemail-0.5.2/program/include/rcube_imap.php on line 192 (POST /mail/?_task=login&_action=login)
May 10 09:57:23 erik roundcube: IMAP Error: Login failed for postmaster@erik.nl from 192.168.111.100. Could not connect to 127.0.0.1:143: Connection refused in /srv/www/roundcubemail-0.5.2/program/include/rcube_imap.php on line 192 (POST /mail/?_task=login&_action=login)

Greets Davano

4

Re: Cant login to httpS://example.com/mail/

Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

Could you please set "mail_debug = yes" in /etc/dovecot/dovecot.conf, then restart dovecot service, and monitor its log file /var/log/dovecot.log.
Paste related error log here.

5

Re: Cant login to httpS://example.com/mail/

Thx for the reply,

this is how it is in /etc/dovecot/dovecot.conf:

# Provided services.
protocols =  pop3 pop3s imap imaps managesieve

# Listen addresses. for Dovecot-1.1.x.
# ipv4: *
# ipv6: [::]
#listen = *, [::]
listen = *

# mail uid/gid.
mail_uid = 1001
mail_gid = 1000
first_valid_uid = 1001
last_valid_uid = 1001

#
# Debug options.
#
#mail_debug = yes
#auth_verbose = yes
#auth_debug = yes
#auth_debug_passwords = yes

#
# Log file.
#
#log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot.log

But the log file is empty.

Greets Davano

6

Re: Cant login to httpS://example.com/mail/

Davano wrote:

But the log file is empty.

Try to restart both syslog and dovecot services, then dovecot should log into /var/log/dovecot.log correctly.

7 (edited by Davano 2011-05-11 08:48:26)

Re: Cant login to httpS://example.com/mail/

Thx for the reply,

When i do that i have this output:

erik:~ # service syslog restart
Shutting down syslog services                                                      done
Starting syslog services                                                           done
erik:~ # service dovecot restart
Stopping dovecot                                                                   done
Starting dovecot Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied
Error: managesieve dump-capability process returned 84
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
startproc:  exit status of parent of /usr/sbin/dovecot: 89
                                                                                   failed
erik:~ # 

Don't no if needed but this is my /etc/dovecot/dovecot.conf

#
# File generated by iRedMail (2011.05.10.20.22.15):
#
# Version:  0.7.0
# Project:  [url]http://www.iredmail.org[/url]/
#
# Community: [url]http://www.iredmail.org/forum/[/url]
#

# Provided services.
protocols =  pop3 pop3s imap imaps managesieve

# Listen addresses. for Dovecot-1.1.x.
# ipv4: *
# ipv6: [::]
#listen = *, [::]
listen = *

# mail uid/gid.
mail_uid = 1001
mail_gid = 1000
first_valid_uid = 1001
last_valid_uid = 1001

#
# Debug options.
#
#mail_debug = yes
#auth_verbose = yes
#auth_debug = yes
#auth_debug_passwords = yes

#
# Log file.
#
#log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot.log

#login_processes_count = 3
#login_max_processes_count = 128
#login_max_connections = 256

# Maximum number of running mail processes. Default is 512.
# When this limit is reached, new users aren't allowed to log in.
#max_mail_processes = 512

# Set max process size in megabytes. Default is 256.
# Most of the memory goes to mmap()ing files, so it shouldn't harm
# much even if this limit is set pretty high.
#
# Note:
# Some user reported that if mailbox is too large (e.g. 80GB), dovecot
# will disconnect the client with error:
# "pool_system_malloc(100248): Out of memory".
mail_process_size = 1024

disable_plaintext_auth = no

# Performance Tuning. Reference:
#   [url]http://wiki.dovecot.org/LoginProcess[/url]
#
# High-Security mode. Dovecot default setting.
#
# It works by using a new imap-login or pop3-login process for each
# incoming connection. Since the processes run in a highly restricted
# chroot, running each connection in a separate process means that in
# case there is a security hole in Dovecot's pre-authentication code
# or in the SSL library, the attacker can't see other users'
# connections and can't really do anything destructive.
login_process_per_connection=yes

#
# High-Performance mode.
#
# It works by using a number of long running login processes,
# each handling a number of connections. This loses much of
# the security benefits of the login process design, because
# in case of a security hole the attacker is now able to see
# other users logging in and steal their passwords.
#login_process_per_connection = no

# Default realm/domain to use if none was specified.
# This is used for both SASL realms and appending '@domain.ltd' to username in plaintext logins.
auth_default_realm = erik.nl

# ---- NFS storage ----
# Set to 'no' For NFSv2. Default is 'yes'.
#dotlock_use_excl = yes

#mail_nfs_storage = yes # v1.1+ only

# If indexes are on NFS.
#mail_nfs_index = yes # v1.1+ only
# ----

plugin {
    # Quota warning.
    #
    # You can find sample script from Dovecot wiki:
    # [url]http://wiki.dovecot.org/Quota/1.1#head-03d8c4f6fb28e2e2f1cb63ec623810b45bec1734[/url]
    #
    # If user suddenly receives a huge mail and the quota jumps from
    # 85% to 95%, only the 95% script is executed.
    #
    quota_warning = storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
    quota_warning2 = storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
    quota_warning3 = storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
}

# SSL support.
ssl = yes
verbose_ssl = no
ssl_key_file = /etc/ssl/private/iRedMail.key
ssl_cert_file = /etc/ssl/certs/iRedMail_CA.pem
ssl_ca_file = /etc/ssl/certs/iRedMail_CA.pem
# Maildir format and location.
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/

plugin {
    # Quota, stored in file 'maildirsize' under user mailbox.
    # Dict quota. Used to store realtime quota in SQL.
    quota = dict:user::proxy::quotadict
    # Quota rules. Reference: [url]http://wiki.dovecot.org/Quota/1.1[/url]
    # The following limit names are supported:
    #   - storage: Quota limit in kilobytes, 0 means unlimited.
    #   - bytes: Quota limit in bytes, 0 means unlimited.
    #   - messages: Quota limit in number of messages, 0 means unlimited. This probably isn't very useful.
    #   - backend: Quota backend-specific limit configuration.
    #   - ignore: Don't include the specified mailbox in quota at all (v1.1.rc5+).
    quota_rule = *:storage=0
    #quota_rule2 = *:messages=0
    #quota_rule3 = Trash:storage=1G
    #quota_rule4 = Junk:ignore
}

dict {
    # NOTE: dict process currently runs as root, so this file will be owned as root.
    expire = db:/var/lib/dovecot/expire/expire.db
}

plugin {
    # ---- Expire plugin ----
    # Expire plugin. Mails are expunged from mailboxes after being there the
    # configurable time. The first expiration date for each mailbox is stored in
    # a dictionary so it can be quickly determined which mailboxes contain
    # expired mails. The actual expunging is done in a nightly cronjob, which
    # you must set up:
    #
    #   1   3   *   *   *   /usr/sbin/dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
    #
    # Trash: 7 days
    # Trash's children directories: 7 days
    # Junk: 30 days
    expire = Trash 7 Trash/* 7 Junk 30
    expire_dict = proxy::expire

    # If you have a non-default path to auth-master, set also:
    auth_socket_path = /var/run/dovecot/auth-master
}

# Per-user sieve mail filter.
plugin {
    # For maildir format.
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}
# LDA: Local Deliver Agent
protocol lda {
    postmaster_address = root
    auth_socket_path = /var/run/dovecot/auth-master
    mail_plugins = quota sieve autocreate
    sieve_global_path = /var/vmail/sieve/dovecot.sieve
    log_path = /var/log/sieve.log
}

# IMAP configuration
protocol imap {
    mail_plugins = quota imap_quota autocreate

    imap_client_workarounds = tb-extra-mailbox-sep

    # number of connections per-user per-IP
    #mail_max_userip_connections = 10
}

# POP3 configuration
protocol pop3 {
    mail_plugins = quota
    pop3_uidl_format = %08Xu%08Xv
    pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

    # number of connections per-user per-IP
    #mail_max_userip_connections = 10
}

auth default {
    mechanisms = plain login
    user = vmail
    passdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
    userdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
    socket listen {
        master {
            path = /var/run/dovecot/auth-master
            mode = 0666
            user = vmail
            group = vmail
        }
        client {
            path = /var/spool/postfix/dovecot-auth
            mode = 0666
            user = postfix
            group = postfix
        }
    }
}
plugin {
    autocreate = INBOX
    autocreate2 = Sent
    autocreate3 = Trash
    autocreate4 = Drafts
    autocreate5 = Junk

    autosubscribe = INBOX
    autosubscribe2 = Sent
    autosubscribe3 = Trash
    autosubscribe4 = Drafts
    autosubscribe5 = Junk
}
dict {
    # Dict quota. Used to store realtime quota in SQL.
    quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
namespace private {
    separator = /
    prefix =
    #location defaults to mail_location.
    inbox = yes
}

namespace shared {
    separator = /
    prefix = Shared/%%u/
    location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = yes
    list = children
}

plugin {
    acl = vfile
    acl_shared_dict = proxy::acl
}
dict {
    acl = mysql:/etc/dovecot/dovecot-share-folder.conf
}
# ManageSieve service. [url]http://wiki.dovecot.org/ManageSieve[/url]
protocol managesieve {
    # IP or host address where to listen in for connections.
    listen = 127.0.0.1:2000

    # Login executable location.
    #login_executable = /usr/local/libexec/dovecot/managesieve-login

    # ManageSieve executable location. See IMAP's mail_executable above for
    # examples how this could be changed.
    #mail_executable = /usr/local/libexec/dovecot/managesieve

    # Maximum ManageSieve command line length in bytes. This setting is
    # directly borrowed from IMAP. But, since long command lines are very
    # unlikely with ManageSieve, changing this will not be very useful.
    #managesieve_max_line_length = 65536

    # ManageSieve logout format string:
    #  %i - total number of bytes read from client
    #  %o - total number of bytes sent to client
    #managesieve_logout_format = bytes=%i/%o

    # If, for some inobvious reason, the sieve_storage remains unset, the
    # ManageSieve daemon uses the specification of the mail_location to find out
    # where to store the sieve files (see explaination in README.managesieve).
    # The example below, when uncommented, overrides any global mail_location
    # specification and stores all the scripts in '~/mail/sieve' if sieve_storage
    # is unset. However, you should always use the sieve_storage setting.
    # mail_location = mbox:~/mail

    # To fool ManageSieve clients that are focused on timesieved you can
    # specify the IMPLEMENTATION capability that the dovecot reports to clients
    # (default: "dovecot").
    #managesieve_implementation_string = dovecot
}

# sieve plugin. [url]http://wiki.dovecot.org/LDA/Sieve[/url]
plugin {
    # If the user has no personal active script (i.e. if the file 
    # indicated in sieve= does not exist), use this one:
    #sieve_global_path = /var/vmail/sieve/dovecot.sieve

    # The include extension fetches the :global scripts from this 
    # directory.
    #sieve_global_dir = 

    # Path to a script file or a directory containing script files
    # that need to be executed before the user's script. If the path
    # points to a directory, all the Sieve scripts contained therein
    # (with the proper .sieve extension) are executed. The order of
    # execution is determined by the file names, using a normal 8bit
    # per-character comparison.
    #sieve_before = /var/vmail/sieve/dovecot.sieve

    # Identical to sieve_before, only the specified scripts are
    # executed after the user's script (only when keep is still in
    # effect!).
    #sieve_after = /var/vmail/sieve/dovecot.sieve

    # Location of the active script. When ManageSieve is used this is actually
    # a symlink pointing to the active script in the sieve storage directory.
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve

    # The path to the directory where the personal Sieve scripts are stored. For
    # ManageSieve this is where the uploaded scripts are stored.
    sieve_dir = /var/vmail/sieve/%Ld/%Ln/
}

Greets Davano

8

Re: Cant login to httpS://example.com/mail/

As i mentioned before, could you please set "mail_debug = yes" in /etc/dovecot/dovecot.conf, then restart dovecot service, and monitor its log file /var/log/dovecot.log. Paste related error log here.

9

Re: Cant login to httpS://example.com/mail/

I am having the exact same issue.

squeeze/sid

10

Re: Cant login to httpS://example.com/mail/

if I try to restart dovecot I can't.

11 (edited by Davano 2011-05-11 22:44:04)

Re: Cant login to httpS://example.com/mail/

Thx for the reply.

It is set to yes right.
If not what line do i need to change.
This is my /etc/dovecot/dovecot.conf:

#
# File generated by iRedMail (2011.05.11.09.53.14):
#
# Version:  0.7.0
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#

# Provided services.
protocols =  pop3 pop3s imap imaps managesieve

# Listen addresses. for Dovecot-1.1.x.
# ipv4: *
# ipv6: [::]
#listen = *, [::]
listen = *

# mail uid/gid.
mail_uid = 1001
mail_gid = 1000
first_valid_uid = 1001
last_valid_uid = 1001

#Debug options.

mail_debug = yes
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes


#Log file.

log_timestamp = "%Y-%m-%d %H:%M:%S "
log_path = /var/log/dovecot.log

login_processes_count = 3
login_max_processes_count = 128
login_max_connections = 256

# Maximum number of running mail processes. Default is 512.
# When this limit is reached, new users aren't allowed to log in.
#max_mail_processes = 512

# Set max process size in megabytes. Default is 256.
# Most of the memory goes to mmap()ing files, so it shouldn't harm
# much even if this limit is set pretty high.
#
# Note:
# Some user reported that if mailbox is too large (e.g. 80GB), dovecot
# will disconnect the client with error:
# "pool_system_malloc(100248): Out of memory".
mail_process_size = 1024

disable_plaintext_auth = no

# Performance Tuning. Reference:
#   http://wiki.dovecot.org/LoginProcess
#
# High-Security mode. Dovecot default setting.
#
# It works by using a new imap-login or pop3-login process for each
# incoming connection. Since the processes run in a highly restricted
# chroot, running each connection in a separate process means that in
# case there is a security hole in Dovecot's pre-authentication code
# or in the SSL library, the attacker can't see other users'
# connections and can't really do anything destructive.
login_process_per_connection=yes

#
# High-Performance mode.
#
# It works by using a number of long running login processes,
# each handling a number of connections. This loses much of
# the security benefits of the login process design, because
# in case of a security hole the attacker is now able to see
# other users logging in and steal their passwords.
#login_process_per_connection = no

# Default realm/domain to use if none was specified.
# This is used for both SASL realms and appending '@domain.ltd' to username in plaintext logins.
auth_default_realm = erik.nl

# ---- NFS storage ----
# Set to 'no' For NFSv2. Default is 'yes'.
#dotlock_use_excl = yes

#mail_nfs_storage = yes # v1.1+ only

# If indexes are on NFS.
#mail_nfs_index = yes # v1.1+ only
# ----

plugin {
    # Quota warning.
    #
    # You can find sample script from Dovecot wiki:
    # http://wiki.dovecot.org/Quota/1.1#head-03d8c4f6fb28e2e2f1cb63ec623810b45bec1734
    #
    # If user suddenly receives a huge mail and the quota jumps from
    # 85% to 95%, only the 95% script is executed.
    #
    quota_warning = storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
    quota_warning2 = storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
    quota_warning3 = storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
}

# SSL support.
ssl = yes
verbose_ssl = no
ssl_key_file = /etc/ssl/private/iRedMail.key
ssl_cert_file = /etc/ssl/certs/iRedMail_CA.pem
ssl_ca_file = /etc/ssl/certs/iRedMail_CA.pem
# Maildir format and location.
mail_location = maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/

plugin {
    # Quota, stored in file 'maildirsize' under user mailbox.
    # Dict quota. Used to store realtime quota in SQL.
    quota = dict:user::proxy::quotadict
    # Quota rules. Reference: http://wiki.dovecot.org/Quota/1.1
    # The following limit names are supported:
    #   - storage: Quota limit in kilobytes, 0 means unlimited.
    #   - bytes: Quota limit in bytes, 0 means unlimited.
    #   - messages: Quota limit in number of messages, 0 means unlimited. This probably isn't very useful.
    #   - backend: Quota backend-specific limit configuration.
    #   - ignore: Don't include the specified mailbox in quota at all (v1.1.rc5+).
    quota_rule = *:storage=0
    #quota_rule2 = *:messages=0
    #quota_rule3 = Trash:storage=1G
    #quota_rule4 = Junk:ignore
}

dict {
    # NOTE: dict process currently runs as root, so this file will be owned as root.
    expire = db:/var/lib/dovecot/expire/expire.db
}

plugin {
    # ---- Expire plugin ----
    # Expire plugin. Mails are expunged from mailboxes after being there the
    # configurable time. The first expiration date for each mailbox is stored in
    # a dictionary so it can be quickly determined which mailboxes contain
    # expired mails. The actual expunging is done in a nightly cronjob, which
    # you must set up:
    #
    #   1   3   *   *   *   /usr/sbin/dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
    #
    # Trash: 7 days
    # Trash's children directories: 7 days
    # Junk: 30 days
    expire = Trash 7 Trash/* 7 Junk 30
    expire_dict = proxy::expire

    # If you have a non-default path to auth-master, set also:
    auth_socket_path = /var/run/dovecot/auth-master
}

# Per-user sieve mail filter.
plugin {
    # For maildir format.
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve
}
# LDA: Local Deliver Agent
protocol lda {
    postmaster_address = root
    auth_socket_path = /var/run/dovecot/auth-master
    mail_plugins = quota sieve autocreate
    sieve_global_path = /var/vmail/sieve/dovecot.sieve
    log_path = /var/log/sieve.log
}

# IMAP configuration
protocol imap {
    mail_plugins = quota imap_quota autocreate

    imap_client_workarounds = tb-extra-mailbox-sep

    # number of connections per-user per-IP
    #mail_max_userip_connections = 10
}

# POP3 configuration
protocol pop3 {
    mail_plugins = quota
    pop3_uidl_format = %08Xu%08Xv
    pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

    # number of connections per-user per-IP
    #mail_max_userip_connections = 10
}

auth default {
    mechanisms = plain login
    user = vmail
    passdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
    userdb ldap {
        args = /etc/dovecot/dovecot-ldap.conf
    }
    socket listen {
        master {
            path = /var/run/dovecot/auth-master
            mode = 0666
            user = vmail
            group = vmail
        }
        client {
            path = /var/spool/postfix/dovecot-auth
            mode = 0666
            user = postfix
            group = postfix
        }
    }
}
plugin {
    autocreate = INBOX
    autocreate2 = Sent
    autocreate3 = Trash
    autocreate4 = Drafts
    autocreate5 = Junk

    autosubscribe = INBOX
    autosubscribe2 = Sent
    autosubscribe3 = Trash
    autosubscribe4 = Drafts
    autosubscribe5 = Junk
}
dict {
    # Dict quota. Used to store realtime quota in SQL.
    quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
}
namespace private {
    separator = /
    prefix =
    #location defaults to mail_location.
    inbox = yes
}

namespace shared {
    separator = /
    prefix = Shared/%%u/
    location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = yes
    list = children
}

plugin {
    acl = vfile
    acl_shared_dict = proxy::acl
}
dict {
    acl = mysql:/etc/dovecot/dovecot-share-folder.conf
}
# ManageSieve service. http://wiki.dovecot.org/ManageSieve
protocol managesieve {
    # IP or host address where to listen in for connections.
    listen = 127.0.0.1:2000

    # Login executable location.
    #login_executable = /usr/local/libexec/dovecot/managesieve-login

    # ManageSieve executable location. See IMAP's mail_executable above for
    # examples how this could be changed.
    #mail_executable = /usr/local/libexec/dovecot/managesieve

    # Maximum ManageSieve command line length in bytes. This setting is
    # directly borrowed from IMAP. But, since long command lines are very
    # unlikely with ManageSieve, changing this will not be very useful.
    #managesieve_max_line_length = 65536

    # ManageSieve logout format string:
    #  %i - total number of bytes read from client
    #  %o - total number of bytes sent to client
    #managesieve_logout_format = bytes=%i/%o

    # If, for some inobvious reason, the sieve_storage remains unset, the
    # ManageSieve daemon uses the specification of the mail_location to find out
    # where to store the sieve files (see explaination in README.managesieve).
    # The example below, when uncommented, overrides any global mail_location
    # specification and stores all the scripts in '~/mail/sieve' if sieve_storage
    # is unset. However, you should always use the sieve_storage setting.
    # mail_location = mbox:~/mail

    # To fool ManageSieve clients that are focused on timesieved you can
    # specify the IMPLEMENTATION capability that the dovecot reports to clients
    # (default: "dovecot").
    #managesieve_implementation_string = dovecot
}

# sieve plugin. http://wiki.dovecot.org/LDA/Sieve
plugin {
    # If the user has no personal active script (i.e. if the file 
    # indicated in sieve= does not exist), use this one:
    #sieve_global_path = /var/vmail/sieve/dovecot.sieve

    # The include extension fetches the :global scripts from this 
    # directory.
    #sieve_global_dir = 

    # Path to a script file or a directory containing script files
    # that need to be executed before the user's script. If the path
    # points to a directory, all the Sieve scripts contained therein
    # (with the proper .sieve extension) are executed. The order of
    # execution is determined by the file names, using a normal 8bit
    # per-character comparison.
    #sieve_before = /var/vmail/sieve/dovecot.sieve

    # Identical to sieve_before, only the specified scripts are
    # executed after the user's script (only when keep is still in
    # effect!).
    #sieve_after = /var/vmail/sieve/dovecot.sieve

    # Location of the active script. When ManageSieve is used this is actually
    # a symlink pointing to the active script in the sieve storage directory.
    sieve = /var/vmail/sieve/%Ld/%Ln/dovecot.sieve

    # The path to the directory where the personal Sieve scripts are stored. For
    # ManageSieve this is where the uploaded scripts are stored.
    sieve_dir = /var/vmail/sieve/%Ld/%Ln/
}

When i restart Dovecot i have this massage:

erik:~ # service dovecot restart
Stopping dovecot                                                                       done
Starting dovecot ILoading modules from directory: /usr/lib/dovecot/modules/imap
IModule loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
IModule loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
IModule loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
IEffective uid=65534, gid=65533, home=/tmp
IQuota root: name=user backend=dict args=:proxy::quotadict
IQuota rule: root=user mailbox=* bytes=0 messages=0
IQuota warning: bytes=0 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
IQuota warning: bytes=0 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
IQuota warning: bytes=0 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied
Error: managesieve dump-capability process returned 84
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
startproc:  exit status of parent of /usr/sbin/dovecot: 89
                                                                                       failed

Greets Davano

12

Re: Cant login to httpS://example.com/mail/

after the permission Permission denied.
It is also saying i have a Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
But when i look at the file i cant find the Invalid configuration.
Can that be why i cant log in ?


Greets Davano

13

Re: Cant login to httpS://example.com/mail/

Davano wrote:

It is also saying i have a Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

Can you check its log files?
/var/log/dovecot.log and /var/log/sieve.log

14 (edited by Davano 2011-05-14 04:05:28)

Re: Cant login to httpS://example.com/mail/

Thx for the reply.

There is nothing in the logs   /var/log/dovecot.log and /var/log/sieve.log logs

think i have to play around with the permissions on the file /usr/lib/dovecot/managesieve

Greest Davano.

15 (edited by Davano 2011-05-14 04:37:06)

Re: Cant login to httpS://example.com/mail/

Ok i changed the file permissions to 777.
but even then it wont work.

erik:/usr/lib/dovecot # ls -dl /usr/lib/dovecot/managesieve
-rwxrwxrwx 1 dovecot dovecot 1007416 Feb 22 19:04 /usr/lib/dovecot/managesieve
erik:/usr/lib/dovecot # service dovecot restart
Stopping dovecot                                                                       done
Starting dovecot ILoading modules from directory: /usr/lib/dovecot/modules/imap
IModule loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
IModule loaded: /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
IModule loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so
IEffective uid=65534, gid=65533, home=/tmp
IQuota root: name=user backend=dict args=:proxy::quotadict
IQuota rule: root=user mailbox=* bytes=0 messages=0
IQuota warning: bytes=0 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
IQuota warning: bytes=0 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
IQuota warning: bytes=0 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Fatal: execv(/usr/lib/dovecot/managesieve) failed: Permission denied
Error: managesieve dump-capability process returned 84
Fatal: Invalid configuration in /etc/dovecot/dovecot.conf
startproc:  exit status of parent of /usr/sbin/dovecot: 89
                                                                                       failed

Greets Davano