Re: [2.3.4] Segmentation faults

2018-11-24 Thread Aki Tuomi


 
 
  
   
  
  
   
On 25 November 2018 at 06:29 Joan Moreau <
j...@grosjo.net> wrote:
   
   

   
   

   
   
Hi
   
   

   
   
THis is the lines I have in my dmesg (see below)
   
   

   
   
In dovecot log , I see:
   
   

   
   
Nov 25 04:26:47 auth-worker: Error: double free or corruption (fasttop)
   
   

   
   
What do to about it ?
   
   

   
   
Using lastest 2.3.4 version
   
   

   
   
Thank you
   
   

   
   

   
   

   
   
[132932.169265] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 aa 36 f5 7a 7f 00
   
   
00 <40> 24 3d f5 7a 7f 00 00 21 80 00 00 00 00 00 00 00 94 16 d6 ee 55
   
   
[134031.969596] auth[27031]: segfault at 55e509612c30 ip
   
   
55e509612c30 sp 7ffeb96dee48 error 15
   
   
[134031.969603] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 3a d3 e4 ef 7f 00
   
   
00 <40> b4 d9 e4 ef 7f 00 00 21 80 00 00 00 00 00 00 00 04 5f 09 e5 55
   
   
[134081.497871] doveadm[28930]: segfault at 7ffe4a16efc8 ip
   
   
7f393841013e sp 7ffe4a16efc0 error 6 in
   
   
libdovecot.so.0.0.0[7f3938363000+e2000]
   
   
[134081.497876] Code: 7d be e9 68 ff ff ff e8 10 4c f5 ff 41 57 41 89 cf
   
   
41 56 49 89 f6 41 55 41 89 fd 31 ff 41 54 55 44 89 c5 53 89 d3 48 83 ec
   
   
58 <4c> 89 4c 24 08 64 48 8b 04 25 28 00 00 00 48 89 44 24 48 31 c0 e8
   
   
[134084.145731] doveadm[29186]: segfault at 7fff1cfdbff8 ip
   
   
7f4376e32ffb sp 7fff1cfdc000 error 6 in
   
   
libdovecot.so.0.0.0[7f4376d86000+e2000]
   
   
[134084.145735] Code: ff 66 0f 1f 44 00 00 e9 9d dc f6 ff 0f 1f 00 48 83
   
   
ec 08 48 83 3d 14 16 0b 00 00 0f 85 d2 76 f6 ff 31 f6 48 8d 3d 05 16 0b
   
   
00  00 54 f5 ff 85 c0 0f 88 e4 76 f6 ff 48 83 c4 08 e9 69 dc f6 ff
   
   
[135453.211242] indexer-worker[2539]: segfault at 7ffec3ba4ff8 ip
   
   
7ffec43fdcff sp 7ffec3ba5000 error 6
   
   
[135453.211245] Code: 95 4c 89 f7 48 89 75 d0 e8 5e fc ff ff 48 8b 75 d0
   
   
e9 56 ff ff ff 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89
   
   
f4 <53> 48 83 ec 08 48 85 ff 0f 84 b3 00 00 00 48 89 fb 4c 8d 35 69 c3
   
   
[135453.730250] indexer-worker[9236]: segfault at 7fffed921ff8 ip
   
   
7fb7c9c4f5b1 sp 7fffed922000 error 6 in
   
   
libdovecot.so.0.0.0[7fb7c9ba2000+e2000]
   
   
[135453.730256] Code: 2e 0f 1f 84 00 00 00 00 00 41 57 4d 89 cf 41 56 41
   
   
89 fe 41 55 49 89 f5 41 54 41 89 d4 55 89 cd 53 48 83 ec 08 4c 8b 4c 24
   
   
40  6a fb ff ff 85 c0 7e 4f 48 8b 05 7f f9 0a 00 be 38 00 00 00 48
   
   
[135796.171575] auth[11121]: segfault at 555f8645cc30 ip
   
   
555f8645cc30 sp 7ffcbb510868 error 15
   
   
[135796.171586] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 ba ed 38 b7 7f 00
   
   
00 <40> 34 f4 38 b7 7f 00 00 21 80 00 00 00 00 00 00 00 a4 43 86 5f 55
   
   
[136710.562003] auth[17828]: segfault at 563443604c30 ip
   
   
563443604c30 sp 7ffc1aa8b498 error 15
   
   
[136710.562013] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 fa 48 da d5 7f 00
   
   
00 <40> 74 4f da d5 7f 00 00 21 80 00 00 00 00 00 00 00 24 5e 43 34 56
   
   
[138331.686718] auth[31046]: segfault at 55b27bc63c30 ip
   
   
55b27bc63c30 sp 7ffd5d5b9298 error 15
   
   
[138331.686721] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 9a 08 17 cd 7f 00
   
   
00 <40> 14 0f 17 cd 7f 00 00 21 80 00 00 00 00 00 00 00 14 c4 7b b2 55
   
   
[138521.070485] auth[32481]: segfault at 556e05197c30 ip
   
   
556e05197c30 sp 7ffe87217c08 error 15
   
   
[138521.070487] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 aa a7 20 3c 7f 00
   
   
00 <40> 24 ae 20 3c 7f 00 00 21 80 00 00 00 00 00 00 00 54 17 05 6e 55
   
   
[138782.544700] auth[2408]: segfault at 5570d3e46c30 ip 5570d3e46c30
   
   
sp 7ffc9118a5e8 error 15
   
   
[138782.544709] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
   
   
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 da fc 71 11 7f 00
   
   
00 <40> 54 03 72 11 7f 00 00 21 80 00 00 00 00 00 00 00 44 e2 d3 70 55
   
   
[139113.225511] indexer-worker[3785]: segfault at 7ffe49316ff8 ip
   
   
7ffe49ba7cff sp 7ffe49317000 error 6
   
   
[139113.225514] Code: 95 4c 89 f7 48 89 75 d0 e8 5e fc ff ff 48 8b 75 d0
   
   
e9 56 

