1 (edited by zuotoski 2016-06-17 23:52:25)

Topic: [Solved] Shared folders not listing after Active Directory integration

PART 1/2:
==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Windows 2003 Active Directory
- Web server (Apache or Nginx): Apache/2.4.7 (Ubuntu)
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: as follows...
====

Hi!
   First of all, I am very pleased with iRedMail, it is a very powerful e-mail server. It is brilliant!
   Well, as we are trying to integrate every Linux applications with Windows Active Directory, I've followed this article to accomplish it with iRedMail: http://www.iredmail.org/docs/active.directory.html
 
   Everything went smooth and worked perfectly, except for the Sharing Folders, which was working with Linux LDAP before the integration. I tried to find a solution, tried to change some parameters but nothing seams to have any effect.

   Before posting my logs, I'd like to show what I've changed to try to make it work, and what are some informations provided here:

My domain:
mydomain.com.br
Users for this test:
user1@mydomain.com.br (the one who is sharing his INBOX)
user2@mydomain.com.br (the one who will see user1's INBOX)
Windows running the Active Directory:
Windows 2003 32 bit and Windows 2008 64 bit (but the bind happens on Windows 2003)
Where did I test it?:
On Sogo and Roundcube with Active Directory enabled, too.
Configuration change made to try to make it work:
File /etc/dovecot/dovecot.conf

FROM:

namespace {
    type = 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
}

TO:

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    #location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
    location = maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/:INDEX=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = no
    list = children
}

Now my configuration files:

/etc/dovecot/dovecto.conf:

# Listen addresses.
#   - '*' means all available IPv4 addresses.
#   - '[::]' means all available IPv6 addresses.
# Listen on all available addresses by default
listen = * [::]

#base_dir = /var/run/dovecot
mail_plugins = quota mailbox_alias acl

# Enabled mail protocols.
protocols = pop3 imap sieve lmtp

# User/group who owns the message files:
mail_uid = 2000
mail_gid = 2000

# Assign uid to virtual users.
first_valid_uid = 2000
last_valid_uid = 2000

# Logging. Reference: http://wiki2.dovecot.org/Logging
log_path = /var/log/dovecot.log

# Debug
mail_debug = yes
#auth_verbose = yes
#auth_debug = yes
#auth_debug_passwords = yes
# Possible values: no, plain, sha1.
#auth_verbose_passwords = no

# SSL: Global settings.
# Refer to wiki site for per protocol, ip, server name SSL settings:
# http://wiki2.dovecot.org/SSL/DovecotConfiguration
ssl_protocols = !SSLv2 !SSLv3
ssl = required
verbose_ssl = no
#ssl_ca = </path/to/ca
ssl_cert = </etc/ssl/certs/iRedMail.crt
ssl_key = </etc/ssl/private/iRedMail.key

# Fix 'The Logjam Attack'
ssl_cipher_list = ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
# Dovecot 2.2.6 or greater:
# Specify the wanted DH parameters length
ssl_dh_parameters_length = 2048
ssl_prefer_server_ciphers = yes

# IP ranges specified by login_trusted_networks setting are assumed to be secure.
#login_trusted_networks = 127.0.0.1

# With disable_plaintext_auth=yes AND ssl=required, STARTTLS is mandatory.
# Set disable_plaintext_auth=no AND ssl=yes to allow plain password transmitted
# insecurely.
disable_plaintext_auth = yes
# Allow plain text password per IP address/net
#remote 192.168.0.0/24 {
#   disable_plaintext_auth = no
#}

# Mail location and mailbox format.
mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/

# Authentication related settings.
# Append this domain name if client gives empty realm.
auth_default_realm = mydomain.com.br

# Authentication mechanisms.
auth_mechanisms = PLAIN LOGIN

# Limits the number of users that can be logging in at the same time.
# Default is 100. This can be overridden by `process_limit =` in
# `service [protocol]` block.
# e.g.
#       protocol imap-login {
#           ...
#           process_limit = 500
#       }
#default_process_limit = 100

service auth {
    unix_listener /var/spool/postfix/private/dovecot-auth {
        user = postfix
        group = postfix
        mode = 0666
    }
    unix_listener auth-master {
        user = vmail
        group = vmail
        mode = 0666
    }
    unix_listener auth-userdb {
        user = vmail
        group = vmail
        mode = 0660
    }
}

# LMTP server (Local Mail Transfer Protocol).
# Reference: http://wiki2.dovecot.org/LMTP
service lmtp {
    user = vmail

    # For higher volume sites, it may be desirable to increase the number of
    # active listener processes. A range of 5 to 20 is probably good for most
    # sites.
    process_min_avail = 5

    # Logging.
    # Require 'info_log_path =' in 'protocol lmtp {}' block.
    executable = lmtp -L

    # Listening on socket file and TCP
    unix_listener /var/spool/postfix/private/dovecot-lmtp {
        user = postfix
        group = postfix
        mode = 0600
    }

    inet_listener lmtp {
        # Listen on localhost (ipv4)
        address = 127.0.0.1
        port = 24
    }
}

# Virtual mail accounts.
userdb {
    args = /etc/dovecot/dovecot-ldap.conf
    driver = ldap
}
passdb {
    args = /etc/dovecot/dovecot-ldap.conf
    driver = ldap
}

# Master user.
# Master users are able to log in as other users. It's also possible to
# directly log in as any user using a master password, although this isn't
# recommended.
# Reference: http://wiki2.dovecot.org/Authentication/MasterUsers
auth_master_user_separator = *
passdb {
    driver = passwd-file
    args = /etc/dovecot/dovecot-master-users
    master = yes
}

plugin {
    auth_socket_path = /var/run/dovecot/auth-master

    # Quota configuration.
    # Reference: http://wiki2.dovecot.org/Quota/Configuration
    quota = dict:user::proxy::quotadict
    quota_rule = *:storage=1G
    #quota_rule2 = *:messages=0
    #quota_rule3 = Trash:storage=1G
    #quota_rule4 = Junk:ignore

    # Quota warning.
    #
    # If user suddenly receives a huge mail and the quota jumps from
    # 85% to 95%, only the 95% script is executed.
    #
    # Only the command for the first exceeded limit is executed, so configure
    # the highest limit first.
    quota_warning = storage=100%% quota-warning 100 %u
    quota_warning2 = storage=95%% quota-warning 95 %u
    quota_warning3 = storage=90%% quota-warning 90 %u
    quota_warning4 = storage=85%% quota-warning 85 %u

    # allow user to become max 10% (or 50 MB) over quota
    quota_grace = 10%%
    #quota_grace = 50 M

    # Custom Quota Exceeded Message.
    # You can specify the message directly or read the message from a file.
    #quota_exceeded_message = Quota exceeded, please try again later.
    #quota_exceeded_message = </path/to/quota_exceeded_message.txt

    # Plugin: expire.
    #expire = Trash 7 Trash/* 7 Junk 30
    #expire_dict = proxy::expire

    # ACL and share folder
    acl = vfile
    acl_shared_dict = proxy::acl

    # By default Dovecot doesn't allow using the IMAP "anyone" or
    # "authenticated" identifier, because it would be an easy way to spam
    # other users in the system. If you wish to allow it,
    #acl_anyone = allow

    # Pigeonhole managesieve service.
    # Reference: http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
    # Per-user sieve settings.
    sieve_dir = %Lh/sieve
    sieve = %Lh/sieve/dovecot.sieve

    # Global sieve settings.
    sieve_global_dir = /var/vmail/sieve
    # Note: if user has personal sieve script, global sieve rules defined in
    #       sieve_default will be ignored. Please use sieve_before or
    #       sieve_after instead.
    #sieve_default =

    sieve_before = /var/vmail/sieve/dovecot.sieve
    #sieve_after =

    # The maximum number of redirect actions that can be performed during a
    # single script execution.
    # The meaning of 0 differs based on your version. For pigeonhole-0.3.0 and
    # beyond this means that redirect is prohibited. For older versions,
    # however, this means that the number of redirects is unlimited.
    #sieve_max_redirects = 4

    # Reference: http://wiki2.dovecot.org/Plugins/MailboxAlias
    mailbox_alias_old = Sent
    mailbox_alias_new = Sent Messages
    mailbox_alias_old2 = Sent
    mailbox_alias_new2 = Sent Items
}

service quota-warning {
    executable = script /usr/local/bin/dovecot-quota-warning.sh
    unix_listener quota-warning {
        user = vmail
        group = vmail
        mode = 0660
    }
}

service dict {
    unix_listener dict {
        mode = 0660
        user = vmail
        group = vmail
    }
}

dict {
    #expire = db:/var/lib/dovecot/expire/expire.db
    quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
    acl = mysql:/etc/dovecot/dovecot-share-folder.conf
}

protocol lda {
    # Reference: http://wiki2.dovecot.org/LDA
    mail_plugins = $mail_plugins sieve
    auth_socket_path = /var/run/dovecot/auth-master
    log_path = /var/log/dovecot-sieve.log
    lda_mailbox_autocreate = yes
    lda_mailbox_autosubscribe = yes
    postmaster_address = root
}

protocol lmtp {
    # Log file
    info_log_path = /var/log/dovecot-lmtp.log

    # Plugins
    mail_plugins = quota sieve
    postmaster_address = postmaster

    lmtp_save_to_detail_mailbox = yes
    recipient_delimiter = +
}

protocol imap {
    mail_plugins = $mail_plugins imap_quota imap_acl
    imap_client_workarounds = tb-extra-mailbox-sep

    # Maximum number of IMAP connections allowed for a user from each IP address.
    # NOTE: The username is compared case-sensitively.
    # Default is 10.
    # Increase it to avoid issue like below:
    # "Maximum number of concurrent IMAP connections exceeded"
    mail_max_userip_connections = 30
}

protocol pop3 {
    mail_plugins = $mail_plugins
    pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
    pop3_uidl_format = %08Xu%08Xv

    # Maximum number of IMAP connections allowed for a user from each IP address.
    # NOTE: The username is compared case-sensitively.
    # Default is 10.
    mail_max_userip_connections = 30
}

# Login processes. Refer to Dovecot wiki for more details:
# http://wiki2.dovecot.org/LoginProcess
service imap-login {
    #inet_listener imap {
    #    port = 143
    #}
    #inet_listener imaps {
    #    port = 993
    #    ssl = yes
    #}
    #
    # Require Dovecot-2.2.19+
    #inet_listener imap_haproxy {
    #    port = 10143
    #    haproxy = yes
    #}

    service_count = 1

    # To avoid startup latency for new client connections, set process_min_avail
    # to higher than zero. That many idling processes are always kept around
    # waiting for new connections.
    #process_min_avail = 0

    # number of simultaneous IMAP connections
    process_limit = 500

    # vsz_limit should be fine at its default 64MB value
    #vsz_limit = 64M
}

service pop3-login {
    #inet_listener pop3 {
    #    port = 110
    #}
    #inet_listener pop3s {
    #    port = 995
    #    ssl = yes
    #}
    #
    # Require Dovecot-2.2.19+
    #inet_listener pop3_haproxy {
    #    port = 10110
    #    haproxy = yes
    #}

    service_count = 1

    # number of simultaneous POP3 connections
    #process_limit = 500
}

service managesieve-login {
    inet_listener sieve {
        # Listen on localhost (ipv4)
        address = 127.0.0.1
        port = 4190
    }
}

namespace {
    type = private
    separator = /
    prefix =
    #location defaults to mail_location.
    inbox = yes

    # Refer to document for more details about alias mailbox:
    # http://wiki2.dovecot.org/MailboxSettings
    #
    # Sent
    mailbox Sent {
        auto = subscribe
        special_use = \Sent
    }
    mailbox "Sent Messages" {
        auto = no
        special_use = \Sent
    }
    mailbox "Sent Items" {
        auto = no
        special_use = \Sent
    }

    mailbox Drafts {
        auto = subscribe
        special_use = \Drafts
    }

    # Trash
    mailbox Trash {
        auto = subscribe
        special_use = \Trash
    }

    mailbox "Deleted Messages" {
        auto = no
        special_use = \Trash
    }

    # Junk
    mailbox Junk {
        auto = subscribe
        special_use = \Junk
    }
    mailbox Spam {
        auto = no
        special_use = \Junk
    }
    mailbox "Junk E-mail" {
        auto = no
        special_use = \Junk
    }

    # Archive
    mailbox Archive {
        auto = no
        special_use = \Archive
    }
    mailbox Archives {
        auto = no
        special_use = \Archive
    }
}

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    #location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u
    location = maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/:INDEX=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = no
    list = children
}

# Public mailboxes.
# Refer to Dovecot wiki page for more details:
# http://wiki2.dovecot.org/SharedMailboxes/Public
#namespace {
#    type = public
#    separator = /
#    prefix = Public/
#
#    # CONTROL=: Mark this public folder as read-only mailbox
#    # INDEX=: Per-user \Seen flag
#    location = maildir:/var/vmail/public/:CONTROL=~/Maildir/public:INDEX=~/Maildir/public
#
#    # Allow users to subscribe to the public folders.
#    subscriptions = yes
#}

continue...

----

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

2

Re: [Solved] Shared folders not listing after Active Directory integration

PART 2/2
/etc/sogo/sogo.conf:

{
    //
    //  - Official SOGo document: http://sogo.nu/support/index.html#/documentation
    //  - Mailing list: http://sogo.nu/support/index.html#/community
    //

    // Daemon address and port
    WOPort = 127.0.0.1:20000;

    // PID file
    //WOPidFile = /var/run/sogo/sogo.pid;

    // Log file
    //WOLogFile = /var/log/sogo/sogo.log;

    // Enable verbose logging. Reference:
    // http://www.sogo.nu/nc/support/faq/article/how-to-enable-more-verbose-logging-in-sogo.html
    //SOGoDebugRequests = YES;
    //SOGoEASDebugEnabled = YES;
    //ImapDebugEnabled = YES;
    //LDAPDebugEnabled = YES;
    //MySQL4DebugEnabled = YES;
    //PGDebugEnabled = YES;

    // set the maximum allowed size for content being sent to SOGo, this can
    // also limit the file attachment size being uploaded to SOGo when
    // composing a mail. Default is 0 or disabled (unlimit).
    // The value is in kilobyte.
    //WOMaxUploadSize = 0;

    // Define the URL to online help for SOGo. When set, an additional icon
    // will appear near the logout button in SOGo's web interface. The URL
    // will always be open in a blank target.
    //SOGoHelpURL = '';

    // Performance Tuning
    //
    // The amount of instances of SOGo that will be spawned to handle multiple
    // requests simultaneously. When started from the init script, that amount
    // is overriden by the `PREFORK=` setting in /etc/sysconfig/sogo or
    // /etc/default/sogo. A value of 3 is a reasonable default for low usage.
    // The maximum value depends on the CPU and IO power provided by your
    // machine: a value set too high will actually decrease performances under
    // high load.
    //
    // You should have at least one child per EAS device configured to use
    // "push". You must also have more children than you have EAS devices
    // configured to use "push" - in order to handle normal SOGo requests to
    // its Web or DAV interfaces.
    //
    // Defaults to 1 when unset, increase it if you see below error message in
    // sogo log file: 'No child available to handle incoming request'
    //
    // WARNING:
    //      - on RHEL/CentOS, this setting is controlled by parameter
    //        'PREFORK=' defined in /etc/default/sogo.
    //      - on Debian/Ubuntu, this setting is controlled by parameter
    //        'PREFORK=' defined in /etc/default/sogo.
    WOWorkersCount = 10;

    // Parameter used to set the maximum amount of time, in seconds, SOGo will
    // wait before replying to a Ping command.
    // If not set, it defaults to 10 seconds.
    SOGoMaximumPingInterval = 3540;

    // Parameter used to set the maximum amount of time, in seconds, SOGo will
    // wait before replying to a Sync command.
    // If not set, it defaults to 30 seconds.
    SOGoMaximumSyncInterval = 3540;

    // Parameter used to set the maximum amount of time, in seconds, SOGo will
    // wait before doing an internal check for data changes (add, delete, and
    // update). This parameter must be lower than SOGoMaximumSyncInterval and
    // SOGoMaximumPingInterval.
    // If not set, it defaults to 10 seconds.
    SOGoInternalSyncInterval = 30;

    // Specifies the number of minutes after which a busy child process will be
    // killed by the parent process.
    // Defaults to 10 (minutes).
    WOWatchDogRequestTimeout = 60;

    // Overwrite the maximum number of items returned during a Sync operation.
    // Defaults to 0, which means no overwrite is performed.
    // Setting this parameter to a value greater than 512 will have unexpected
    // behaviour with various ActiveSync clients.
    SOGoMaximumSyncWindowSize = 100;

    // Overwrite the maximum response size during a Sync operation.
    // The value is in kilobytes. Setting this to 512 means the response size
    // will be of 524288 bytes or less (or a bit greater if needed for syncing
    // one item). Note that if you set the value too low and a mail message
    // (or any other object like calendar events, tasks and contacts) surpasses
    // it, it will still be synced but only this item will be.
    // Defaults to 0, which means no overwrite is performed.
    //
    // Say you have these five mails and you set the limit to 512KB:
    //  1.  250 KB
    //  2.  250 KB
    //  3.   25 KB
    //  4.  750 KB
    //  5.   10 KB
    // Sync iteration no. 1 will pick message 1, 2 and 3.
    // Sync iteration no. 2 will pick message 4.
    // Sync iteration no. 3 will pick message 5.
    SOGoMaximumSyncResponseSize = 2048;

    // The maximum amount of memory (in megabytes) that a child can use.
    // Reaching that value will force children processes to restart, in order
    // to preserve system memory.
    //
    // Error message when it reaches the value:
    // "terminating app, vMem size limit (xxx MB) has been reached (currently xxx MB)"
    //
    // Defaults to 384.
    //SxVMemLimit = 1024;

    // IMAP connection pool.
    // Your performance will slightly increase, as you won't open a new
    // connection for every access to your IMAP server.
    // But you will get a lot of simultaneous open connections to your IMAP
    // server, so make sure he can handle them.
    // For debugging it is reasonable to turn pooling off.
    //NGImap4DisableIMAP4Pooling = NO;

    SOGoProfileURL = "mysql://sogo:fLjV3CnLaiNLKPXRFJ9owi6qAEMfUC@127.0.0.1:3306/sogo/sogo_user_profile";
    OCSFolderInfoURL = "mysql://sogo:fLjV3CnLaiNLKPXRFJ9owi6qAEMfUC@127.0.0.1:3306/sogo/sogo_folder_info";
    OCSSessionsFolderURL = "mysql://sogo:fLjV3CnLaiNLKPXRFJ9owi6qAEMfUC@127.0.0.1:3306/sogo/sogo_sessions_folder";
    OCSEMailAlarmsFolderURL = "mysql://sogo:fLjV3CnLaiNLKPXRFJ9owi6qAEMfUC@127.0.0.1:3306/sogo/sogo_alarms_folder";

    // Default language in the web interface
    SOGoLanguage = English;

    // Specify which module to show after login: Calendar, Mail, Contacts.
    SOGoLoginModule = Mail;

    // Must login with full email address
    SOGoForceExternalLoginWithEmail = YES;

    // Allow user to change full name and email address.
    SOGoMailCustomFromEnabled = YES;

    // Enable email-based alarms on events and tasks.
    SOGoEnableEMailAlarms = YES;

    // IMAP server
    //SOGoIMAPServer = "imaps://127.0.0.1:143/?tls=YES";
    // Local connection is considered as secure by Dovecot.
    SOGoIMAPServer = "imap://127.0.0.1:143/";

    // Allow user to add other IMAP accounts that will be visible from the SOGo
    // Webmail interface.
    // Default is NO.
    //SOGoMailAuxiliaryUserAccountsEnabled = YES;

    // SMTP server
    SOGoSMTPServer = 127.0.0.1;
    SOGoMailingMechanism = smtp;
    //SOGoSMTPAuthenticationType = PLAIN;

    // Enable managesieve service
    //
    // WARNING: Sieve scripts generated by SOGo is not compatible with Roundcube
    //          webmail, don't use sieve service in both webmails, otherwise
    //          it will be messy.
    //
    //SOGoSieveServer = sieve://127.0.0.1:4190;
    //SOGoSieveScriptsEnabled = YES;
    //SOGoVacationEnabled = YES;
    //SOGoForwardEnabled = YES;
    SOGoSieveFolderEncoding = UTF-8;

    // Memcached
    SOGoMemcachedHost = 127.0.0.1;

    // Parameter used to set which usernames require administrative privileges
    // over all the users tables. For example, this could be used to post
    // events in the users calendar without requiring the user to configure
    // his/her ACLs. In this case you will need to specify those superuser's
    // usernames like this :
    // SOGoSuperUsernames = (<username1>[,<username2>, ...]);
    //SOGoSuperUsernames = ();

    SOGoTimeZone = "America/Sao_Paulo";

    SOGoFirstDayOfWeek = 1;

    SOGoRefreshViewCheck = every_5_minutes;
    SOGoMailReplyPlacement = below;

    SOGoAppointmentSendEMailNotifications = YES;
    SOGoFoldersSendEMailNotifications = YES;
    SOGoACLsSendEMailNotifications = YES;

    // NOTE: PostgreSQL cannot update view in iRedMail
    //SOGoPasswordChangeEnabled = YES;
    //SOGoExternalAvatarsEnabled = YES;
    SOGoSearchMinimumWordLength = 1;
    // Authentication using SQL
    /* SQL backend
    SOGoUserSources = (
        {
            type = sql;
            id = users;
            viewURL = "mysql://sogo:FCEqYNGBPniSFkRntMx8mIpI6UKapl@127.0.0.1:3306/sogo/users";
            canAuthenticate = YES;

            // The algorithm used for password encryption when changing
            // passwords without Password Policies enabled.
            // Possible values are: plain, crypt, md5-crypt, ssha, ssha512.
            userPasswordAlgorithm = ssha;
            prependPasswordScheme = YES;

            // Use `vmail.mailbox` as per-domain address book.
            isAddressBook = YES;
            displayName = "Domain Address Book";
            SOGoEnableDomainBasedUID = YES;
            DomainFieldName = "domain";
        },

        //{
        //    displayName = "Global Address Book";
        //    type = sql;
        //    id = global_address_book;
        //    viewURL = "mysql://sogo:HCEqYNGBPniSFkRntMx8mIpI6UKapl@127.0.0.1:3306/sogo/users";
        //    canAuthenticate = NO;
        //    isAddressBook = YES;
        //}
    );
    SQL backend */

    // Authentication using LDAP
    
    SOGoUserSources = (
        {
            type = ldap;
            hostname = "ldap://windows2003.mydomain.com.br";
            baseDN = "CN=users,DC=mydomain,DC=com,DC=br";
            //bindAsCurrentUser = YES;
            bindDN = "win2003user@mydomin.com.br";
            bindPassword = "win2003user_password";
            //filter = "((memberOf='CN=group_containg_only_users,CN=Users,DC=mydomain,DC=com,DC=br' AND NOT useraccountcontrol:1.2.840.113556.1.4.803:='2') OR (memberOf='CN=group_containing_only_groups,CN=Users,DC=mydomain,DC=com,DC=br'))";
            filter = "mail='*'";
            scope = SUB;

            // The algorithm used for password encryption when changing
            // passwords without Password Policies enabled.
            // Possible values are: plain, crypt, md5-crypt, ssha, ssha512.
            userPasswordAlgorithm = plain;

            IDFieldName = cn;
            bindFields = (sAMAccountName);
            CNFieldName = cn;
            // value of UID field must be unique on whole server.
            UIDFieldName = sAMAccountName;
            IMAPLoginFieldName = mail;
            SearchFieldNames = (cn, sn, displayName, mail, otherMailAddress, name);
            canAuthenticate = YES;
            displayName = "Catálogo Global";
            id = directory;
            isAddressBook = YES;
        }
    );
}

/opt/www/roundcubemail-1.2.0/config:

<?php
// MINHAS CONFIGURAÇÕES ADICIONAIS, ATÉ SQL DATABASE
// NO FIBAL TAMBÉM TEM A PARTIR DE ADDRESS BOOK
$config['x_frame_options'] = false;
$config['language'] = 'pt_BR';
$config['username_domain'] = 'mydomain.com.br';
$config['product_name'] = 'Webmail CSM Calderaria';
$config['skin_logo'] = 'http://www1.mydomain.com.br/public/logo_webmail_192x49.png';
$config['support_url'] = 'https://helpdesk.mydomain.com.br/';
// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
// 4 - one identity with possibility to edit only signature
$config['identities_level'] = 4;

// SQL DATABASE
$config['db_dsnw'] = 'mysqli://roundcube:FnT7IUDmEMnA668pudwbrYwkZf3Jxd@127.0.0.1/roundcubemail';

// LOGGING
$config['log_driver'] = 'syslog';
$config['syslog_facility'] = LOG_MAIL;

// IMAP
$config['default_host'] = '127.0.0.1';
$config['default_port'] = 143;
$config['imap_auth_type'] = 'LOGIN';
$config['imap_delimiter'] = '/';
// Required if you're running PHP 5.6
$config['imap_conn_options'] = array(
    'ssl' => array(
        'verify_peer'  => false,
        'verify_peer_name' => false,
    ),
);

// SMTP
$config['smtp_server'] = 'tls://127.0.0.1';
$config['smtp_port'] = 587;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['smtp_auth_type'] = 'LOGIN';
// Required if you're running PHP 5.6
$config['smtp_conn_options'] = array(
    'ssl' => array(
        'verify_peer'      => false,
        'verify_peer_name' => false,
    ),
);

// Use user's identity as envelope sender for 'return receipt' responses,
// otherwise it will be rejected by iRedAPD plugin `reject_null_sender`.
$config['mdn_use_from'] = true;

