# Using http://git.dbmail.eu/paul/dbmail/snapshot/dbmail-e3a701864100aae255285294ecae1192bdac8c33.tar.gz
# dbmail-lmtpd launches OK # dbmail-imapd crashes - using *$ ./configure --prefix=/usr --with-sieve --sysconfdir=/etc * This is dbmail's GNU configure script. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for libSieve headers... checking for libSieve libraries... -lsieve checking for pkg-config... /usr/bin/pkg-config checking GLib headers... -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include checking Glib libraries... checking GLib version >= 2.16... -Wl,--export-dynamic -pthread -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 checking for pkg-config... /usr/bin/pkg-config checking GMime headers... -D_LARGEFILE64_SOURCE -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include checking GMime libraries... -lgmime-2.4 -lgobject-2.0 -lglib-2.0 checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking mhash.h usability... yes checking mhash.h presence... yes checking for mhash.h... yes checking for event.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking for URL.h... yes checking for ResultSet.h... yes checking for PreparedStatement.h... yes checking for Connection.h... yes checking for ConnectionPool.h... yes checking for SQLException.h... yes checking for jemalloc.h... no checking for jemalloc_defs.h... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for getopt_long_only... yes checking whether optreset is declared... no checking for working GNU getopt function... yes checking for connect... yes checking for res_search... no checking for res_search in -lresolv... no checking for dn_expand... no checking for dns_lookup... no checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking maximum warning verbosity option... -W -Wall -Wpointer-arith -Wstrict-prototypes for C checking for an ANSI C-conforming const... yes checking for inline... inline checking whether byte ordering is bigendian... no checking endian.h usability... yes checking endian.h presence... yes checking for endian.h... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking for crypt in -lcrypt... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating src/dbmail.h config.status: creating Makefile config.status: creating src/Makefile config.status: creating src/modules/Makefile config.status: creating man/Makefile config.status: creating test/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands PREFIX /usr USE_DM_GETOPT: CFLAGS: -g -O2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -D_LARGEFILE64_SOURCE -I/usr/include/gmime-2.4 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/zdb -I/usr/include/zdb -I/usr/local/include/jemalloc -I/usr/include/jemalloc -W -Wall -Wpointer-arith -Wstrict-prototypes GLIB: -Wl,--export-dynamic -pthread -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 GMIME: -lgmime-2.4 -lgobject-2.0 -lglib-2.0 SIEVE: -lsieve LDAP: SHARED: yes STATIC: no CHECK: SOCKETS: MATH: -lm MHASH: -lmhash LIBEVENT: -levent_pthreads -levent OPENSSL: -lssl ZDB: -lzdb JEMALLOC: no # I was wondering why the FQDN isn't shown in its entirety below (dbmail1.localdomain) *$ service dbmail-imapd restart # both logging levels = 255* Stopping dbmail-imapd: [FAILED] Starting dbmail-imapd: Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1009): max_db_connections [10] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1021): timeout [4000] seconds Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1032): login_timeout [60] seconds Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1037): no value for SOCKET in config file Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1039): socket [] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1049): binding to PORT [143] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1077): binding to IP [0.0.0.0] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1083): no value for BACKLOG in config file. Using default value [128] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1087): IMAP backlog [128] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1094): not resolving client IP Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1103): Disabling IMAP-before-SMTP Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1110): Disabling IMAP Authentication logging Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1121): effective user shall be [nobody] Nov 10 09:14:32 dbmail1.localdo dbmail-imapd[34614]: [0x1624fc0] Debug:[server] server_config_load(+1131): effective group shall be [nobody] *$ ls -l `which dbmail-imapd`* -rwxr-xr-x 1 root root 360430 Nov 10 08:47 /usr/sbin/dbmail-imapd *$ gdb dbmail-imapd* GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1) Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/sbin/dbmail-imapd...done. (gdb) run -D Starting program: /usr/sbin/dbmail-imapd -D [Thread debugging using libthread_db enabled] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1009): max_db_connections [10] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1021): timeout [4000] seconds Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1032): login_timeout [60] seconds Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1037): no value for SOCKET in config file Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1039): socket [] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1049): binding to PORT [143] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1077): binding to IP [0.0.0.0] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1083): no value for BACKLOG in config file. Using default value [128] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1087): IMAP backlog [128] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1094): not resolving client IP Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1103): Disabling IMAP-before-SMTP Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1110): Disabling IMAP Authentication logging Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1121): effective user shall be [nobody] Nov 10 09:23:40 dbmail1.localdo dbmail-imapd[38868]: [0x61cfc0] Debug:[server] server_config_load(+1131): effective group shall be [nobody] [New Thread 0x7ffff78ed700 (LWP 38876)] Program received signal SIGABRT, Aborted. 0x00000031b6c328e5 in raise (sig=6) at .../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); (gdb) bt #0 0x00000031b6c328e5 in raise (sig=6) at .../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00000031b6c340c5 in abort () at abort.c:92 #2 0x00000031b7c4337a in IA__g_logv (log_domain=0x31b7c8a0e6 "GLib", log_level=<value optimized out>, format= 0x31b7c97fe0 "The thread system is not yet initialized.", args1=0x7fffffff9e60) at gmessages.c:549 #3 0x00000031b7c43413 in IA__g_log (log_domain=<value optimized out>, log_level=<value optimized out>, format=<value optimized out>) at gmessages.c:569 #4 0x00000031b7c6059e in g_thread_fail () at gthread.c:591 #5 0x00000031b7c155c7 in IA__g_async_queue_new () at gasyncqueue.c:59 #6 0x00007ffff7b55c7d in server_setup (conf=0x7fffffffa090) at server.c:248 #7 0x00007ffff7b57097 in server_run (conf=0x7fffffffa090) at server.c:786 #8 0x00007ffff7b57a3d in server_mainloop (config=0x7fffffffa090, service=0x41352d "IMAP", servicename=<value optimized out>) at server.c:976 #9 0x00000000004130c7 in main (argc=<value optimized out>, argv=0x7fffffffd9f8) at imapd.c:53 (gdb) *$ cat /var/log/messages* Nov 10 09:22:13 dbmail1 abrtd: Directory 'ccpp-2013-11-10-09:22:13-38842' creation detected Nov 10 09:22:13 dbmail1 abrt[38849]: Saved core dump of pid 38842 (/usr/sbin/dbmail-imapd) to /var/spool/abrt/ccpp-2013-11-10-09:22:13-38842 (12292096 bytes) Nov 10 09:22:13 dbmail1 abrtd: Executable '/usr/sbin/dbmail-imapd' doesn't belong to any package Nov 10 09:22:13 dbmail1 abrtd: 'post-create' on '/var/spool/abrt/ccpp-2013-11-10-09:22:13-38842' exited with 1 Nov 10 09:22:13 dbmail1 abrtd: Corrupted or bad directory '/var/spool/abrt/ccpp-2013-11-10-09:22:13-38842', deleting *$ cat /var/log/maillog* Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1009): max_db_connections [10] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1021): timeout [4000] seconds Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1032): login_timeout [60] seconds Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1037): no value for SOCKET in config file Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1039): socket [] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1049): binding to PORT [143] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1077): binding to IP [0.0.0.0] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1083): no value for BACKLOG in config file. Using default value [128] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1087): IMAP backlog [128] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1094): not resolving client IP Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1103): Disabling IMAP-before-SMTP Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1110): Disabling IMAP Authentication logging Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1121): effective user shall be [nobody] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38927]: Debug:[server] server_config_load(+1131): effective group shall be [nobody] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[server] server_daemonize(+386): sid: [38928] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Notice:[server] server_run(+761): starting main service loop for [IMAP] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[db] db_connect(+162): dburi: mysql://dbmail:[email protected]:3306/dbmail Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Info:[db] db_connect(+215): database connection pool created with maximum connections of [10] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[db] db_check_version(+891): Tables OK Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[auth] auth_load_driver(+40): using default auth_sql Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[auth] auth_load_driver(+47): no value for library_directory, using default [/usr/lib/dbmail] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Debug:[auth] auth_load_driver(+72): looking for auth_sql as /usr/local/distro/dbmail-e3a701864100aae255285294ecae1192bdac8c33/src/modules/.libs/libauth_sql Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Notice:[server] server_run(+775): starting main service loop for [IMAP] Nov 10 09:28:29 dbmail1 dbmail/imap4d[38930]: Info:[server] server_set_sighandler(+693): signal handler placed *$ cat /var/log/dbmail/dbmail.err * Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[server] server_daemonize(+386): sid: [39000] Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Notice:[server] server_run(+761): starting main service loop for [IMAP] Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[db] db_connect(+162): dburi: mysql://dbmail:[email protected]:3306/dbmail Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Info:[db] db_connect(+215): database connection pool created with maximum connections of [10] Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[db] db_check_version(+891): Tables OK Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[auth] auth_load_driver(+40): using default auth_sql Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[auth] auth_load_driver(+47): no value for library_directory, using default [/usr/lib/dbmail] Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Debug:[auth] auth_load_driver(+72): looking for auth_sql as /usr/local/distro/dbmail-e3a701864100aae255285294ecae1192bdac8c33/src/modules/.libs/libauth_sql.so Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Notice:[server] server_run(+775): starting main service loop for [IMAP] Nov 10 09:34:01 dbmail1.localdo dbmail-imapd[39002]: [0x8e9fc0] Info:[server] server_set_sighandler(+693): signal handler placed *$ ls -l /var/log/dbmail total 4* -rw------- 1 root root 1438 Nov 10 09:34 dbmail.err -rw------- 1 root root 0 Nov 8 18:14 dbmail.log *$ grep -v '^#' /etc/dbmail.conf |grep -v '^$'|sed -r 's/^[^[]/ &/'* [DBMAIL] dburi = mysql://dbmail:[email protected]:3306/dbmail authdriver = sql table_prefix = dbmail_ encoding = utf8 default_msg_encoding = utf8 sendmail = /usr/sbin/sendmail file_logging_levels = 255 syslog_logging_levels = 255 query_time_info = 10 query_time_notice = 20 query_time_warning = 30 query_timeout = 300 effective_user = nobody effective_group = nobody bindip = 0.0.0.0 # IPv4 only - all IP's timeout = 300 login_timeout = 60 resolve_ip = no authlog = no logfile = /var/log/dbmail/dbmail.log errorlog = /var/log/dbmail/dbmail.err pid_directory = /var/run/dbmail tls_cafile = tls_cert = tls_key = tls_ciphers = [LMTP] port = 24 [POP] port = 110 pop_before_smtp = no [HTTP] port = 41380 bindip = 127.0.0.1 admin = admin:secret [IMAP] port = 143 timeout = 4000 imap_before_smtp = no [SIEVE] port = 2000 tls_port = [LDAP] port = 389 version = 3 hostname = ldap base_dn = ou=People,dc=mydomain,dc=com bind_dn = bind_pw = scope = SubTree referrals = yes user_objectclass = top,account,dbmailUser forw_objectclass = top,account,dbmailForwardingAddress cn_string = uid field_passwd = userPassword field_uid = uid field_nid = uidNumber min_nid = 10000 max_nid = 15000 field_cid = gidNumber min_cid = 10000 max_cid = 15000 field_mail = mail field_quota = mailQuota field_fwdtarget = mailForwardingAddress [DELIVERY] SIEVE = yes SUBADDRESS = yes SIEVE_VACATION = yes SIEVE_NOTIFY = yes SIEVE_DEBUG = no AUTO_NOTIFY = no AUTO_REPLY = no suppress_duplicates = no quota_failure = hard -- View this message in context: http://dbmail.10918.n7.nabble.com/DBmail-3-1-7-1-dbmail-export-hangs-with-some-pathological-cases-tp33563p33636.html Sent from the dbmail users mailing list archive at Nabble.com. _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