[2.3.4] Segmentation faults

2018-11-24 Thread Joan Moreau
Hi 

THis is the lines I have in my dmesg  (see below) 

In dovecot log , I see: 

Nov 25 04:26:47 auth-worker: Error: double free or corruption (fasttop) 

What do to about it ? 

Using lastest 2.3.4 version 

Thank you 

 


[132932.169265] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 aa 36 f5 7a 7f 00
00 <40> 24 3d f5 7a 7f 00 00 21 80 00 00 00 00 00 00 00 94 16 d6 ee 55
[134031.969596] auth[27031]: segfault at 55e509612c30 ip
55e509612c30 sp 7ffeb96dee48 error 15
[134031.969603] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 3a d3 e4 ef 7f 00
00 <40> b4 d9 e4 ef 7f 00 00 21 80 00 00 00 00 00 00 00 04 5f 09 e5 55
[134081.497871] doveadm[28930]: segfault at 7ffe4a16efc8 ip
7f393841013e sp 7ffe4a16efc0 error 6 in
libdovecot.so.0.0.0[7f3938363000+e2000]
[134081.497876] Code: 7d be e9 68 ff ff ff e8 10 4c f5 ff 41 57 41 89 cf
41 56 49 89 f6 41 55 41 89 fd 31 ff 41 54 55 44 89 c5 53 89 d3 48 83 ec
58 <4c> 89 4c 24 08 64 48 8b 04 25 28 00 00 00 48 89 44 24 48 31 c0 e8
[134084.145731] doveadm[29186]: segfault at 7fff1cfdbff8 ip
7f4376e32ffb sp 7fff1cfdc000 error 6 in
libdovecot.so.0.0.0[7f4376d86000+e2000]
[134084.145735] Code: ff 66 0f 1f 44 00 00 e9 9d dc f6 ff 0f 1f 00 48 83
ec 08 48 83 3d 14 16 0b 00 00 0f 85 d2 76 f6 ff 31 f6 48 8d 3d 05 16 0b
00  00 54 f5 ff 85 c0 0f 88 e4 76 f6 ff 48 83 c4 08 e9 69 dc f6 ff
[135453.211242] indexer-worker[2539]: segfault at 7ffec3ba4ff8 ip
7ffec43fdcff sp 7ffec3ba5000 error 6
[135453.211245] Code: 95 4c 89 f7 48 89 75 d0 e8 5e fc ff ff 48 8b 75 d0
e9 56 ff ff ff 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89
f4 <53> 48 83 ec 08 48 85 ff 0f 84 b3 00 00 00 48 89 fb 4c 8d 35 69 c3
[135453.730250] indexer-worker[9236]: segfault at 7fffed921ff8 ip
7fb7c9c4f5b1 sp 7fffed922000 error 6 in
libdovecot.so.0.0.0[7fb7c9ba2000+e2000]
[135453.730256] Code: 2e 0f 1f 84 00 00 00 00 00 41 57 4d 89 cf 41 56 41
89 fe 41 55 49 89 f5 41 54 41 89 d4 55 89 cd 53 48 83 ec 08 4c 8b 4c 24
40  6a fb ff ff 85 c0 7e 4f 48 8b 05 7f f9 0a 00 be 38 00 00 00 48
[135796.171575] auth[11121]: segfault at 555f8645cc30 ip
555f8645cc30 sp 7ffcbb510868 error 15
[135796.171586] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 ba ed 38 b7 7f 00
00 <40> 34 f4 38 b7 7f 00 00 21 80 00 00 00 00 00 00 00 a4 43 86 5f 55
[136710.562003] auth[17828]: segfault at 563443604c30 ip
563443604c30 sp 7ffc1aa8b498 error 15
[136710.562013] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 fa 48 da d5 7f 00
00 <40> 74 4f da d5 7f 00 00 21 80 00 00 00 00 00 00 00 24 5e 43 34 56
[138331.686718] auth[31046]: segfault at 55b27bc63c30 ip
55b27bc63c30 sp 7ffd5d5b9298 error 15
[138331.686721] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 9a 08 17 cd 7f 00
00 <40> 14 0f 17 cd 7f 00 00 21 80 00 00 00 00 00 00 00 14 c4 7b b2 55
[138521.070485] auth[32481]: segfault at 556e05197c30 ip
556e05197c30 sp 7ffe87217c08 error 15
[138521.070487] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 aa a7 20 3c 7f 00
00 <40> 24 ae 20 3c 7f 00 00 21 80 00 00 00 00 00 00 00 54 17 05 6e 55
[138782.544700] auth[2408]: segfault at 5570d3e46c30 ip 5570d3e46c30
sp 7ffc9118a5e8 error 15
[138782.544709] Code: 00 00 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00
00 21 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 20 da fc 71 11 7f 00
00 <40> 54 03 72 11 7f 00 00 21 80 00 00 00 00 00 00 00 44 e2 d3 70 55
[139113.225511] indexer-worker[3785]: segfault at 7ffe49316ff8 ip
7ffe49ba7cff sp 7ffe49317000 error 6
[139113.225514] Code: 95 4c 89 f7 48 89 75 d0 e8 5e fc ff ff 48 8b 75 d0
e9 56 ff ff ff 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89
f4 <53> 48 83 ec 08 48 85 ff 0f 84 b3 00 00 00 48 89 fb 4c 8d 35 69 c3
[139113.733885] indexer-worker[5483]: segfault at 7ffcdc00efb8 ip
7fa68292a13e sp 7ffcdc00efb0 error 6 in
libdovecot.so.0.0.0[7fa68287d000+e2000]
[139113.733890] Code: 7d be e9 68 ff ff ff e8 10 4c f5 ff 41 57 41 89 cf
41 56 49 89 f6 41 55 41 89 fd 31 ff 41 54 55 44 89 c5 53 89 d3 48 83 ec
58 <4c> 89 4c 24 08 64 48 8b 04 25 28 00 00 00 48 89 44 24 48 31 c0 e8
[139120.612228] indexer-worker[5498]: segfault at 7ffc90beaff8 ip
7f0e09ae259f sp 7ffc90beb000 error 6 in
libdovecot.so.0.0.0[7f0e09a35000+e2000]
[139120.612232] Code: c2 48 8b 44 24 08 48 8b 30 31 c0 e8 cb 2d f5 ff 66
66 2e 0f 1f 84 00 00 00 00 00 41 57 4d 89 cf 41 56 41 89 fe 41 55 49 89
f5 <41> 54 41 89 d4 55 89 cd 53 48 83 ec 08 4c 8b 4c 24 40 e8 6a fb ff
[139747.003229] auth[9545]: segfault at 558b5e039c30 ip 558b5e039c30
sp 7ffd43633008 error 15
[139747.003239] Code: 00 00 00 00 00 00 00 00 00 

Re: Mac Mojave Server

2018-11-24 Thread Larry Rosenman
[lrosenman:~] $ brew install dovecot
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from e3f69a48 to 2063a8a4.
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
annieerlang

==> Downloading https://homebrew.bintray.com/bottles/dovecot-2.3.2.1.mojave.bott
 100.0%
==> Pouring dovecot-2.3.2.1.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink sbin/dovecot
/usr/local/sbin is not writable.

You can try again using:
  brew link dovecot
==> Caveats
For Dovecot to work, you may need to create a dovecot user
and group depending on your configuration file options.

To have launchd start dovecot now and restart at startup:
  sudo brew services start dovecot
==> Summary
  /usr/local/Cellar/dovecot/2.3.2.1: 1,109 files, 20.2MB
[lrosenman:~] 1 $ sudo ls -la /usr/local/sbin
Password:
ls: /usr/local/sbin: No such file or directory
[lrosenman:~] 1 $ sudo ls -la /usr/local/
total 0
drwxr-xr-x   17 root   wheel544 Oct 29 09:34 .
drwxr-xr-x@  10 root   wheel320 Oct 29 09:34 ..
-rw-r--r--@   1 root   wheel  0 Nov 15 18:18 .com.apple.installer.keep
drwxrwxr-x@   7 503admin224 Nov 23 18:29 Caskroom
drwxrwxr-x@ 114 lrosenman  admin   3648 Nov 24 15:49 Cellar
drwxr-xr-x@   3 503admin 96 Oct 29 07:04 Frameworks
drwxrwxr-x@  21 lrosenman  admin672 Nov  6 06:52 Homebrew
drwxr-xr-x@   3 root   wheel 96 Oct 29 07:42 MacGPG2
drwxrwxr-x@ 695 lrosenman  admin  22240 Nov 24 15:49 bin
drwxrwxr-x@  22 lrosenman  admin704 Nov 24 15:49 etc
drwxr-xr-x@   7 lrosenman  admin224 Oct 29 07:43 gnupg-2.1
drwxrwxr-x@ 190 lrosenman  admin   6080 Nov 24 14:59 include
drwxrwxr-x@ 301 lrosenman  admin   9632 Nov 24 14:59 lib
drwxrwxr-x@ 138 lrosenman  admin   4416 Nov 24 15:49 opt
drwxr-xr-x@   3 lrosenman  admin 96 Oct 29 07:25 remotedesktop
drwxrwxr-x@  47 lrosenman  admin   1504 Nov 23 18:27 share
drwxrwxr-x@  10 lrosenman  admin320 Oct 29 07:42 var
[lrosenman:~] $ sudo mkdir /usr/local/sbin
[lrosenman:~] $ sudo chown lrosenman:admin /usr/local/sbin/
[lrosenman:~] $ subrew link dovecot
Linking /usr/local/Cellar/dovecot/2.3.2.1... 57 symlinks created
[lrosenman:~] $

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: larry...@gmail.com
US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106

On 11/24/18, 3:43 PM, "dovecot on behalf of David Morsberger" 
 wrote:

Is there any information on using dovecot on Mojave? I have been using Mac 
OS Server for a few years and looking for the preferred way to move to Mojave 
since dovecot and postfix admin support has been dropped by Apple. 


Mac Mojave Server

2018-11-24 Thread David Morsberger
Is there any information on using dovecot on Mojave? I have been using Mac OS 
Server for a few years and looking for the preferred way to move to Mojave 
since dovecot and postfix admin support has been dropped by Apple. 

Re: Testing validity of Dovecot config in a script

2018-11-24 Thread Ralph Seichter
* Aki Tuomi:

> doveconf will reliably fail if config file cannot be parsed.

Thanks, that's what I was hoping for.

-Ralph


Re: Testing validity of Dovecot config in a script

2018-11-24 Thread Aki Tuomi


> On 24 November 2018 at 16:45 Ralph Seichter  
> wrote:
> 
> 
> While trying to determine a given configuration is valid from within a
> script, I found that the following works with Dovecot version 2.3.2.1:
> 
>   #!/usr/bin/env bash
>   doveconf -n >/dev/null || echo "Config is invalid"
> 
> However, the return code is not documented in the doveconf manual page,
> and I wonder if the observed behaviour can be relied on? Is this the
> recommended method to test configuration validity?
> 
> Personally, I'd like to have a dedicated call available. Something like
> 
>   # Proposal: "-t" for "test config"
>   doveconf -t [-c config-file]
> 
> with documented return codes would be ideal.
> 
> -Ralph

doveconf will reliably fail if config file cannot be parsed. It will not catch 
all possible misconfigurations, but it will catch most. Particularly plugin 
settings are not validated.

Aki


Testing validity of Dovecot config in a script

2018-11-24 Thread Ralph Seichter
While trying to determine a given configuration is valid from within a
script, I found that the following works with Dovecot version 2.3.2.1:

  #!/usr/bin/env bash
  doveconf -n >/dev/null || echo "Config is invalid"

However, the return code is not documented in the doveconf manual page,
and I wonder if the observed behaviour can be relied on? Is this the
recommended method to test configuration validity?

Personally, I'd like to have a dedicated call available. Something like

  # Proposal: "-t" for "test config"
  doveconf -t [-c config-file]

with documented return codes would be ideal.

-Ralph


Re: v2.3.4 released

2018-11-24 Thread Jerry
On Fri, 23 Nov 2018 10:45:56 -0500, Brad Smith stated:

>On 11/23/2018 9:31 AM, The Doctor wrote:
>
>> On Fri, Nov 23, 2018 at 04:06:53PM +0300, Odhiambo Washington wrote:  
>>> On Fri, 23 Nov 2018 at 15:29, Timo Sirainen  wrote:
>>>  
 https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz
 https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz.sig
 Binary packages in https://repo.dovecot.org/

   * The default postmaster_address is now "postmaster@>>> server hostname>". If username contains the @domain part, that's
 used. If not, then the server's hostname is used.
   * "doveadm stats dump" now returns two decimals for the "avg" field.

   + Added push notification driver that uses a Lua script
   + Added new SQL, DNS and connection events.
 See https://wiki2.dovecot.org/Events
   + Added "doveadm mailbox cache purge" command.
   + Added events API support for Lua scripts
   + doveadm force-resync -f parameter performs "index fsck" while opening
 the index. This may be useful to fix some types of broken index
 files. This may become the default behavior in a later version.
   - director: Kicking a user crashes if login process is very slow
   - pop3_no_flag_updates=no: Don't expunge DELEted and RETRed messages
 unless QUIT is sent.
   - auth: Fix crypt() segfault with glibc-2.28+
   - imap: Running UID FILTER script with errors assert-crashes
   - dsync, pop3-migration: POP3 UIDLs weren't added to
 dovecot.index.cache while mails were saved.
   - dict clients may have been using 100% CPU while waiting for dict
 server to finish commands.
   - doveadm user: Fixed user listing via HTTP API
   - All levels of Cassandra log messages were logged as Dovecot errors.
   - http/smtp client may have crashed after SSL handshake
   - Lua auth converted strings that looked like numbers into numbers.

  