// SYSTEM
$config['force_https'] = true;
$config['login_autocomplete'] = 2;
$config['ip_check'] = true;
$config['des_key'] = 'PhbE3QqsbqulVzSnb4IDeC9o';
$config['useragent'] = 'Roundcube Webmail'; // Hide version number
//$config['username_domain'] = 'mydomain.com.br';
$config['mime_types'] = '/etc/mime.types';

// USER INTERFACE
$config['create_default_folders'] = true;
$config['quota_zero_as_unlimited'] = true;

// USER PREFERENCES
$config['default_charset'] = 'UTF-8';
//$config['addressbook_sort_col'] = 'name';
$config['draft_autosave'] = 60;
$config['preview_pane'] = true;
$config['default_list_mode'] = 'threads';
$config['autoexpand_threads'] = 2;
$config['check_all_folders'] = true;
$config['default_font_size'] = '12pt';
$config['message_show_email'] = true;

// PLUGINS
$config['plugins'] = array('managesieve', 'password', 'acl');

// ----------------------------------
// ADDRESSBOOK SETTINGS
// ----------------------------------

// This indicates which type of address book to use. Possible choises:
// 'sql' (default), 'ldap' and ''.
// If set to 'ldap' then it will look at using the first writable LDAP
// address book as the primary address book and it will not display the
// SQL address book in the 'Address Book' view.
// If set to '' then no address book will be displayed or only the
// addressbook which is created by a plugin (like CardDAV).
$rcmail_config['address_book_type'] = 'sql';

// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
// Array key must contain only safe characters, ie. a-zA-Z0-9_
//$rcmail_config['ldap_public'] = array();

$rcmail_config['ldap_public'] = array(
    'Publico' =>array (
        'name' => 'Catálogo Global',
        'hosts' => array('mydomain.com.br'),
        'sizelimit' => 6000,
        'port' => 389, //Caso queira liberar edição do AD, pode ser necessário usar a porta 3268, além de outros parâmetros
        'use_tls' => false,
        'user_specific' => false,
        'base_dn' => 'CN=Users,DC=mydomain,DC=com,DC=br',
        'bind_dn' => 'win2003user@mydomain.com.br',
        'bind_pass' => 'win2003user_password',
        'writable' => false,
        'ldap_version' => 3,
        'search_fields' => array(
       'othermailbox',
           'userPrincipalName',
           'mail',
           'cn',
           'givenname',
        ),
        'photo_field'        => 'thumbnailPhoto',
        'name_field'         => 'cn',
        'surname_field'      => 'sn',
        'firstname_field'    => 'givenName',
    'nickname_field'     => 'displayName',
    'organization_field' => 'company',
    'department_field'   => 'department',
    'jobtitle_field'     => 'title',
        'email_field'        => 'mail:*',
    'phone_field'        => 'telephoneNumber',
    'address_field'      => 'streetAddress',
    'website_field'      => 'wWWHomePage',
    'im_field'           => 'othermailbox:*',
    'notes_field'        => 'info',
        'sort' => 'cn',
        'scope' => 'list',
        // Alex - 02-05 Filtra apenas um grupo em específico e se for usuário ativo
    'filter' => '(&(memberOf=CN=group_containg_users_only,CN=Users,DC=mydomain,DC=com,DC=br)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))',
        // Alex - 27-04 Filtro original do tutorial, apenas mudei o mail=* para userPrincipalName=*
        // 'filter' => '(&(userPrincipalName=*)(|(&(objectClass=group)(!(objectClass=computer)))(objectClass=group)))',
        'global_search' => true,
        'fuzzy_search' => true,
    ),
    'Grupos' =>array (
    'name'              => 'Grupos',
        'hosts'             => array('win2003.mydomain.com.br'),
        'port'              => 389,
        'user_specific'     => false,
        'base_dn'           => 'CN=users,DC=mydomain,DC=com,DC=br',
        'bind_dn'           => 'win2003user@mydomain.com.br',
        'bind_pass'         => 'win2003user_password',
        'writable' => false,
        'ldap_version' => 3,
        'filter'            => '(memberOf=CN=group_containg_groups_only,CN=Users,DC=mydomain,DC=com,DC=br)',
        'groups'            => array(
            'base_dn'         => '',     // o mesmo base_dn usado acima
            'filter'          => '(memberOf=CN=group_containg_groups_only,CN=Users,DC=mydomain,DC=com,DC=br)',
            'object_classes'  => array("top", "group"),
        ),
        'photo_field'        => 'thumbnailPhoto',
        'name_field'         => 'cn',
        'surname_field'      => 'sn',
        'firstname_field'    => 'givenName',
    'nickname_field'     => 'displayName',
    'organization_field' => 'company',
    'department_field'   => 'department',
    'jobtitle_field'     => 'title',
        'email_field'        => 'mail:*',
    'phone_field'        => 'telephoneNumber',
    'address_field'      => 'streetAddress',
    'website_field'      => 'wWWHomePage',
    'notes_field'        => 'info',
        'sort' => 'cn',
        'scope' => 'list',
        // Alex - 02-05 Filtra apenas um grupo em específico e se for usuário ativo
    'filter' => '(&(memberOf=CN=Catálogo Global Grupos,CN=Users,DC=mydomain,DC=com,DC=br)(!(useraccountcontrol:1.2.840.113556.1.4.803:=2)))',
        'global_search' => true,
        'fuzzy_search' => true,
    ),
     'Alternativos' =>array (
    'name'              => 'Endereços Alternativos',
        'hosts'             => array('win2003.mydomain.com.br'),
        'port'              => 389,
        'user_specific'     => false,
        'base_dn'           => 'CN=users,DC=mydomain,DC=com,DC=br',
        'bind_dn'           => 'win2003user@mydomain.com.br',
        'bind_pass'         => 'win2003user_password',
        'writable' => false,
        'ldap_version' => 3,
        'query_filter'      => '(&(objectclass=users)(|(othermailbox=*)(othermailbox=*)))',
        'photo_field'        => 'thumbnailPhoto',
        'name_field'         => 'cn',
        'surname_field'      => 'sn',
        'email_field'        => 'otherMailbox:*',
        'sort' => 'cn',
        'scope' => 'list',
        // Alex - 02-05 Filtra apenas um grupo em específico e se for usuário ativo
    'filter' => '(&(objectclass=person)(|(othermailbox=*)(othermailbox=*)))',
        'global_search' => true,
        'fuzzy_search' => true,
    ),
);

// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
$rcmail_config['autocomplete_addressbooks'] = array('sql','Publico','Grupos','Alternativos');

// The minimum number of characters required to be typed in an autocomplete field
// before address books will be searched. Most useful for LDAP directories that
// may need to do lengthy results building given overly-broad searches
$rcmail_config['autocomplete_min_length'] = 1;

