Re: [Dovecot] dovecot cores
According to Timo Sirainen: On 11.10.2012, at 9.43, dove...@freakout.de wrote: Dovecot code is calling str_to_time() from libmysqlclient, instead of from Dovecot's internal code. Not the first time mysql conflicted with Dovecot code. This could be worked around, but .. why is your dovecot binary linked with libmysqlclient? Only auth and dict binaries should be. but dovecot's configure script does not allow to specify the mysql libs and headers explictly - only by global CPPFLAGS and LDFLAGS extensions, which are used for all binaries - when i tried to specify: ./configure --prefix=/opt/dovecot --sysconfdir=/etc/dovecot --mandir=/opt/dovecot/man \ --docdir=/opt/dovecot/doc --libexecdir=/opt/dovecot/sbin --datadir=/opt/dovecot \ --with-rundir=/var/dovecot/run --with-statedir=/var/dovecot/state \ --with-mysql=/opt/mysql/bin/mysql_config checking for ... checking pkg-config is at least version 0.9.0... yes configure: error: --with-mysql=path not supported. You may want to use instead: CPPFLAGS=-I/opt/mysql/bin/mysql_config/include LDFLAGS=-L/opt/mysql/bin/mysql_config/lib ./configure --with-mysql i followed the hint from the configure script above and run into the core-dumps due to symbol clash str_to_time. How to work around with mysql in non-standard location? Thanks Axel
Re: [Dovecot] dovecot cores
dove...@freakout.de wrote the following on 12.10.2012 13:50: According to Timo Sirainen: On 11.10.2012, at 9.43, dove...@freakout.de wrote: Dovecot code is calling str_to_time() from libmysqlclient, instead of from Dovecot's internal code. Not the first time mysql conflicted with Dovecot code. This could be worked around, but .. why is your dovecot binary linked with libmysqlclient? Only auth and dict binaries should be. but dovecot's configure script does not allow to specify the mysql libs and headers explictly - only by global CPPFLAGS and LDFLAGS extensions, which are used for all binaries - when i tried to specify: ./configure --prefix=/opt/dovecot --sysconfdir=/etc/dovecot --mandir=/opt/dovecot/man \ --docdir=/opt/dovecot/doc --libexecdir=/opt/dovecot/sbin --datadir=/opt/dovecot \ --with-rundir=/var/dovecot/run --with-statedir=/var/dovecot/state \ --with-mysql=/opt/mysql/bin/mysql_config checking for ... checking pkg-config is at least version 0.9.0... yes configure: error: --with-mysql=path not supported. You may want to use instead: CPPFLAGS=-I/opt/mysql/bin/mysql_config/include LDFLAGS=-L/opt/mysql/bin/mysql_config/lib ./configure --with-mysql i followed the hint from the configure script above and run into the core-dumps due to symbol clash str_to_time. How to work around with mysql in non-standard location? Thanks Axel This one works for me for mysql in a non-standard location (my.cnf is in /etc): CPPFLAGS='-I/opt/mysql/include/mysql' LDFLAGS='-L/opt/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm' ./configure --with-mysql . Rds Tamsy
Re: [Dovecot] dovecot cores
On 12.10.2012, at 10.02, dove...@freakout.de wrote: According to Timo Sirainen: Simply specifying -I or -L paths doesn't link with libmysql. What exactly did you use for CPPFLAGS/LDFLAGS/configure? ok - i specified: CFLAGS=-I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include LDFLAGS=-L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib -lmysqlclient -lmysqlclient shouldn't be in LDFLAGS. if i omit -lmysqlclient (seems to be the reason for the hassle) i get: libtool: link: gcc4 -std=gnu99 -g -I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/opt/ssl/include -o .libs/auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-postfix-connection.o mech-otp-skey-common.o mech-plain-common.o auth-penalty.o auth-request.o auth-request-handler.o auth-settings.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-dict.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-external.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-scram-sha1.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-dict.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o passdb-static.o passdb-template.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-dict.o userdb-nss.o userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o userdb-template.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic -L/opt /zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib libpassword.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../../src/lib-sql/.libs/libsql.a ../../src/lib-dovecot/.libs/libdovecot.so -lcrypt -ldl -Wl,-rpath -Wl,/opt/dovecot/lib ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_connect': /usr/src/rpm/BUILD/dovecot-2.1.10/src/lib-sql/driver-mysql.c:83: undefined reference to `mysql_options' ... tons of other undefined reference to mysqlclient /usr/src/rpm/BUILD/dovecot-2.1.10/src/lib-sql/driver-mysql.c:470: undefined reference to `mysql_error' collect2: error: ld returned 1 exit status I'm not sure why it's doing that. It really shouldn't. You could try SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient if one of them helps.
Re: [Dovecot] imap proxy setup - killed with signal 11
On 11.10.2012, at 20.35, btb wrote: i'm setting up an imap proxy in front of a novell groupwise server. it seems to so far be partially working, but dovecot is having trouble in certain cases. i expect that it's ultimately due to what i believe is a very poor implementation of imap provided by groupwise [at least based on other experiences in the past] - but that's a big part of why i'd like to have dovecot in between it and clients. os is ubuntu 12.10 development/beta, dovecot is 2.1.7 courtesy of ubuntu's packages. There have been a couple of imapc fixes since v2.1.7. It's possible that the crash is fixed by one of them. Oct 11 13:24:52 halo dovecot: imap(jdoe): Error: imapc: Mailbox 'Trash' state corrupted: Expunged message reappeared in session (uid=6282 next_uid=6283) Could you get imapc rawlogs where this happens? Point imapc_rawlog_dir setting to some directory. #0 0x in ?? () No symbol table info available. #1 0x7fc7f6cb611e in imap_parser_reset (parser=0x7fc7f8a0f3a0) at imap-parser.c:93 No locals. #2 0x7fc7f6f7ada7 in imapc_connection_input_reset (conn=conn@entry=0x7fc7f8a0d270) at imapc-connection.c:664 No locals. #3 0x7fc7f6f7c6f4 in imapc_connection_input_untagged (conn=conn@entry=0x7fc7f8a0d270) at imapc-connection.c:908 This backtrace unfortunately doesn't make it very clear what the problem is. I'd guess it's trying to use already freed memory (one such bug was already fixed).
Re: [Dovecot] lmtp proxy logging
On 10.10.2012, at 17.37, Jack Bates wrote: The logging on lmtp and lmtp proxy is pretty limited from what I can see. It seems to handle errors, Connect, Disconnect, and in the case of lmtp delivery, it logs where an email is saved to. The lmtp may be enough, connect, saved user, saved user..., disconnect, but I was curious if it is worth while to add more info logging for the proxy, primarily which recipients are sent to which proxy. I was thinking of local patching it, but I'll generate up something more inline with official code if it is desired. My thought is to show 1 entry for each recipient, and the destination server chosen. If I recall correctly, the proxy code doesn't actually listen in on the conversation, so logging results would probably complicate the code. I don't think this would be difficult to implement. Probably just a few lines of code. Yeah, could be useful.
Re: [Dovecot] [PATCH] dovadm plugins underlinking
On 10.10.2012, at 15.17, Natanael Copa wrote: On Wed, Oct 10, 2012 at 12:22 PM, Timo Sirainen t...@iki.fi wrote: On 10.10.2012, at 13.00, Natanael Copa wrote: Running doveadm on Alpine Linux will show various underlinking errors: With doveadm the similar behavior is done for pretty much the same reason. doveadm tries to load all of the plugins, and it intentionally fails for those that fail to load due to not being enabled in mail_plugins setting. doveadm acl command shouldn't work if acl plugin isn't enabled. Why does it need to load all the plugins? Why not only try to load those who are enabled? doveadm has two types of commands: mail commands and non-mail commands. The mail_plugins can add new mail features, and doveadm plugins can add more doveadm commands, which use the new mail features. But doveadm can also have plugins that add non-mail commands, which don't need anything in mail_plugins. So both cases would need to work..
Re: [Dovecot] dovecot cores
Timo Sirainen wrote the following on 12.10.2012 14:34: On 12.10.2012, at 10.02, dove...@freakout.de wrote: According to Timo Sirainen: Simply specifying -I or -L paths doesn't link with libmysql. What exactly did you use for CPPFLAGS/LDFLAGS/configure? ok - i specified: CFLAGS=-I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include LDFLAGS=-L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib -lmysqlclient -lmysqlclient shouldn't be in LDFLAGS. if i omit -lmysqlclient (seems to be the reason for the hassle) i get: libtool: link: gcc4 -std=gnu99 -g -I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/opt/ssl/include -o .libs/auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-postfix-connection.o mech-otp-skey-common.o mech-plain-common.o auth-penalty.o auth-request.o auth-request-handler.o auth-settings.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-dict.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-external.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-scram-sha1.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-dict.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o passdb-static.o passdb-template.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-dict.o userdb-nss.o userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o userdb-template.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic -L/opt /zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib libpassword.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../../src/lib-sql/.libs/libsql.a ../../src/lib-dovecot/.libs/libdovecot.so -lcrypt -ldl -Wl,-rpath -Wl,/opt/dovecot/lib ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_connect': /usr/src/rpm/BUILD/dovecot-2.1.10/src/lib-sql/driver-mysql.c:83: undefined reference to `mysql_options' ... tons of other undefined reference to mysqlclient /usr/src/rpm/BUILD/dovecot-2.1.10/src/lib-sql/driver-mysql.c:470: undefined reference to `mysql_error' collect2: error: ld returned 1 exit status I'm not sure why it's doing that. It really shouldn't. You could try SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient if one of them helps. Axel, please let us know whether one of these works: SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient. Since Dovecot 1.x all the way up to 2.1.10 I had trouble with this and only by putting -lmysqlclient in LDFLAGS as described before Dovecot compiles without error (Ubuntu Server 8.04 10.04, mySQL in a non-standart location).
Re: [Dovecot] dovecot cores
On 12.10.2012, at 10.45, Tamsy wrote: Axel, please let us know whether one of these works: SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient. Since Dovecot 1.x all the way up to 2.1.10 I had trouble with this and only by putting -lmysqlclient in LDFLAGS as described before Dovecot compiles without error (Ubuntu Server 8.04 10.04, mySQL in a non-standart location). If you run configure without adding the -lmysqlclient, what do you get with: egrep -i 'mysql|auth_libs|sql_libs' Makefile I guess the problem is that I shouldn't have copypasted the mysql detection code from php, and configure somehow passes successfully without actually setting any MYSQL_LIBS..
Re: [Dovecot] dovecot cores
Timo Sirainen wrote the following on 12.10.2012 14:50: On 12.10.2012, at 10.45, Tamsy wrote: Axel, please let us know whether one of these works: SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient. Since Dovecot 1.x all the way up to 2.1.10 I had trouble with this and only by putting -lmysqlclient in LDFLAGS as described before Dovecot compiles without error (Ubuntu Server 8.04 10.04, mySQL in a non-standart location). If you run configure without adding the -lmysqlclient, what do you get with: egrep -i 'mysql|auth_libs|sql_libs' Makefile I guess the problem is that I shouldn't have copypasted the mysql detection code from php, and configure somehow passes successfully without actually setting any MYSQL_LIBS.. Just ran configure without adding the -lmysqlclient (CPPFLAGS='-I/opt/mysql/include/mysql' LDFLAGS='-L/opt/mysql/lib/mysql -lz -lcrypt -lnsl -lm' ./configure --with-mysql egrep -i 'mysql|auth_libs|sql_libs' Makefile says: AUTH_LIBS = CPPFLAGS = -I/opt/mysql/include/mysql LDFLAGS = $(NOPLUGIN_LDFLAGS) -L/opt/mysql/lib/mysql -lz -lcrypt -lnsl -lm MYSQL_CFLAGS = MYSQL_CONFIG = NO MYSQL_LIBS = PGSQL_LIBS = SQL_LIBS = sql_drivers = mysql scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-gssapi=auto --with-libwrap=auto; \ configure runs without error but make ends with: snip ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_result_get_error': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:469: undefined reference to `mysql_errno' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:470: undefined reference to `mysql_error' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_result_get_field_value_binary': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:436: undefined reference to `mysql_fetch_lengths' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_result_fetch_fields': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:383: undefined reference to `mysql_num_fields' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:384: undefined reference to `mysql_fetch_fields' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_result_next_row': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:366: undefined reference to `mysql_fetch_row' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:370: undefined reference to `mysql_errno' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_result_free': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:351: undefined reference to `mysql_free_result' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_do_query': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:233: undefined reference to `mysql_query' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:237: undefined reference to `mysql_errno' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_query_s': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:315: undefined reference to `mysql_affected_rows' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:316: undefined reference to `mysql_store_result' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:321: undefined reference to `mysql_next_result' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:332: undefined reference to `mysql_free_result' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:327: undefined reference to `mysql_errno' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_exec': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:284: undefined reference to `mysql_error' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_escape_string': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:274: undefined reference to `mysql_real_escape_string' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:268: undefined reference to `mysql_escape_string' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_connect': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:83: undefined reference to `mysql_options' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:87: undefined reference to `mysql_options' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:92: undefined reference to `mysql_ssl_set' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:110: undefined reference to `mysql_real_connect' /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:123: undefined reference to `mysql_error' ../../src/lib-sql/.libs/libsql.a(driver-mysql.o): In function `driver_mysql_deinit_v': /usr/local/src/dovecot-2.1.10/src/lib-sql/driver-mysql.c:226: undefined reference to `mysql_close'
Re: [Dovecot] dovecot cores
According to Tamsy: Timo Sirainen wrote the following on 12.10.2012 14:34: On 12.10.2012, at 10.02, dove...@freakout.de wrote: According to Timo Sirainen: Simply specifying -I or -L paths doesn't link with libmysql. What exactly did you use for CPPFLAGS/LDFLAGS/configure? ok - i specified: CFLAGS=-I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include LDFLAGS=-L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib -lmysqlclient -lmysqlclient shouldn't be in LDFLAGS. I'm not sure why it's doing that. It really shouldn't. You could try SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient if one of them helps. Axel, please let us know whether one of these works: SQL_LIBS=-lmysqlclient or AUTH_LIBS=-lmysqlclient or MYSQL_LIBS=-lmysqlclient. Since Dovecot 1.x all the way up to 2.1.10 I had trouble with this and only by putting -lmysqlclient in LDFLAGS as described before Dovecot compiles without error (Ubuntu Server 8.04 10.04, mySQL in a non-standart location). SQL_LIBS=-lmysqlclient = not working AUTH_LIBS=-lmysqlclient = not working MYSQL_LIBS=-lmysqlclient \ LDFLAGS=-L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib \ ./configure --prefix=%{_prefix} \ --sysconfdir=%{_etcdir} --mandir=%{_mandir} --docdir=%{_docdir} --libexecdir=%{_sbindir} --datadir=%{_prefix} \ --with-rundir=/var/dovecot/run \ --with-statedir=/var/dovecot/state \ --with-mysql = WORKING BUT: [axel@joe rpm]$ ldd BUILD/dovecot-2.1.10-root/opt/dovecot-2.1.10-5/sbin/dovecot libdovecot.so.0 = /opt/dovecot/lib/libdovecot.so.0 (0x00993000) libgcc_s.so.1 = /opt/gcc4/lib/libgcc_s.so.1 (0x0092c000) libc.so.6 = /lib/libc.so.6 (0x00ebf000) ! libmysqlclient.so.18 = /opt/mysql/lib/libmysqlclient.so.18 (0x001cc000) libdl.so.2 = /lib/libdl.so.2 (0x00ae3000) libssp.so.0 = /opt/ssp/lib/libssp.so.0 (0x0057b000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x002c6000) libstrings.so = /opt/mysql/lib/libstrings.so (0x0057e000) libz.so.1 = /opt/zlib/lib/libz.so.1 (0x0011) libpthread.so.0 = /lib/libpthread.so.0 (0x00b08000) libm.so.6 = /lib/libm.so.6 (0x00135000) dovecot still seems to be linked with the mysqlclient! i have just compiled - not tried the binaries - the core dump occurs only in the night! If you run configure without adding the -lmysqlclient, what do you get with: egrep -i 'mysql|auth_libs|sql_libs' Makefile [axel@joe dovecot-2.1.10]$ egrep -i 'mysql|auth_libs|sql_libs' Makefile AUTH_LIBS = -lcrypt -lmysqlclient CFLAGS = -std=gnu99 -g -I/opt/zlib/include -I/opt/ssl/include -I/opt/mysql/include -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -I/opt/ssl/include LDFLAGS = $(NOPLUGIN_LDFLAGS) -L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib MYSQL_CFLAGS = MYSQL_CONFIG = NO MYSQL_LIBS = -lmysqlclient PGSQL_LIBS = SQL_LIBS = -lmysqlclient sql_drivers = mysql scan-build -o scan-reports ../configure --with-ldap=auto --with-pgsql=auto --with-mysql=auto --with-sqlite=auto --with-solr=auto --with-gssapi=auto --with-libwrap=auto; \ Cheers Axel
[Dovecot] [sieve] - counting headers
In some of my maildrop filters I have rules with weighted scoring[1], but only to count headers (for example to count Received: header) ie. all these rules are of form /pattern/:h,1 Can dovecot sieve do this? KJ [1] http://www.courier-mta.org/maildrop/maildropfilter.html -- http://blogdebart.pl/2012/06/24/hiena/ Wiesz, tryb tekstowy w Linuksie ma się tak do DOSu jak F-117A do paralotni. (c) Dawid Kuroczko
[Dovecot] INBOX.INBOX.Sent causes problems in 2.0
Hi, we have our namespace rooted at INBOX.. Sometimes, users have folders like INBOX.INBOX.Sent or INBOX.INBOX.INBOX.Sent. I do not know why these folders are created; I suspect it is due to buggy MUAs. If a mailbox like INBOX.INBOX.Sent exists, then in some cases Dovecot counts all messages in INBOX twice. This behavior can be demonstrated as follows: 1) Create a folder named INBOX.INBOX.Sent (using the IMAP CREATE command) 2) Save a message to INBOX (in my example the message is 7 MB) 3) dovecot-quota contains: priv/quota/storage 7129025 priv/quota/messages 1 4) doveadm quota recalc -u user1 5) Now dovecot-quota contains priv/quota/storage 14258050 priv/quota/messages 2 I.e. the user will experience that his quota fills up very fast. doveadm -f flow fetch -u user1 'mailbox guid' ALL prints: mailbox=INBOX guid=040ce73645177850497d40c59ffc mailbox=INBOX guid=040ce73645177850497d40c59ffc However, doveadm -f flow fetch -u user1 'mailbox guid' mailbox INBOX prints the message only once: mailbox=INBOX guid=040ce73645177850497d40c59ffc How can we prevent this kind of confusion? What I'd like most is prevent the creation of these weird folders. Most MUAs have problems listing them properly, especially if both INBOX.Sent and INBOX.INBOX.Sent exist. Dovecot 2.1 does not seem to count anything twice. Cheers, Christoph Config: # 2.0.21: /usr/local/dovecot/etc/dovecot/dovecot.conf doveconf: Warning: service auth { client_limit=4096 } is lower than required under max. load (6224) # OS: Linux 2.6.32-42-server x86_64 Ubuntu 10.04.4 LTS disable_plaintext_auth = no mail_gid = vmail mail_location = mdbox:~/mail mail_plugins = quota mail_uid = vmail namespace default { inbox = yes location = prefix = INBOX. separator = . type = private } passdb { args = scheme=CRYPT username_format=%u /usr/local/dovecot/etc/dovecot/users driver = passwd-file } plugin { quota = dict:ROOT::file:%h/dovecot-quota quota_rule = *:storage=5G } protocols = imap pop3 service auth { unix_listener auth-userdb { group = vmail mode = 0660 } } service imap { process_limit = 5000 } ssl_cert = /etc/ssl/certs/dovecot.pem ssl_key = /etc/ssl/private/dovecot.pem userdb { args = /usr/local/dovecot/etc/dovecot/users driver = passwd-file } protocol imap { imap_client_workarounds = tb-extra-mailbox-sep mail_max_userip_connections = 20 mail_plugins = quota imap_quota } And the contents of the users file: user1:{plain}secret:::user1:/mail/users/user1:: -- Christoph Bußenius Rechnerbetriebsgruppe der Fakultäten Informatik und Mathematik Technische Universität München +49 89-289-18519 Raum 00.05.040 Boltzmannstr. 3 Garching
[Dovecot] /var/run/dovecot/auth-userdb failed
Hi, I work on test server and if I send an email on log i read lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=8135(vmail) egid=8135(vmail) missing +r perm: /var/run/dovecot/auth-userdb, euid is not dir owner) This is my dovecot.conf: auth_mechanisms = plain login info_log_path = /var/log/dovecot listen = 0.0.0.0 log_path = /var/log/dovecot login_greeting = Dovecot IMAP Server ready. mail_location = maildir:/home/vmail/%d/%u mail_privileged_group = vmail passdb { args = /etc/dovecot/dovecot-ldap.conf.ext.fabry driver = ldap } protocols = pop3 sieve imap service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-userdb { mode = 0600 user = root group = root } } ssl_cert = /etc/pki/dovecot/certs/dovecot.pem ssl_key = /etc/pki/dovecot/private/dovecot.pem userdb { driver = ldap args = /etc/dovecot/dovecot-ldap.conf.ext.fabry } lda_original_recipient_header = X-Original-To lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes protocol lda { mail_plugins = $mail_plugins sieve info_log_path = /var/log/dovecot-lda.log } managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date plugin { sieve_dir = /home/vmail/%d/%u/sieve sieve = /home/vmail/%d/%u/sieve/.dovecot.sieve } What did I do wrong? -- View this message in context: http://dovecot.2317879.n4.nabble.com/var-run-dovecot-auth-userdb-failed-tp38093.html Sent from the Dovecot mailing list archive at Nabble.com.
[Dovecot] Help!
HELP! I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. Thanks, Justin
Re: [Dovecot] Help!
On 10/12/2012 1:09 PM, Justin Vore wrote: HELP! I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. Thanks, Justin I have found Thunderbird's automatic setting detection mechanism to be rather unreliable. Try entering the settings manually. -Ben
Re: [Dovecot] Help!
Den 12.10.2012 19:09, skrev Justin Vore: HELP! I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. This explains how to set up autoconfigure in TB. You need a DNS record and a little work on a webhost. https://developer.mozilla.org/en-US/docs/Thunderbird/Autoconfiguration Arne -- Arne K. Haaje http://www.drlinux.no/ ::: a...@drlinux.no LinkedIn: http://no.linkedin.com/pub/arne-haaje/27/189/bb
Re: [Dovecot] Help!
Am 12.10.2012 19:09, schrieb Justin Vore: I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. Enter settings manually or set up automx (http://www.automx.org/). Regards, Tobias Hachmer
Re: [Dovecot] dovecot cores
On 12.10.2012, at 11.10, dove...@freakout.de wrote: MYSQL_LIBS=-lmysqlclient \ LDFLAGS=-L/opt/zlib/lib -L/opt/ssl/lib -L/opt/mysql/lib \ ./configure --prefix=%{_prefix} \ --sysconfdir=%{_etcdir} --mandir=%{_mandir} --docdir=%{_docdir} --libexecdir=%{_sbindir} --datadir=%{_prefix} \ --with-rundir=/var/dovecot/run \ --with-statedir=/var/dovecot/state \ --with-mysql = WORKING I think this is the correct fix for this. Basically same as what I committed now: http://hg.dovecot.org/dovecot-2.1/rev/c8d55ba25f39 BUT: [axel@joe rpm]$ ldd BUILD/dovecot-2.1.10-root/opt/dovecot-2.1.10-5/sbin/dovecot libdovecot.so.0 = /opt/dovecot/lib/libdovecot.so.0 (0x00993000) libgcc_s.so.1 = /opt/gcc4/lib/libgcc_s.so.1 (0x0092c000) libc.so.6 = /lib/libc.so.6 (0x00ebf000) ! libmysqlclient.so.18 = /opt/mysql/lib/libmysqlclient.so.18 (0x001cc000) libdl.so.2 = /lib/libdl.so.2 (0x00ae3000) libssp.so.0 = /opt/ssp/lib/libssp.so.0 (0x0057b000) /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x002c6000) libstrings.so = /opt/mysql/lib/libstrings.so (0x0057e000) libz.so.1 = /opt/zlib/lib/libz.so.1 (0x0011) libpthread.so.0 = /lib/libpthread.so.0 (0x00b08000) libm.so.6 = /lib/libm.so.6 (0x00135000) dovecot still seems to be linked with the mysqlclient! Maybe the old LDFLAGS was cached somehow? Or maybe the rpm build does something strange? I don't see how that could happen otherwise.
[Dovecot] dsync ignores ssh-agent
I use IMAP over SSH, in pre-auth. I wanted to use dsync to offline mail to my laptop. dsync v2.1.10 would always ask for my SSH key/passphrase, ignoring ssh-agent. The culprit is the env_clean() in the stack below. Reading the source, I saw DOVECOT_PRESERVE_ENVS. When used as follows in my script it enables dsync to find my ssh-agent: export DOVECOT_PRESERVE_ENVS=SSH_AGENT_PID SSH_AUTH_SOCK dsync mirror ssh imap.example.com /home/mark/opt/dovecot/bin/dsync and it now works without asking for password every time. I'm posting here so that anyone else googling for the same problem will hopefully find this, as I couldn't find anything about this in the docs. Also I'm interested in why dsync so aggressively cleans the environment; I tried a naive removal of env_clean() but this breaks basic functions. With this dsync is working very well for offline mail -- combined with alpine and a local exim for the outbound queue :) Thanks -- Mark Breakpoint 2, env_clean () at env-util.c:59 59 if (clearenv() 0) (gdb) bt #0 env_clean () at env-util.c:59 #1 0xb7df10fc in master_service_env_clean () at master-service.c:454 #2 0xb7df26d4 in master_service_exec_config (service=0x809e7d0, input=0xb7e4) at master-service-settings.c:103 #3 0xb7df29be in config_exec_fallback (service=0x809e7d0, input=0xb7e4) at master-service-settings.c:153 #4 0xb7df2b65 in master_service_open_config (service=0x809e7d0, input=0xb7e4, path_r=0xb780, error_r=0xb7d8) at master-service-settings.c:206 #5 0xb7df3130 in master_service_settings_read (service=0x809e7d0, input=0xb7e4, output_r=0xb7dc, error_r=0xb7d8) at master-service-settings.c:345 #6 0x0805c672 in doveadm_read_settings () at doveadm.c:275 #7 0x0805c7d6 in main (argc=5, argv=0x809e1c0) at doveadm.c:342
Re: [Dovecot] Help!
This has nothing to do with dovecot or with any server. Thunderbird tries to guess settings such as your IMAP and SMTP server addresses, ports, TLS, authentication scheme, etc. Sometimes none of the guess attempts matches your settings. That's not an actual problem. Just enter the settings manually. If your priority is to make Thunderbird quickly and automatically configure your email accounts, read here https://wiki.mozilla.org/Thunderbird:Autoconfiguration Note that this is Thunderbird-specific, Microsoft Outlook, Blackberry etc. each have their own autoconfiguration schemes. On 10/12/2012 01:09 PM, Justin Vore wrote: HELP! I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. Thanks, Justin
Re: [Dovecot] Help!
Am 13.10.2012 02:45, schrieb Gedalya: This has nothing to do with dovecot or with any server. Thunderbird tries to guess settings such as your IMAP and SMTP server addresses, ports, TLS, authentication scheme, etc. Sometimes none of the guess attempts matches your settings. That's not an actual problem. Just enter the settings manually. If your priority is to make Thunderbird quickly and automatically configure your email accounts, read here https://wiki.mozilla.org/Thunderbird:Autoconfiguration Note that this is Thunderbird-specific, Microsoft Outlook, Blackberry etc. each have their own autoconfiguration schemes. you may use http://www.automx.org/ for that On 10/12/2012 01:09 PM, Justin Vore wrote: HELP! I have installed sendmail, dovecot, and squirrel mail. The squirrel mail portion of it works just fine, but I would like to have Mozilla Thunderbird as a client. Whenever I try and connect to the server it says Thunderbird failed to find the settings for your email account. We do have an MX record in DNS pointing to our server. We are using Ubuntu 12.0.4.1, and have Dovecot 2.2.6 sendmail version 8.14.4-2ubuntu2 We are doing this for a class project and it is due by Tuesday 10/16/2012.. Thanks, Justin -- Best Regards MfG Robert Schetterer