>>> FreeBSD 11.2 (amd64):
>>>
>>> gmake[2]: Entering directory
>>> '/usr/home/wash/Tools/Dovecot/2.3/dovecot-2.3.4/src/lib-master'
>>> gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib -I../../src/lib-dns
>>> -I../../src/lib-test -I../../src/lib-settings -I../../src/lib-ssl-iostream
>>> -DPKG_RUNDIR=\""/opt/dovecot2.3/var/run/dovecot"\"
>>> -DPKG_STATEDIR=\""/opt/dovecot2.3/var/lib/dovecot"\"
>>> -DSYSCONFDIR=\""/opt/dovecot2.3/etc/dovecot"\"
>>> -DBINDIR=\""/opt/dovecot2.3/bin"\"   -std=gnu99 -g -O2
>>> -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W
>>> -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
>>> -Wchar-subscripts -Wformat=2 -Wbad-function-cast -fno-builtin-strftime
>>> -Wstrict-aliasing=2 -I/usr/local/include   -MT test-event-stats.o -MD -MP
>>> -MF .deps/test-event-stats.Tpo -c -o test-event-stats.o test-event-stats.c
>>> test-event-stats.c: In function 'kill_stats_child':
>>> test-event-stats.c:101:2: warning: implicit declaration of function 'kill'
>>> [-Wimplicit-function-declaration]
>>>(void)kill(stats_pid, SIGKILL);
>>>^
>>> test-event-stats.c:101:24: error: 'SIGKILL' undeclared (first use in this
>>> function)
>>>(void)kill(stats_pid, SIGKILL);
>>>  ^
>>> test-event-stats.c:101:24: note: each undeclared identifier is reported
>>> only once for each function it appears in
>>> gmake[2]: *** [Makefile:656: test-event-stats.o] Error 1
>>> gmake[2]: Leaving directory
>>> '/usr/home/wash/Tools/Dovecot/2.3/dovecot-2.3.4/src/lib-master'
>>> gmake[1]: *** [Makefile:565: install-recursive] Error 1
>>> gmake[1]: Leaving directory
>>> '/usr/home/wash/Tools/Dovecot/2.3/dovecot-2.3.4/src'
>>> gmake: *** [Makefile:683: install-recursive] Error 1
>>>  
>> Looks like our porters will have their hands full.  
>
>Complete over exaggeration.

Dovecot 2.3.4 and Dovecot Pigeonhole 0.5.4 are already in the FreeBSD ports
system and both install and work fine, at least on my 11.2-RELEASE-p4 amd64
machine. If you are rolling your own, then you have to expect occasional
problems.

-- 
Jerry



Re: v2.3.4 released

2018-11-24 Thread Odhiambo Washington
On Sat, 24 Nov 2018 at 13:29, Timo Sirainen  wrote:

> On 24 Nov 2018, at 8.33, Odhiambo Washington  wrote:
>
>
>
> I installed 2.3.4 and just used it with the config files for 2.3.3 without
> changing anything in the configuration.
> I then realized that the LDA was throwing errors.
>
> 2018-11-24 00:02:51 1gQIaw-000AZS-Bc  crownkenya.com/john.doe/Maildir>: dovecot_virtual_delivery transport
> output: lda(john@our.domain.name)Error:
> net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
>
> I checked on the presence of the sockets in /var/run/dovecot:
>
> srw---   1 root  wheel0 Nov 24 09:07 stats-reader
> srw-rw   1 root  dovecot  0 Nov 24 09:07 stats-writer
>
>
> What user/group does dovecot_virtual_delivery run as?
>

It runs as the MTA user - mailnull.


> Change the stats-writer socket's owner to be that user. For example:
>
> service stats {
>   unix_listener stats-writer {
>   user = vmail
>   }
> }
>
>
That makes sense.



> Or alternatively change dovecot_virtual_delivery to use dovecot group.
>

That would not be possible because it will not have permissions to write
the mail files.


> I have tried to find any mention of stats-{writer|reader} in the example
> configs shipped with 2.3.4 and found nothing. I have backed-off 2.3.4 for
> now till I can figure out how to assign proper permissions to these sockets
> - or just to figure out why by default, permission is being denied.
>
>
> Looks like this is happening now because in earlier versions the
> dovecot-lda process wasn't sending any statistics.
>
>

BTW, was it an oversight that this config snippet is not documented with
the example-config files? Or on the Wiki? Or my eyes are failing me? :-)

 Thank you very much.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."


Re: v2.3.4 released

2018-11-24 Thread Timo Sirainen
On 24 Nov 2018, at 8.33, Odhiambo Washington  wrote:
> 
> 
> I installed 2.3.4 and just used it with the config files for 2.3.3 without 
> changing anything in the configuration.
> I then realized that the LDA was throwing errors.
> 
> 2018-11-24 00:02:51 1gQIaw-000AZS-Bc 
>  >: dovecot_virtual_delivery transport 
> output: lda(john@our.domain.name )Error: 
> net_connect_unix(/var/run/dovecot//stats-writer) failed: Permission denied
> 
> I checked on the presence of the sockets in /var/run/dovecot:
> 
> srw---   1 root  wheel0 Nov 24 09:07 stats-reader
> srw-rw   1 root  dovecot  0 Nov 24 09:07 stats-writer

What user/group does dovecot_virtual_delivery run as? Change the stats-writer 
socket's owner to be that user. For example:

service stats {
  unix_listener stats-writer {
  user = vmail
  }
}

Or alternatively change dovecot_virtual_delivery to use dovecot group.

> I have tried to find any mention of stats-{writer|reader} in the example 
> configs shipped with 2.3.4 and found nothing. I have backed-off 2.3.4 for now 
> till I can figure out how to assign proper permissions to these sockets - or 
> just to figure out why by default, permission is being denied.

Looks like this is happening now because in earlier versions the dovecot-lda 
process wasn't sending any statistics.



Re: Ubuntu 18.04 (Bionic) packages now available

2018-11-24 Thread Jean-Daniel
They are very welcome, especially as Bionic provides only dovecot 2.2.

Thank you :-)


> Le 23 nov. 2018 à 13:44, Aki Tuomi  a écrit :
> 
> Hi!
> 
> We are excited to announce that we are now providing packages for Ubuntu
> 18.04 (Bionic). Please find instructions on how to use them at
> https://repo.dovecot.org/
> 
> Aki Tuomi
> Open-Xchange Oy
> 
> 