// Number of parallel autocomplete requests.
// If there's more than one address book, n parallel (async) requests will be created,
// where each request will search in one address book. By default (0), all address
// books are searched in one request.
$rcmail_config['autocomplete_threads'] = 0;

// Max. numer of entries in autocomplete popup. Default: 15.
$rcmail_config['autocomplete_max'] = 20;

// show address fields in this order
// available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
$rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';

// Matching mode for addressbook search (including autocompletion)
// 0 - partial (*abc*), default
// 1 - strict (abc)
// 2 - prefix (abc*)
// Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
$rcmail_config['addressbook_search_mode'] = 0;

/var/log/dovecot.log:

Jun 15 10:51:54 master: Fatal: Dovecot is already running with PID 2821 (read from /var/run/dovecot/master.pid)
Jun 15 10:52:02 imap-login: Info: Login: user=<user2@mydomain.com.br>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=2860, secured, session=<tGUTbVE1igB/AAAB>
Jun 15 10:52:02 imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Jun 15 10:52:02 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Jun 15 10:52:02 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Jun 15 10:52:02 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jun 15 10:52:02 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Jun 15 10:52:02 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Jun 15 10:52:02 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: dict quota: user=user2@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Sent/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Drafts/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Trash/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Junk/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: auth input: user1@mydomain.com.br home=/var/vmail/vmail1/mydomain.com.br/user1/Maildir/ mail=maildir:/var/vmail/vmail1/mydomain.com.br/user1/Maildir/
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: dict quota: user=user1@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Trash
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Drafts
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Sent
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Junk
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 12:04:12 master: Fatal: Dovecot is already running with PID 2821 (read from /var/run/dovecot/master.pid)
Jun 15 12:04:26 imap-login: Info: Login: user=<user2@mydomain.com.br>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3719, secured, session=<Ly4LcFI1NAB/AAAB>
Jun 15 12:04:26 imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Jun 15 12:04:26 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Jun 15 12:04:26 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Jun 15 12:04:26 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jun 15 12:04:26 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Jun 15 12:04:26 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Jun 15 12:04:26 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: dict quota: user=user2@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 12:04:26 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Trash/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Drafts/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Sent/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Junk/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: auth input: user1@mydomain.com.br home=/var/vmail/vmail1/mydomain.com.br/user1/Maildir/ mail=maildir:/var/vmail/vmail1/mydomain.com.br/user1/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: dict quota: user=user1@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Trash
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Drafts
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Sent
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Junk
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Info: Disconnected: Logged out in=153 out=1305
Jun 15 12:04:27 imap-login: Info: Login: user=<user2@mydomain.com.br>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3725, secured, session=<JaQTcFI1PAB/AAAB>
Jun 15 12:04:27 imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Jun 15 12:04:27 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: dict quota: user=user2@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap-login: Info: Login: user=<user2@mydomain.com.br>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=3726, secured, session=<09YTcFI1QAB/AAAB>
Jun 15 12:04:27 imap: Debug: Loading modules from directory: /usr/lib/dovecot/modules
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib02_imap_acl_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so
Jun 15 12:04:27 imap: Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
Jun 15 12:04:27 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: dict quota: user=user2@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 12:04:27 imap(user2@mydomain.com.br): Info: Disconnected: Logged out in=147 out=1389
Jun 15 12:04:27 imap(user2@mydomain.com.br): Info: Disconnected: Logged out in=326 out=5640

command:
# doveadm -D acl get -u user2@mydomain.com.br Shared/user1@mydomain.com.br

doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib20_mailbox_alias_plugin.so
doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so
doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message)
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so
doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so
doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_backend_rescan (this is usually intentional, so just ignore this message)
doveadm(user2@mydomain.com.br): Debug: auth input: user2@mydomain.com.br home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/ mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
doveadm(user2@mydomain.com.br): Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
doveadm(user2@mydomain.com.br): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
doveadm(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
doveadm(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
doveadm(user2@mydomain.com.br): Debug: dict quota: user=user2@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
doveadm(user2@mydomain.com.br): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/
doveadm(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
doveadm(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
doveadm(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: acl: owner = 1
doveadm(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
doveadm(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
doveadm(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
doveadm(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
doveadm(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: acl: owner = 0
doveadm(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
doveadm(user2@mydomain.com.br): Debug: auth input: user1@mydomain.com.br home=/var/vmail/vmail1/mydomain.com.br/user1/Maildir/ mail=maildir:/var/vmail/vmail1/mydomain.com.br/user1/Maildir/
doveadm(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
doveadm(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user1@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user1@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user1@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user1@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
doveadm(user2@mydomain.com.br): Debug: dict quota: user=user1@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
doveadm(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
doveadm(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
doveadm(user2@mydomain.com.br): Debug: acl: acl username = user1@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: acl: owner = 1
doveadm(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
doveadm(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
doveadm(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
doveadm(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
doveadm(user2@mydomain.com.br): Debug: acl: owner = 0
doveadm(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
doveadm(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
ID Global Rights

If you need any other information, please let me know. Any help will very appreciated!

Thanks

3

Re: [Solved] Shared folders not listing after Active Directory integration

*) How did you share folder (user1@)?
*) Did you find any file whose name ends with "acl" in user1@'s mailbox?

4 (edited by zuotoski 2016-06-16 01:34:42)

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

*) How did you share folder (user1@)?
*) Did you find any file whose name ends with "acl" in user1@'s mailbox?

Thanks for reply so fast.

I've shared the folder using Sogo, click INBOX -> Sharing
In the user1 mailbox folder, there's a file called " dovecot-acl" which contains:

user=user2@mydomain.com.br akxeilprwts

5

Re: [Solved] Shared folders not listing after Active Directory integration

dovecot-acl looks fine.

Any error in Dovecot log file when you login to user2@? (when you first login, Dovecot will look for shared mailbox, so i suppose there's some error/warning to help troubleshoot)

6 (edited by zuotoski 2016-06-16 19:03:23)

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

dovecot-acl looks fine.

Any error in Dovecot log file when you login to user2@? (when you first login, Dovecot will look for shared mailbox, so i suppose there's some error/warning to help troubleshoot)

The log provided here is from user2. I mean, there is some log about user1, but the end is related to user2.
This problem is very easy to reproduce: Clean install an iRedMail, then test Sharing Folders, it will work. Then follow the tutorial (don't change anything, just follow it), now test Shared folders again, it won't work.

That's what I did, this is why I am telling you that it will behave like this.

7

Re: [Solved] Shared folders not listing after Active Directory integration

*) Do you see any record in SQL table "vmail.share_folder"?
*) if user1@ shared a folder to user2@, when user2@ login to webmail (or other IMAP client), Dovecot will find the sharing and check 'dovecot-acl' file in user1@'s mailbox. I didn't see any log about 'dovecot-acl' of user1@.

For example, i have 2 users on my testing machine, 1@ and 2@. 1@ shared a mailbox (INBOX) to 2@. When 2@ login to webmail, here's log in Dovecot log file about the ACL file:

Jun 16 09:32:00 imap(2@a.cn): Debug: maildir++: root=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir, index=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/Shared/1@a.cn, indexpvt=, control=, inbox=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir, alt=
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: initializing backend with data: vfile
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: acl username = 2@a.cn
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: owner = 0
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: Global ACLs disabled
Jun 16 09:32:00 imap(2@a.cn): Debug: maildir++: root=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir, index=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/Shared/1@a.cn, indexpvt=, control=, inbox=/var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir, alt=
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: initializing backend with data: vfile
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: acl username = 2@a.cn
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: owner = 0
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: Global ACLs disabled
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: reading file /var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/dovecot-acl
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: file /var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/.Sent/dovecot-acl not found
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: No lookup right to mailbox: Shared/1@a.cn/Sent
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: file /var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/.Drafts/dovecot-acl not found
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: No lookup right to mailbox: Shared/1@a.cn/Drafts
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: file /var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/.Trash/dovecot-acl not found
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: No lookup right to mailbox: Shared/1@a.cn/Trash
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: file /var/vmail/vmail1/a.cn/1/1/1/1-2016.06.16.09.29.08//Maildir/.Junk/dovecot-acl not found
Jun 16 09:32:00 imap(2@a.cn): Debug: acl: No lookup right to mailbox: Shared/1@a.cn/Junk
Jun 16 09:32:00 imap(2@a.cn): Debug: acl vfile: file /var/vmail/vmail1/a.cn/2/2/2/2-2016.06.16.09.29.15//Maildir/dovecot-acl not found
Jun 16 09:32:00 imap(2@a.cn): Info: Disconnected: Logged out in=233 out=907

8 (edited by zuotoski 2016-06-16 22:39:15)

Re: [Solved] Shared folders not listing after Active Directory integration

I've found a iredadmin.share_folder table and it has a record, with:

from: user1@mydomain.com.br
to: user2@mydomain.com.br

Just to enforce, Sharing Folders was working with LDAP, it stopped working after using the tutorial to integrate iRedMail with Active Directory.

PS.: I can see references to dovecot-acl to user1 and user2 in my log files, but it doesn't say too much for me, it's obvious that it is reporting files or content missing, but why? Why it was working before and now it isn't?

If I test it with Roundcube ou Sogo, the result is the same: no sharing folders listed.

Is there any manual way to test it? Like to share via command promt or something like it?

As you can see, there is something very similar to your log, in the log that I've posted above (I'll quote it below):

Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mydomain.com.br/user2/Maildir/:INDEX=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u:INDEXPVT=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/%u
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: shared: root=/var/run/dovecot, index=, indexpvt=, control=, inbox=, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Sent/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Drafts/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Trash/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/.Junk/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: auth input: user1@mydomain.com.br home=/var/vmail/vmail1/mydomain.com.br/user1/Maildir/ mail=maildir:/var/vmail/vmail1/mydomain.com.br/user1/Maildir/
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota root: name=user backend=dict args=:proxy::quotadict
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota rule: root=user mailbox=* bytes=1073741824 messages=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1073741824 (100%) messages=0 reverse=no command=quota-warning 100 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=1020054732 (95%) messages=0 reverse=no command=quota-warning 95 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=966367641 (90%) messages=0 reverse=no command=quota-warning 90 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota warning: bytes=912680550 (85%) messages=0 reverse=no command=quota-warning 85 user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: Quota grace: root=user bytes=107374182 (10%)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: dict quota: user=user1@mydomain.com.br, uri=proxy::quotadict, noenforcing=0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 1
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: maildir++: root=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, index=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, indexpvt=/var/vmail/vmail1/mydomain.com.br/user2/Maildir/Shared/user1@mydomain.com.br, control=, inbox=/var/vmail/vmail1/mydomain.com.br/user2/Maildir, alt=
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: initializing backend with data: vfile
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: acl username = user2@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: owner = 0
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: Global ACL directory: (none)
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Trash
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Drafts
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Sent
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl: Mailbox not in dovecot-acl-list: Shared/user1@mydomain.com.br/Junk
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found
Jun 15 10:52:02 imap(user2@mydomain.com.br): Debug: acl vfile: file /var/vmail/vmail1/mydomain.com.br/user2/Maildir/dovecot-acl not found

9

Re: [Solved] Shared folders not listing after Active Directory integration

i'm afraid that i cannot help without a testing iRedMail server + AD. If you can help build one and give me ssh access with root privilege, i may be able to figure it out.

10 (edited by zuotoski 2016-06-16 23:04:37)

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

i'm afraid that i cannot help without a testing iRedMail server + AD. If you can help build one and give me ssh access with root privilege, i may be able to figure it out.

Sure! I just don't want to take any advantage on your support. Well, I have everything here prepared to outside access.
How can I send you the information?

11

Re: [Solved] Shared folders not listing after Active Directory integration

zuotoski wrote:

How can I send you the information?

Mail me directly: zhb _at_ iredmail.org
is it a production server or a testing server?

12

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

Mail me directly: zhb _at_ iredmail.org

Sent...

13 (edited by zuotoski 2017-05-08 18:13:28)

Re: [Solved] Shared folders not listing after Active Directory integration

Hello!!!
   After reading a lot and comparing examples, I've finally found the solution:

Here is some explanation:

% vs %%

%var expands to the logged in user's variable, while %%var expands to the other users' variables. For example if your name is "myself" and "someone1" and "someone2" have shared mailboxes to you, the variables could be expanded like:

%u expands to "myself"
%%u expands to "someone1" or "someone2"
%h might expand to "/home/myself"
%%h might expand to "/home/someone1" or "/home/someone2"
~/ equals %h/

This is from http://wiki.dovecot.org/SharedMailboxes/Shared

So, the problem is the location, inside namespace, file /etc/dovecot/dovecot.conf:

The original location is:

location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%u

It have to be this way after the changes made to integrate with AD:

location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u

Note the %%Ln in maildir and INDEXPVT with %Ld - this was the key to make it work.

So, to make it a little more specific:

File /etc/dovecot/dovecot.conf before Active Directory integration following the tutorial http://www.iredmail.org/docs/active.directory.html:

namespace {
    type = 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
}

File /etc/dovecot/dovecot.conf after Active Directory integration following the tutorial http://www.iredmail.org/docs/active.directory.html:

namespace {
    type = shared
    separator = /
    prefix = Shared/%%u/
    location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u
    # this namespace should handle its own subscriptions or not.
    subscriptions = yes
    list = children
}

Well, thanks Zhang for your attention and to offer to solve the problem. I hope that this change contributes to the tutorial somehow.

Cheers! smile

14

Re: [Solved] Shared folders not listing after Active Directory integration

Did you modify the 'location =' parameter in `namespace {}`?

namespace {
    type = shared
    ...
}

15 (edited by zuotoski 2016-06-18 03:13:56)

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

Did you modify the 'location =' parameter in `namespace {}`?

namespace {
    type = shared
    ...
}

Yes, correct.

But... one problem is solved, now I am facing three others:
- Can't create sub folders under shared folders, even setting full permission (Sogo and Roundcube return error)
- Can't use groups as senders when creating a new message in Sogo. When add groups to the "From:' field (it removes the sender right after choosing it), the most interesting is that it works if I try to send e-mail from the Addressbook/Contacts list
- Delegation is not working, too. If user1 delegates rights to user2, when user2 tries to send an e-mail using user1 identity, it doesn't list user1, just user2 is available. hmm

... anyway, I don't want to mess up this topic with other problems, and I am also almost sure that this has nothing to do with iRedMail but with Dovecot/Sogo.

16

Re: [Solved] Shared folders not listing after Active Directory integration

Hi!
==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.5-1
- Linux/BSD distribution name and version: centos-release-6-8.el6.centos.12.3.x86_64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Windows 2008R2 Active Directory
- Web server (Apache or Nginx): Apache/2.2.15
- Manage mail accounts with iRedAdmin-Pro? No
- post domain: mailmail.com
- AD domain: inner.corp
====

All works fine. But...
All incoming mail BCC'ed to income@ mailbox and all outgoing mail BCC'ed to outcome@ mailbox

user androld@ must have read-only acces to income@ INBOX and outcome@ INBOX for inner security purposes.
those INBOXes shared by rouncube interface, dovecot-acl auto-created in Mailboxes

I have some problem sad Shared INBOX not shown in androld@ by roundcube interface.

I try to change line in dovecot.conf to:

location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEXPVT=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u

But option INDEXPVT can use with dovecot ver.2.2; in my system used dovecot ver.2.1.17
Now I use

location = maildir:/var/vmail/vmail1/%Ld/%%Ln/Maildir/:INDEX=/var/vmail/vmail1/%Ld/%Ln/Maildir/Shared/%%u

Some tests and logs:

[root@mail ~]# doveadm acl get -u income inbox
ID                       Global Rights                                  
user=androld@mailmail.com        lookup read write-seen  

Then I connect to dovecot by telnet and list folders, I not see Shared folder:

[root@mail ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. login androld@mailmail.com password
. OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE QUOTA ACL RIGHTS=texk] Logged in
. list "" "*"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Junk"
* LIST (\HasNoChildren) "/" "Drafts"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
. OK List completed.
^]
telnet> quit
Connection closed.

dovecot.log:

[root@mail ~]# tail -f -n 50 /var/log/dovecot.log | grep androld
Oct 05 17:30:27 imap-login: Info: Login: user=<androld@mailmail.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=4542, secured, session=<u7O4BB8+JAB/AAAB>
Oct 05 17:30:27 imap: Debug: Added userdb setting: mail=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Effective uid=2000, gid=2000, home=/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Namespace : type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 1
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Namespace : type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=no location=maildir:/var/vmail/vmail1/mailmail.com/androld/Maildir/:INDEX=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/%u
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: shared: root=/var/run/dovecot, index=, control=, inbox=, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: reading file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Sent/dovecot-acl
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Junk/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Drafts/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: file /var/vmail/vmail1/mailmail.com/androld/Maildir/.Trash/dovecot-acl not found
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: reading file /var/vmail/vmail1/mailmail.com/androld/Maildir/dovecot-acl
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: auth input: outcome@mailmail.com home=/var/vmail/vmail1/mailmail.com/outcome/Maildir/ mail=maildir:/var/vmail/vmail1/mailmail.com/outcome/Maildir/ quota_rule=*:bytes=20000000000
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 outcome@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/outcome@mailmail.com, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Sent
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Junk
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Drafts
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/Trash
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/outcome@mailmail.com/INBOX
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: auth input: income@mailmail.com home=/var/vmail/vmail1/mailmail.com/income/Maildir/ mail=maildir:/var/vmail/vmail1/mailmail.com/income/Maildir/ quota_rule=*:bytes=20000000000
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota root: name=User quota backend=maildir args=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota rule: root=User quota mailbox=* bytes=100000000 messages=0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=100000000 (100%) messages=0 reverse=no command=quota-warning 100 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=95000000 (95%) messages=0 reverse=no command=quota-warning 95 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=90000000 (90%) messages=0 reverse=no command=quota-warning 90 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: Quota warning: bytes=85000000 (85%) messages=0 reverse=no command=quota-warning 85 income@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: maildir++: root=/var/vmail/vmail1/mailmail.com/androld/Maildir, index=/var/vmail/vmail1/mailmail.com/androld/Maildir/Shared/income@mailmail.com, control=, inbox=/var/vmail/vmail1/mailmail.com/androld/Maildir, alt=
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: initializing backend with data: vfile
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: acl username = androld@mailmail.com
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: owner = 0
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl vfile: Global ACL directory: (none)
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Sent
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Junk
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Drafts
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/Trash
Oct 05 17:30:27 imap(androld@mailmail.com): Debug: acl: Mailbox not in dovecot-acl-list: Shared/income@mailmail.com/INBOX
Oct 05 17:30:28 imap(androld@mailmail.com): Info: Disconnected: Logged out in=248 out=941

Help me please!

P.S. Sorry for my English

17

Re: [Solved] Shared folders not listing after Active Directory integration

Did you subscribe to the shared mailbox in Roundcube (Settings -> Folders)?

BTW, next time, please create a new forum topic for your own question/issue, do not hijack other's thread.

18

Re: [Solved] Shared folders not listing after Active Directory integration

ZhangHuangbin wrote:

Did you subscribe to the shared mailbox in Roundcube (Settings -> Folders)?

BTW, next time, please create a new forum topic for your own question/issue, do not hijack other's thread.

No listed shared mailboxes in Roundcube

Sorry, I create new topic - http://www.iredmail.org/forum/post51747.html