V
V
VA2017-01-10 10:41:01
Mail server
VA, 2017-01-10 10:41:01

Dovecot not creating folders?

Hi all!
There is a Postfix + Dovecot mail server, PostfixAdmin web tools, RoundCube
Filtering is also configured through Spamassasin, ClamAV
Two mails are created, for example:
@ site1.ru
@
site2.ru
site2.ru timeouts fly out, at the stage "connecting to site2.ru"
From the dovecot logs, I realized that folders are not created Tell me
what could be the problem?
In the logs /var/log/doevcot.log such entries

spoiler
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: client in: CONT#0111#011aW5mb0B2aWRlb3JlZ2lzdHJhdG9yaS5ydSA4MjgyNjBiZTczOTY2YjFkNDU5MDQ0MGExYzJmYjA3MQ==
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: sql([email protected],127.0.0.1): query: SELECT username as user, password, '/var/vmail/site2.ru/info' as userdb_home, 'maildir:/var/vmail/site2.ru/info' as userdb_mail, 1150 as userdb_uid, 12 asuserdb_gid FROM mailbox WHERE username = '[email protected]' AND active = '1'
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: password([email protected],127.0.0.1): Credentials: ffd49646006d4d557220d0af6faaf801e05c1de6d124f3700ea5eaac9507d28c
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: client out: OK#0111#[email protected]#011asuserdb_gid=12
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: master in: REQUEST#011622592001#01117017#0111#01167697f55cca6427f4c46626ef8d9632d
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: sql([email protected],127.0.0.1): SELECT '/var/vmail/site2.ru/info' as home, 'maildir:/var/vmail/site2.ru/info'as mail, 1150 AS uid, 12 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '[email protected]' AND active = '1'
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: auth: Debug: master out: USER#011622592001#[email protected]#011home=/var/vmail/site2.ru/info#011mail=maildir:/var/vmail/site2.ru/info#011uid=1150#011gid=12#011quota=dirsize:storage=0
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap-login: Login: user=<[email protected]>, method=CRAM-MD5, rip=127.0.0.1, lip=127.0.0.1, mpid=17018, TLS
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib20_autocreate_plugin.so
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap: Debug: Added userdb setting: mail=maildir:/var/vmail/site2.ru/info
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap: Debug: Added userdb setting: plugin/quota=dirsize:storage=0
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap([email protected]): Debug: Effective uid=1150, gid=12, home=/var/vmail/site2.ru/info
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap([email protected]): Debug: maildir++: root=/var/vmail/site2.ru/info, index=, control=, inbox=/var/vmail/site2.ru/info
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap([email protected]): Debug: Namespace : Using permissions from /var/vmail/site2.ru/info: mode=0700 gid=-1
Jan 10 08:35:05 CentOS-68-64-minimal dovecot: imap([email protected]): Disconnected: Logged out bytes=90/818


dovecot.conf
spoiler
# 2.0.9: /etc/dovecot/dovecot.conf  
# OS: Linux  CentOS release 6.8 
auth_debug = yes  
auth_debug_passwords = yes  
auth_mechanisms = plain login cram-md5  
auth_verbose = yes  
base_dir = /var/run/dovecot/  
disable_plaintext_auth = no  
ssl = yes  
ssl_cert = </etc/postfix/certs/cert.pem  
ssl_key = </etc/postfix/certs/key.pem
first_valid_uid = 1150  
last_valid_uid = 1150  
log_timestamp = %Y-%m-%d %H:%M:%S  
mail_debug = yes  
mail_location = maildir:/var/vmail/%d/%u  
passdb {  
          args = /etc/dovecot/dovecot-sql.conf  
          driver = sql  
}  
protocols = imap pop3  
service auth {  
   unix_listener /var/spool/postfix/private/dovecot-auth {  
          user = postfix  
          group = postfix  
          mode = 0660  
    }  
   unix_listener auth-master {  
          user = vmail  
          group = mail  
          mode = 0660  
    }  
   unix_listener auth-userdb {  
          user = vmail  
          group = mail  
          mode = 0660  
    }  
#user=root  
}  

service imap-login {  
    executable = /usr/libexec/dovecot/imap-login  
           inet_listener imap {  
           address = *  
           port = 143  
     }  
                inet_listener imaps {
                port = 993
                ssl = yes
            }

}  
service imap {  
    executable = /usr/libexec/dovecot/imap  
}  


service pop3-login {  
     executable = /usr/libexec/dovecot/pop3-login  
           inet_listener pop3 {  
           address = *  
           port = 110  
     }
                inet_listener pop3s {
                port = 995
                ssl = yes
             }
}  

service pop3 {  
           executable = /usr/libexec/dovecot/pop3  
}  
userdb {  
           args = /etc/dovecot/dovecot-sql.conf  
           driver = sql  
}   
protocol lda {  
            auth_socket_path = /var/run/dovecot/auth-master  
            postmaster_address = [email protected]  
}

protocol imap {  
  mail_plugins = $mail_plugins autocreate  
}

plugin {  
    autocreate = INBOX  
    autocreate2 = Sent  
    autocreate3 = Trash  
    autocreate4 = Drafts  
    autocreate5 = Junk  
    autosubscribe = INBOX  
    autosubscribe2 = Sent  
    autosubscribe3 = Trash  
    autosubscribe4 = Drafts  
    autosubscribe5 = Junk  
}


log_path = /var/log/dovecot.log

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question