Re: v2.3.4 released

2018-11-24 Thread Odhiambo Washington
On Sat, 24 Nov 2018 at 12:04, Aki Tuomi  wrote:

>
> On 24 November 2018 at 10:55 Odhiambo Washington < odhia...@gmail.com>
> wrote:
>
>
> On Sat, 24 Nov 2018 at 10:56, Aki Tuomi < aki.tu...@open-xchange.com>
> wrote:
>
> >
>
> On 23 November 2018 at 17:46 Brad Smith < b...@comstyle.com> wrote:
>
> >
>
> On 11/23/2018 9:39 AM, Odhiambo Washington wrote:
>
> >
>
> On Fri, 23 Nov 2018 at 17:30, The Doctor < doc...@doctor.nl2k.ab.ca
> > wrote:
>
> On Fri, Nov 23, 2018 at 04:02:27PM +0300, Odhiambo Washington
>
> wrote:
>
> > On Fri, 23 Nov 2018 at 15:29, Timo Sirainen < t...@iki.fi
> > wrote:
> >
> > > https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz
> > > https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz.sig
> > > Binary packages in https://repo.dovecot.org/
> > >
> > > * The default postmaster_address is now "postmaster@ domain or
> > > server hostname>". If username contains the @domain part,
> that's
> > > used. If not, then the server's hostname is used.
> > > * "doveadm stats dump" now returns two decimals for the "avg"
> field.
> > >
> > > + Added push notification driver that uses a Lua script
> > > + Added new SQL, DNS and connection events.
> > > See https://wiki2.dovecot.org/Events
> > > + Added "doveadm mailbox cache purge" command.
> > > + Added events API support for Lua scripts
> > > + doveadm force-resync -f parameter performs "index fsck"
> while opening
> > > the index. This may be useful to fix some types of broken
> index files.
> > > This may become the default behavior in a later version.
> > > - director: Kicking a user crashes if login process is very
>
> slow
>
> > > - pop3_no_flag_updates=no: Don't expunge DELEted and RETRed
> messages
> > > unless QUIT is sent.
> > > - auth: Fix crypt() segfault with glibc-2.28+
> > > - imap: Running UID FILTER script with errors assert-crashes
> > > - dsync, pop3-migration: POP3 UIDLs weren't added to
> > > dovecot.index.cache while mails were saved.
> > > - dict clients may have been using 100% CPU while waiting for
> dict
> > > server to finish commands.
> > > - doveadm user: Fixed user listing via HTTP API
> > > - All levels of Cassandra log messages were logged as Dovecot
> errors.
> > > - http/smtp client may have crashed after SSL handshake
> > > - Lua auth converted strings that looked like numbers into
> numbers.
> > >
> > >
> >
> > FreeBSD 9.3 (i386):
> >
> >
> > Making all in lib-master
> > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib
>
> -I../../src/lib-dns
>
> > -I../../src/lib-test -I../../src/lib-settings
> > -I../../src/lib-ssl-iostream
> > -DPKG_RUNDIR=\""/opt/dovecot2.3/var/run/dovecot"\"
> > -DPKG_STATEDIR=\""/opt/dovecot2.3/var/lib/dovecot"\"
> > -DSYSCONFDIR=\""/opt/dovecot2.3/etc/dovecot"\"
> > -DBINDIR=\""/opt/dovecot2.3/bin"\" -std=gnu99 -g -O2
> -fstack-protector
> > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W
>
> -Wmissing-prototypes
>
> > -Wmissing-declarations -Wpointer-arith -Wchar-subscripts
>
> -Wformat=2
>
> > -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2
> > -I/usr/local/include -MT test-event-stats.o -MD -MP -MF
> > .deps/test-event-stats.Tpo -c -o test-event-stats.o
> test-event-stats.c
> > test-event-stats.c: In function 'kill_stats_child':
> > test-event-stats.c:101: warning: implicit declaration of
> function 'kill'
> > test-event-stats.c:101: error: 'SIGKILL' undeclared (first use
> in this
> > function)
> > test-event-stats.c:101: error: (Each undeclared identifier is
> reported only
> > once
> > test-event-stats.c:101: error: for each function it appears in.)
> > test-event-stats.c: In function 'test_no_merging2':
> > test-event-stats.c:361: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 2 has type 'uint64_t'
> > test-event-stats.c: In function 'test_no_merging3':
> > test-event-stats.c:387: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 2 has type 'uint64_t'
> > test-event-stats.c:387: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 4 has type 'uint64_t'
> > test-event-stats.c:387: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 6 has type 'uint64_t'
> > test-event-stats.c: In function 'test_merge_events2':
> > test-event-stats.c:452: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 2 has type 'uint64_t'
> > test-event-stats.c: In function 'test_skip_parents':
> > test-event-stats.c:484: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 2 has type 'uint64_t'
> > test-event-stats.c:484: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 4 has type 'uint64_t'
> > test-event-stats.c:484: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 6 has type 'uint64_t'
> > test-event-stats.c: In function 'test_merge_events_skip_parents':
> > test-event-stats.c:526: warning: format '%lu' expects type 'long
> unsigned
> > int', but argument 2 has type 'uint64_t'
> > 

Re: v2.3.4 released

2018-11-24 Thread Aki Tuomi


 
 
  
   
  
  
   
On 24 November 2018 at 10:55 Odhiambo Washington <
odhia...@gmail.com> wrote:
   
   

   
   

   
   
On Sat, 24 Nov 2018 at 10:56, Aki Tuomi <
aki.tu...@open-xchange.com> wrote:
   
   

   
   
>
   
   

 
  On 23 November 2018 at 17:46 Brad Smith <
  b...@comstyle.com> wrote:
 


 >


 
  On 11/23/2018 9:39 AM, Odhiambo Washington wrote:
 


 
 
  >
 
 
  
   On Fri, 23 Nov 2018 at 17:30, The Doctor <
   doc...@doctor.nl2k.ab.ca
  
  
   doc...@doctor.nl2k.ab.ca>> wrote:
  
 
 
  
   On Fri, Nov 23, 2018 at 04:02:27PM +0300, Odhiambo Washington
  
 


 wrote:


 
  
   > On Fri, 23 Nov 2018 at 15:29, Timo Sirainen <
   t...@iki.fi
  
  
   t...@iki.fi>> wrote:
  
  
   >
  
  
   > > 
   https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz
  
  
   > > 
   https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz.sig
  
  
   > > Binary packages in 
   https://repo.dovecot.org/
  
  
   > >
  
  
   > > * The default postmaster_address is now "postmaster@
  
   domain or
  
  
   > > server hostname>". If username contains the @domain part,
  
  
   that's
  
  
   > > used. If not, then the server's hostname is used.
  
  
   > > * "doveadm stats dump" now returns two decimals for the "avg"
  
  
   field.
  
  
   > >
  
  
   > > + Added push notification driver that uses a Lua script
  
  
   > > + Added new SQL, DNS and connection events.
  
  
   > > See 
   https://wiki2.dovecot.org/Events
  
  
   > > + Added "doveadm mailbox cache purge" command.
  
  
   > > + Added events API support for Lua scripts
  
  
   > > + doveadm force-resync -f parameter performs "index fsck"
  
  
   while opening
  
  
   > > the index. This may be useful to fix some types of broken
  
  
   index files.
  
  
   > > This may become the default behavior in a later version.
  
  
   > > - director: Kicking a user crashes if login process is very
  
 


 slow


 
  
   > > - pop3_no_flag_updates=no: Don't expunge DELEted and RETRed
  
  
   messages
  
  
   > > unless QUIT is sent.
  
  
   > > - auth: Fix crypt() segfault with glibc-2.28+
  
  
   > > - imap: Running UID FILTER script with errors assert-crashes
  
  
   > > - dsync, pop3-migration: POP3 UIDLs weren't added to
  
  
   > > dovecot.index.cache while mails were saved.
  
  
   > > - dict clients may have been using 100% CPU while waiting for
  
  
   dict
  
  
   > > server to finish commands.
  
  
   > > - doveadm user: Fixed user listing via HTTP API
  
  
   > > - All levels of Cassandra log messages were logged as Dovecot
  
  
   errors.
  
  
   > > - http/smtp client may have crashed after SSL handshake
  
  
   > > - Lua auth converted strings that looked like numbers into
  
  
   numbers.
  
  
   > >
  
  
   > >
  
  
   >
  
  
   > FreeBSD 9.3 (i386):
  
  
   >
  
  
   >
  
  
   > Making all in lib-master
  
  
   > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib
  
 


 -I../../src/lib-dns


 
  
   > -I../../src/lib-test -I../../src/lib-settings
  
  
   > -I../../src/lib-ssl-iostream
  
  
   > -DPKG_RUNDIR=\""/opt/dovecot2.3/var/run/dovecot"\"
  
  
   > -DPKG_STATEDIR=\""/opt/dovecot2.3/var/lib/dovecot"\"
  
  
   > -DSYSCONFDIR=\""/opt/dovecot2.3/etc/dovecot"\"
  
  
   > -DBINDIR=\""/opt/dovecot2.3/bin"\" -std=gnu99 -g -O2
  
  
   -fstack-protector
  
  
   > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W
  
 


 -Wmissing-prototypes


 
  
   > -Wmissing-declarations -Wpointer-arith -Wchar-subscripts
  
 


 -Wformat=2


 
  
   > -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2
  
  
   > -I/usr/local/include -MT test-event-stats.o -MD -MP -MF
  
  
   > .deps/test-event-stats.Tpo -c -o test-event-stats.o
  
  
   test-event-stats.c
  
  
   > test-event-stats.c: In function 'kill_stats_child':
  
  
   > test-event-stats.c:101: warning: implicit declaration of
  
  
   function 'kill'
  
  

Re: v2.3.4 released

2018-11-24 Thread Odhiambo Washington
On Sat, 24 Nov 2018 at 10:56, Aki Tuomi  wrote:

>
> > On 23 November 2018 at 17:46 Brad Smith  wrote:
> >
> >
> > On 11/23/2018 9:39 AM, Odhiambo Washington wrote:
> >
> > >
> > >
> > > On Fri, 23 Nov 2018 at 17:30, The Doctor  > > > wrote:
> > >
> > > On Fri, Nov 23, 2018 at 04:02:27PM +0300, Odhiambo Washington
> wrote:
> > > > On Fri, 23 Nov 2018 at 15:29, Timo Sirainen  > > > wrote:
> > > >
> > > > > https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz
> > > > > https://dovecot.org/releases/2.3/dovecot-2.3.4.tar.gz.sig
> > > > > Binary packages in https://repo.dovecot.org/
> > > > >
> > > > >  * The default postmaster_address is now "postmaster@ > > domain or
> > > > >server hostname>". If username contains the @domain part,
> > > that's
> > > > >used. If not, then the server's hostname is used.
> > > > >  * "doveadm stats dump" now returns two decimals for the "avg"
> > > field.
> > > > >
> > > > >  + Added push notification driver that uses a Lua script
> > > > >  + Added new SQL, DNS and connection events.
> > > > >See https://wiki2.dovecot.org/Events
> > > > >  + Added "doveadm mailbox cache purge" command.
> > > > >  + Added events API support for Lua scripts
> > > > >  + doveadm force-resync -f parameter performs "index fsck"
> > > while opening
> > > > >the index. This may be useful to fix some types of broken
> > > index files.
> > > > >This may become the default behavior in a later version.
> > > > >  - director: Kicking a user crashes if login process is very
> slow
> > > > >  - pop3_no_flag_updates=no: Don't expunge DELEted and RETRed
> > > messages
> > > > >unless QUIT is sent.
> > > > >  - auth: Fix crypt() segfault with glibc-2.28+
> > > > >  - imap: Running UID FILTER script with errors assert-crashes
> > > > >  - dsync, pop3-migration: POP3 UIDLs weren't added to
> > > > >dovecot.index.cache while mails were saved.
> > > > >  - dict clients may have been using 100% CPU while waiting for
> > > dict
> > > > >server to finish commands.
> > > > >  - doveadm user: Fixed user listing via HTTP API
> > > > >  - All levels of Cassandra log messages were logged as Dovecot
> > > errors.
> > > > >  - http/smtp client may have crashed after SSL handshake
> > > > >  - Lua auth converted strings that looked like numbers into
> > > numbers.
> > > > >
> > > > >
> > > >
> > > > FreeBSD 9.3 (i386):
> > > >
> > > >
> > > > Making all in lib-master
> > > > gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib
> -I../../src/lib-dns
> > > > -I../../src/lib-test  -I../../src/lib-settings
> > > > -I../../src/lib-ssl-iostream
> > > > -DPKG_RUNDIR=\""/opt/dovecot2.3/var/run/dovecot"\"
> > > > -DPKG_STATEDIR=\""/opt/dovecot2.3/var/lib/dovecot"\"
> > > > -DSYSCONFDIR=\""/opt/dovecot2.3/etc/dovecot"\"
> > > > -DBINDIR=\""/opt/dovecot2.3/bin"\"-std=gnu99 -g -O2
> > > -fstack-protector
> > > > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W
> -Wmissing-prototypes
> > > > -Wmissing-declarations -Wpointer-arith -Wchar-subscripts
> -Wformat=2
> > > > -Wbad-function-cast -fno-builtin-strftime -Wstrict-aliasing=2
> > > > -I/usr/local/include -MT test-event-stats.o -MD -MP -MF
> > > > .deps/test-event-stats.Tpo -c -o test-event-stats.o
> > > test-event-stats.c
> > > > test-event-stats.c: In function 'kill_stats_child':
> > > > test-event-stats.c:101: warning: implicit declaration of
> > > function 'kill'
> > > > test-event-stats.c:101: error: 'SIGKILL' undeclared (first use
> > > in this
> > > > function)
> > > > test-event-stats.c:101: error: (Each undeclared identifier is
> > > reported only
> > > > once
> > > > test-event-stats.c:101: error: for each function it appears in.)
> > > > test-event-stats.c: In function 'test_no_merging2':
> > > > test-event-stats.c:361: warning: format '%lu' expects type 'long
> > > unsigned
> > > > int', but argument 2 has type 'uint64_t'
> > > > test-event-stats.c: In function 'test_no_merging3':
> > > > test-event-stats.c:387: warning: format '%lu' expects type 'long
> > > unsigned
> > > > int', but argument 2 has type 'uint64_t'
> > > > test-event-stats.c:387: warning: format '%lu' expects type 'long
> > > unsigned
> > > > int', but argument 4 has type 'uint64_t'
> > > > test-event-stats.c:387: warning: format '%lu' expects type 'long
> > > unsigned
> > > > int', but argument 6 has type 'uint64_t'
> > > > test-event-stats.c: In function 'test_merge_events2':
> > > > test-event-stats.c:452: warning: format '%lu' expects type 'long
> > > unsigned
> > > > int', but argument 2 has type 'uint64_t'
> > > > test-event-stats.c: In function 

Re: [Dovecot-news] v2.3.4 released

2018-11-24 Thread Jeroen de Meijer
You can do it yourself. There is a link below every mail (and also this one) 
from this list where you can unsubscribe.

> On 23 Nov 2018, at 13:49, Yann Shukor  wrote:
> 
> Please remove me from your mailing list
> thanks you
>> 
>> ___
>> Dovecot-news mailing list
>> dovecot-n...@dovecot.org
>> https://dovecot.org/mailman/listinfo/dovecot-news