On 01.01.2014 18:18, Paul J Stevens wrote: > On second thought: please do send some logs. I can't reproduce it here.
I tried to isolate the problem a bit and reproduce it without roundcube. I attached the log files. How they were obtained I gave below. With 3.1.8 and patch: root@styx:~/dbmail-imaproxy# dbmail-imapd -V This is DBMail version 3.1.8 root@styx:~/dbmail-imaproxy# /etc/init.d/dbmail stop && truncate --size 0 /var/log/dbmail/dbmail.err && /etc/init.d/dbmail start root@styx:~/dbmail-imaproxy# /etc/init.d/imapproxy start root@styx:~/dbmail-imaproxy# date && ./test.py && sleep 30 && ./test.py Wed Jan 1 19:38:48 MSK 2014 root@styx:~/dbmail-imaproxy# /etc/init.d/imapproxy restart root@styx:~/dbmail-imaproxy# date && ./test.py && sleep 15 && ./test.py Wed Jan 1 19:39:47 MSK 2014 root@styx:~/dbmail-imaproxy# tail -200 /var/log/syslog | grep imapproxy Jan 1 19:38:29 styx imapproxyd: main(): Using configuration file '/etc/imapproxy.conf' Jan 1 19:38:29 styx imapproxyd: Using syslog facility 'LOG_MAIL' for logging. Jan 1 19:38:29 styx in.imapproxyd[26349]: No syslog priority mask specified. Jan 1 19:38:29 styx in.imapproxyd[26349]: main(): SELECT caching is enabled Jan 1 19:38:29 styx in.imapproxyd[26349]: main(): Internal admin commands are disabled Jan 1 19:38:29 styx in.imapproxyd[26349]: main(): Allocating 3072 IMAP connection structures. Jan 1 19:38:29 styx in.imapproxyd[26349]: ServerInit(): Using '/var/log/imapproxy_protocol.log' for global protocol logging file. Jan 1 19:38:29 styx in.imapproxyd[26349]: ServerInit(): proxying to IMAP server 'localhost'. Jan 1 19:38:29 styx in.imapproxyd[26349]: ServerInit(): Proxying to IMAP port 10143 Jan 1 19:38:29 styx in.imapproxyd[26349]: main(): Binding to tcp *:30143 Jan 1 19:38:29 styx in.imapproxyd[26349]: main(): Using global statistics file '/var/run/pimpstats' Jan 1 19:38:29 styx in.imapproxyd[26349]: Daemonize(): Configured to run in background mode. Jan 1 19:38:29 styx in.imapproxyd[26351]: BecomeNonRoot(): Process will run as uid 65534 (nobody) and gid 65534 (nogroup). Jan 1 19:38:29 styx in.imapproxyd[26351]: BecomeNonRoot(): Process chrooted in /var/lib/imapproxy/chroot Jan 1 19:38:29 styx in.imapproxyd[26351]: main(): Launched ICC recycle thread with id -434497792 Jan 1 19:38:29 styx in.imapproxyd[26351]: main(): imapproxy version 1.2.7 normal server startup. *Jan 1 19:38:49 styx in.imapproxyd[26351]: LOGIN: 'test' (127.0.0.1:37689) on new sd [9]** **Jan 1 19:38:49 styx in.imapproxyd[26351]: LOGOUT: 'test' from server sd [9]** **Jan 1 19:39:19 styx in.imapproxyd[26351]: Get_Server_conn(): Unable to reuse server sd [9] for user 'test' (127.0.0.1:37691). Connection closed by server.** **Jan 1 19:39:19 styx in.imapproxyd[26351]: LOGIN: 'test' (127.0.0.1:37691) on new sd [10]** **Jan 1 19:39:19 styx in.imapproxyd[26351]: LOGOUT: 'test' from server sd [10]** **Jan 1 19:39:29 styx in.imapproxyd[26351]: Expiring server sd [9]** *Jan 1 19:39:38 styx imapproxyd: main(): Using configuration file '/etc/imapproxy.conf' ... ***Jan 1 19:39:47 styx in.imapproxyd[26533]: LOGIN: 'test' (127.0.0.1:37695) on new sd [9]** **Jan 1 19:39:47 styx in.imapproxyd[26533]: LOGOUT: 'test' from server sd [9]** **Jan 1 19:40:02 styx in.imapproxyd[26533]: LOGIN: 'test' (127.0.0.1:37697) on existing sd [9]** **Jan 1 19:40:02 styx in.imapproxyd[26533]: LOGOUT: 'test' from server sd [9] * root@styx:~/dbmail-imaproxy# cp /var/log/dbmail/dbmail.err dbmail-3.1.8.log root@styx:~/dbmail-imaproxy# gzip dbmail-3.1.8.log With 3.1.7: root@styx:~/dbmail-imaproxy# dbmail-imapd -V This is DBMail version 3.1.7.1 root@styx:~/dbmail-imaproxy# /etc/init.d/dbmail stop && truncate --size 0 /var/log/dbmail/dbmail.err && /etc/init.d/dbmail start root@styx:~/dbmail-imaproxy# /etc/init.d/imapproxy start root@styx:~/dbmail-imaproxy# date && ./test.py && sleep 30 && ./test.py Wed Jan 1 19:52:35 MSK 2014 root@styx:~/dbmail-imaproxy# /etc/init.d/imapproxy restart root@styx:~/dbmail-imaproxy# date && ./test.py && sleep 15 && ./test.py Wed Jan 1 19:53:32 MSK 2014 root@styx:~/dbmail-imaproxy# tail -200 /var/log/syslog | grep imapproxy Jan 1 19:51:50 styx imapproxyd: main(): Using configuration file '/etc/imapproxy.conf' ... *Jan 1 19:52:35 styx in.imapproxyd[29498]: LOGIN: 'test' (127.0.0.1:37710) on new sd [9]** **Jan 1 19:52:35 styx in.imapproxyd[29498]: LOGOUT: 'test' from server sd [9]** **Jan 1 19:53:05 styx in.imapproxyd[29498]: LOGIN: 'test' (127.0.0.1:37712) on existing sd [9]** **Jan 1 19:53:06 styx in.imapproxyd[29498]: LOGOUT: 'test' from server sd [9]** *Jan 1 19:53:26 styx imapproxyd: main(): Using configuration file '/etc/imapproxy.conf' ... *Jan 1 19:53:32 styx in.imapproxyd[29647]: LOGIN: 'test' (127.0.0.1:37715) on new sd [9]** **Jan 1 19:53:32 styx in.imapproxyd[29647]: LOGOUT: 'test' from server sd [9]** **Jan 1 19:53:47 styx in.imapproxyd[29647]: LOGIN: 'test' (127.0.0.1:37717) on existing sd [9]** **Jan 1 19:53:47 styx in.imapproxyd[29647]: LOGOUT: 'test' from server sd [9]** * root@styx:~/dbmail-imaproxy# cp /var/log/dbmail/dbmail.err dbmail-3.1.7.log root@styx:~/dbmail-imaproxy# gzip dbmail-3.1.7.log
[DBMAIL] dburi = mysql://dbmail3:*****@ariel.c-e.ru/dbmail3?charset=utf8 authdriver = sql max_db_connections = 50 default_msg_encoding = utf8 postmaster = DBMAIL-MAILER sendmail = /usr/sbin/sendmail # # The following items can be overridden in the service-specific sections. # # Set the log level to the sum of the values next to the levels you want to record. # 1 = Emergency # 2 = Alert # 4 = Critical # 8 = Error # 16 = Warning # 32 = Notice # 64 = Info # 128 = Debug # 256 = Database -> Logs at debug level file_logging_levels = 255 syslog_logging_levels = 15 query_time_info = 10 query_time_notice = 20 query_time_warning = 30 query_timeout = 300 effective_user = dbmail effective_group = dbmail bindip = 0.0.0.0 timeout = 300 login_timeout = 30 backlog = 256 resolve_ip = no authlog = yes logfile = /var/log/dbmail/dbmail.log errorlog = /var/log/dbmail/dbmail.err pid_directory = /var/run/dbmail # SSL/TLS certificates tls_cafile = tls_cert = tls_key = tls_ciphers = [LMTP] max_db_connections = 5 port = 10024 [POP] max_db_connections = 5 port = 10110 pop_before_smtp = no [HTTP] port = 41380 bindip = 127.0.0.1 admin = admin:secret [IMAP] port = 10143 timeout = 3600 imap_before_smtp = no idle_timeout = 30 [SIEVE] port = 14190 [DELIVERY] SIEVE = yes SUBADDRESS = yes SIEVE_VACATION = no SIEVE_NOTIFY = no SIEVE_DEBUG = no AUTO_NOTIFY = no AUTO_REPLY = no suppress_duplicates = no
dbmail-3.1.7.log.gz
Description: application/gzip
dbmail-3.1.8.log.gz
Description: application/gzip
listen_port 30143 server_hostname localhost server_port 10143 connect_retries 10 connect_delay 5 cache_size 3072 cache_expiration_time 600 enable_select_cache yes proc_username nobody proc_groupname nogroup chroot_directory /var/lib/imapproxy/chroot foreground_mode no stat_filename /var/run/pimpstats protocol_log_filename /var/log/imapproxy_protocol.log syslog_facility LOG_MAIL send_tcp_keepalives no force_tls no enable_admin_commands no
#!/usr/bin/python from imaplib import IMAP4 m = IMAP4('localhost', 30143) m.login('test', 'EiNoihi7') m.select() m.logout()
_______________________________________________ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail