Re: source code doesn't compile
Citeren Ruben Safir : Its not older than stretch. It is based on opensuse -- how could it behvave so differently with regard to auth As the maintainer of a couple of openSUSE packages (not Dovecot though), may I ask which openSUSE version it was based off? So that we can get an idea of what we're looking at in terms of versions of packages installed. Anything older than 12.2 is probably going to be a lot of work, as that was the first one that shipped openssl >= 1.01.
Re: source code doesn't compile
> On 12/01/2022 08:20 Ruben Safir wrote: > > > On 1/12/22 01:06, Aki Tuomi wrote: > > I tried to reproduce this issue on debian stretch, but it worked just fine. > > I suspect your distro is just too old for 2.3. Can you see if 2.2.36 works > > better? > > > something in the autoconf config caused it to try to put auth and the > auth directory in the same local.. that should narrow the issue to a > couple of lines of config code. I am not an expert in autoconf > > -- There is limited amount of interest in trying to fix old operating systems, unfortunately. Especially as there is no such thing as "couple of lines of autoconf code". Aki
Re: source code doesn't compile
> On 12/01/2022 08:18 Ruben Safir wrote: > > > On 1/12/22 01:06, Aki Tuomi wrote: > > I tried to reproduce this issue on debian stretch, but it worked just fine. > > I suspect your distro is just too old for 2.3. Can you see if 2.2.36 works > > better? > > > Its not older than stretch. It is based on opensuse -- how could it > behvave so differently with regard to auth > > where did yours put the auth directory and the auth file? > > /bin/mkdir -p '/usr/local/include/dovecot' /usr/bin/install -c -m 644 auth.h auth-cache.h auth-client-connection.h auth-common.h auth-master-connection.h mech-otp-common.h mech-plain-common.h mech-digest-md5-private.h mech-scram.h auth-penalty.h auth-policy.h auth-request.h auth-request-handler.h auth-request-handler-private.h auth-request-stats.h auth-request-var-expand.h auth-settings.h auth-stats.h auth-fields.h auth-token.h auth-worker-client.h auth-worker-server.h db-dict.h db-ldap.h db-sql.h db-passwd-file.h db-checkpassword.h db-oauth2.h mech.h mycrypt.h passdb.h passdb-blocking.h passdb-cache.h passdb-template.h password-scheme.h userdb.h userdb-blocking.h userdb-template.h '/usr/local/include/dovecot' /bin/mkdir -p '/usr/local/lib/dovecot/old-stats' /bin/bash ../../libtool --mode=install /usr/bin/install -c libstats_auth.la '/usr/local/lib/dovecot/old-stats' libtool: warning: relinking 'libstats_auth.la' libtool: install: (cd /home/build/dovecot-2.3.17.1/src/auth; /bin/bash "/home/build/dovecot-2.3.17.1/libtool" --tag CC --mode=relink gcc -std=gnu99 -g -O2 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -mfunction-return=keep -mindirect-branch=keep -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2 -module -avoid-version -o libstats_auth.la -rpath /usr/local/lib/dovecot/old-stats auth-stats.lo ../../src/lib-dovecot/libdovecot.la -export-dynamic -ldl ) libtool: relink: gcc -shared -fPIC -DPIC .libs/auth-stats.o -Wl,-rpath -Wl,/usr/local/lib/dovecot -L/usr/local/lib/dovecot -ldovecot -ldl -g -O2 -fstack-protector-strong -mfunction-return=keep -mindirect-branch=keep -Wl,-soname -Wl,libstats_auth.so -o .libs/libstats_auth.so libtool: install: /usr/bin/install -c .libs/libstats_auth.soT /usr/local/lib/dovecot/old-stats/libstats_auth.so libtool: install: /usr/bin/install -c .libs/libstats_auth.lai /usr/local/lib/dovecot/old-stats/libstats_auth.la libtool: install: /usr/bin/install -c .libs/libstats_auth.a /usr/local/lib/dovecot/old-stats/libstats_auth.a libtool: install: chmod 644 /usr/local/lib/dovecot/old-stats/libstats_auth.a libtool: install: ranlib /usr/local/lib/dovecot/old-stats/libstats_auth.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib/dovecot/old-stats Aki
Re: source code doesn't compile
On 1/12/22 01:06, Aki Tuomi wrote: > I tried to reproduce this issue on debian stretch, but it worked just fine. I > suspect your distro is just too old for 2.3. Can you see if 2.2.36 works > better? something in the autoconf config caused it to try to put auth and the auth directory in the same local.. that should narrow the issue to a couple of lines of config code. I am not an expert in autoconf -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Re: source code doesn't compile
On 1/12/22 01:06, Aki Tuomi wrote: > I tried to reproduce this issue on debian stretch, but it worked just fine. I > suspect your distro is just too old for 2.3. Can you see if 2.2.36 works > better? Its not older than stretch. It is based on opensuse -- how could it behvave so differently with regard to auth where did yours put the auth directory and the auth file? -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Re: source code doesn't compile
> On 12/01/2022 07:46 Ruben Safir wrote: > > > On 1/12/22 00:26, Aki Tuomi wrote: > > What ./configure line did you use? Also, which os/distro is this? > > I just used ./configure > > I thought of using a prefix to root, but changed my mind and decided to > just let it install into /usr/local/, especially since I had the systems > ancient dovecott still up and running. > > This is an old RPM based distro on an appliance. > > -- I tried to reproduce this issue on debian stretch, but it worked just fine. I suspect your distro is just too old for 2.3. Can you see if 2.2.36 works better? Also, to compile git master, you are required to have several tools which might not be available on older distributions, so you should stick to the tarballs. -- Aki
Re: [External] Re: source code doesn't compile
On 1/12/2022 12:14 AM, Ruben Safir wrote: --2022-01-12 00:10:41--https://www.dovecot.org/tmp/wiki2-export.tar.gz Resolvingwww.dovecot.org (www.dovecot.org)... 94.237.12.234, 2a04:3545:1000:720:acc1:5bff:fe5e:4e9 Connecting towww.dovecot.org (www.dovecot.org)|94.237.12.234|:443... connected. OpenSSL: error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version Unable to establish SSL connection Looks to me like your installation is too old and you're unable to connect with the ciphers/ssl connection for the download for at least one of the problems. Recommend you look at what happens on the command line when you do just wget -v -d https://www.dovecot.org/tmp/wiki2-export.tar.gz ? I'm going to predict you get Unable to establish SSL connection and likely you have some old versions of wget and perhaps openssl as well that don't support TLS v1.1+ or SNI or something similar. Upgrade your openssl and wget/curl/fetch/whatever tool is downloading the files. Regards, KAM
Re: source code doesn't compile
On 1/12/22 00:26, Aki Tuomi wrote: > What ./configure line did you use? Also, which os/distro is this? I just used ./configure I thought of using a prefix to root, but changed my mind and decided to just let it install into /usr/local/, especially since I had the systems ancient dovecott still up and running. This is an old RPM based distro on an appliance. -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Re: source code doesn't compile
> On 12/01/2022 05:19 Ruben Safir wrote: > > > I downloaded the dovecot source and it doesn't compile. The install > script fails in auth because it makes a file and then tries to make a > directory over it > > make[2]: Entering directory '/home/ruben/src/dovecot-2.3.17.1/src/auth' > make[3]: Entering directory > '/home/ruben/src/dovecot-2.3.17.1/src/auth' > /usr/bin/mkdir -p '/usr/local/lib/dovecot' >/bin/sh ../../libtool --mode=install /usr/bin/install -c > auth checkpassword-reply '/usr/local/lib/dovecot' > libtool: warning: 'libstats_auth.la' has not been installed > in '/usr/local/lib/dovecot/old-stats' > libtool: install: /usr/bin/install -c .libs/auth > /usr/local/lib/dovecot/auth > libtool: install: /usr/bin/install -c > .libs/checkpassword-reply /usr/local/lib/dovecot/checkpassword-reply > /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth' > > I am running an older version of dovecott and would really like to > upgrade it and there is no package for this linux version > > What ./configure line did you use? Also, which os/distro is this? Aki
Re: source code doesn't compile
On Tue, Jan 11, 2022 at 10:56:25PM -0500, dove...@ptld.com wrote: > > I am running an older version of dovecott and would really like to > > upgrade it and there is no package for this linux version > > > Not sure what OS you are using, but in case you didn't know, dovecot > maintains their own repos for popular OS's allowing you to use your package > manager to install the newest version. > >https://repo.dovecot.org/ I needed to compile it. It should compile, FWIW. Thank you for checking in with that (expected but not useful) answer. As for the next follow up, "why do I insist on compiling it, you must be ignorant..." the answer is because I have to compile it because I have to and why is not important for this conversation. If you feel discussing why the source doesn't compile is a waste of your time, I understand, but that is the problem I am facing and the problem I am hoping to fix. It doesn't compile from github or from the tar ball. In the case of the tarball, it steps on itself trying to create a directory where a file was just created under 'auth' So there seems to be an error in the makefile resulting from autoconf. This is the autogen.sh response ./autogen.sh --2022-01-12 00:10:41-- https://www.dovecot.org/tmp/wiki2-export.tar.gz Resolving www.dovecot.org (www.dovecot.org)... 94.237.12.234, 2a04:3545:1000:720:acc1:5bff:fe5e:4e9 Connecting to www.dovecot.org (www.dovecot.org)|94.237.12.234|:443... connected. OpenSSL: error:1409442E:SSL routines:SSL3_READ_BYTES:tlsv1 alert protocol version Unable to establish SSL connection. tar (child): wiki2-export.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now Failed to uncompress wiki docs I would think it is in the interest of the project that the source code should compile. Otherwise new hackers who might want to contribute, amoung other things, won't be able to get off of ground 0 with the code base. Reuvain -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Re: source code doesn't compile
> I am running an older version of dovecott and would really like to > upgrade it and there is no package for this linux version Not sure what OS you are using, but in case you didn't know, dovecot maintains their own repos for popular OS's allowing you to use your package manager to install the newest version. https://repo.dovecot.org/
source code doesn't compile
I downloaded the dovecot source and it doesn't compile. The install script fails in auth because it makes a file and then tries to make a directory over it make[2]: Entering directory '/home/ruben/src/dovecot-2.3.17.1/src/auth' make[3]: Entering directory '/home/ruben/src/dovecot-2.3.17.1/src/auth' /usr/bin/mkdir -p '/usr/local/lib/dovecot' /bin/sh ../../libtool --mode=install /usr/bin/install -c auth checkpassword-reply '/usr/local/lib/dovecot' libtool: warning: 'libstats_auth.la' has not been installed in '/usr/local/lib/dovecot/old-stats' libtool: install: /usr/bin/install -c .libs/auth /usr/local/lib/dovecot/auth libtool: install: /usr/bin/install -c .libs/checkpassword-reply /usr/local/lib/dovecot/checkpassword-reply /usr/bin/mkdir -p '/usr/local/lib/dovecot/auth' I am running an older version of dovecott and would really like to upgrade it and there is no package for this linux version -- So many immigrant groups have swept through our town that Brooklyn, like Atlantis, reaches mythological proportions in the mind of the world - RI Safir 1998 http://www.mrbrklyn.com DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002 http://www.nylxs.com - Leadership Development in Free Software http://www2.mrbrklyn.com/resources - Unpublished Archive http://www.coinhangout.com - coins! http://www.brooklyn-living.com Being so tracked is for FARM ANIMALS and extermination camps, but incompatible with living as a free human being. -RI Safir 2013
Re: FTS flatcurve not index messages when SEARCH run on Virtual Mailboxes
> On 01/11/2022 9:36 AM Alessio Cecchi wrote: > > > When I SEARCH on Virtual/All result are empty or contain only messages from > previously index mailboxes. I notice also that when SEARCH on Virtual/All > directory "fts-flatcurve" is created but is empty: > Can you open a ticket at https://github.com/slusarz/dovecot-fts-flatcurve/issues? FTS drivers don't require code to handle virtual mailboxes separately, but it is possible that this is hitting a code path in flatcurve that isn't touched with single mailbox queries so there could very well be a bug. michael
Re: FTS flatcurve not index messages when SEARCH run on Virtual Mailboxes
Il 11/01/22 15:27, Aki Tuomi ha scritto: On 11/01/2022 15:21 Alessio Cecchi wrote: Hi, I'm testing FTS flatcurve plugin in order to understand if I can switch from FTS Solr to flatcurve. In my configuration I have enabled Virtual mailboxes and for search in all folders I just SEARCH on Virtual/All folder. I this (virtual) folder is not indexed with FTS Solr Dovecot start to index it (or all real folders). But with FTS flatcurve when I SEARCH on Virtual/All for the first time the indexer process does not start and the search return empty. Only if I run manually "doveadm index -q -u ales...@email.net '*'" flatcurve find messages. Can flatcurve have the same feature as Solr for Virtual mailboxes? Here a sample of my configuration: namespace Virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual prefix = Virtual/ separator = / subscriptions = no } namespace inbox { [...] mailbox virtual/All { comment = All my messages special_use = \All } } # cat /etc/dovecot/virtual/All/dovecot-virtual * all Thanks -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice Hi! plugin { fts_autoindex = yes fts_enforced = yes } probably fixes your issue. Aki Hi Aki, in 90-plugin.conf I have already: fts = flatcurve fts_autoindex = yes fts_enforced = yes (with fts_solr I'm using body instead and works fine) but only when I SEARCH on a specific mailbox index-worker start to index messages. When I SEARCH on Virtual/All result are empty or contain only messages from previously index mailboxes. I notice also that when SEARCH on Virtual/All directory "fts-flatcurve" is created but is empty: # du -sh .Sent/fts-flatcurve/ 20K .Sent/fts-flatcurve/ And only when index/SEARCH run directly on this folder fts-flatcurve is populated: # du -sh .Sent/fts-flatcurve/ 27M .Sent/fts-flatcurve/ I hope that fts-flatcurve will follow the same behavior of fts-solr about dovecot settings. Thanks -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Re: FTS flatcurve not index messages when SEARCH run on Virtual Mailboxes
> On 11/01/2022 15:21 Alessio Cecchi wrote: > > > Hi, > I'm testing FTS flatcurve plugin in order to understand if I can switch from > FTS Solr to flatcurve. > > In my configuration I have enabled Virtual mailboxes and for search in all > folders I just SEARCH on Virtual/All folder. I this (virtual) folder is not > indexed with FTS Solr Dovecot start to index it (or all real folders). > > But with FTS flatcurve when I SEARCH on Virtual/All for the first time the > indexer process does not start and the search return empty. Only if I run > manually "doveadm index -q -u ales...@email.net '*'" flatcurve find messages. > > Can flatcurve have the same feature as Solr for Virtual mailboxes? > Here a sample of my configuration: > namespace Virtual { > hidden = yes > list = no > location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual > prefix = Virtual/ > separator = / > subscriptions = no > } > > namespace inbox { > [...] > mailbox virtual/All { > comment = All my messages > special_use = \All > } > } > > # cat /etc/dovecot/virtual/All/dovecot-virtual > * > all > > > Thanks > > -- > Alessio Cecchi > Postmaster @ http://www.qboxmail.it > https://www.linkedin.com/in/alessice Hi! plugin { fts_autoindex = yes fts_enforced = yes } probably fixes your issue. Aki
FTS flatcurve not index messages when SEARCH run on Virtual Mailboxes
Hi, I'm testing FTS flatcurve plugin in order to understand if I can switch from FTS Solr to flatcurve. In my configuration I have enabled Virtual mailboxes and for search in all folders I just SEARCH on Virtual/All folder. I this (virtual) folder is not indexed with FTS Solr Dovecot start to index it (or all real folders). But with FTS flatcurve when I SEARCH on Virtual/All for the first time the indexer process does not start and the search return empty. Only if I run manually "doveadm index -q -u ales...@email.net '*'" flatcurve find messages. Can flatcurve have the same feature as Solr for Virtual mailboxes? Here a sample of my configuration: namespace Virtual { hidden = yes list = no location = virtual:/etc/dovecot/virtual:INDEX=~/Maildir/virtual prefix = Virtual/ separator = / subscriptions = no } namespace inbox { [...] mailbox virtual/All { comment = All my messages special_use = \All } } # cat /etc/dovecot/virtual/All/dovecot-virtual * all Thanks -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice