Re: home folder for virtual users with autoexpunge setting

2017-11-20 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 19 Nov 2017, fe...@kngnt.org wrote:

I understand this is correct: as  is a virtual user, it does not 
have home folder. Is there any way I can set the autoexpunge plugin to 
store the lock file in the virtual user email home folder?


well, home folder in Dovecot != $HOME (or ~user), but user-specific 
besides the mail storage root folder:


https://wiki2.dovecot.org/VirtualUsers/Home

Dovecot however uses ~ as abbrevation for "home directory".

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWhPXQ3z1H7kL/d9rAQJBHwf+PjLMPpRPLuNC9NztmJ9G+1xo+vwQBWDM
TZZ2+LHg453ojhR/vdZhuhwl/UnMPq+PTyCINwtSzcvHjeRY9GCtUlnPWSH4nHN8
1x7YlsZm6kLa9K0d2e7MJ52s9yUEHlxtvIUxuRMrFfQyc6sHm7Q8WTGNDCH12N8q
Ob8sikXdh7+IFJvRP2sjXAb4MldPFudio5CtSfQ0MbrgLEp/pl8BCbrlcycpHCPX
s6+cis0GXaKu4ntCyUZAbsckPJ30JFAxhRNltUo+nmCCF4BY1Md87geyUnDr8ehE
4mJP4M4KfZne9i/+XTPuPfw4H3cCNMq3svBJtpLcvqWmnjnLzOhhyQ==
=YVgN
-END PGP SIGNATURE-


Re: home folder for virtual users with autoexpunge setting

2017-11-20 Thread Aki Tuomi


On 19.11.2017 10:57, fe...@kngnt.org wrote:
> Hi all,
>
>  I have enabled today the autoexpunge setting for Trash folders, and I am 
> getting the following error when Dovecot starts:
>
>  imap(): Error: autoexpunge: Couldn't create dovecot.autoexpunge.lock 
> lock: User has no home directory
>
>  I understand this is correct: as  is a virtual user, it does not have 
> home folder. Is there any way I can set the autoexpunge plugin to store the 
> lock file in the virtual user email home folder?
>
>  Thank you!
>  Felix

You need to set mail_home to something, return userdb_home from passdb,
or home from userdb. Even for virtual users.

Aki


Re: LMTP "Relative home directory paths not supported"

2017-11-20 Thread Jeff Kletsky

On 11/20/17 6:33 AM, Aki Tuomi wrote:



On 20.11.2017 16:20, Jeff Kletsky wrote:

On 11/20/17 6:15 AM, Aki Tuomi wrote:

On 20.11.2017 16:12, Jeff Kletsky wrote:

I'm in the process of moving from LDA to LMTP (Postfix upstream) prior
to a transition off `nix accounts to virtual accounts and am stumped
by LMTP reporting

  dovecot: lmtp(10019, j...@example.com): Error: Relative home
directory paths not supported: 0

[...]

mail_location = maildir:~/Maildir:LAYOUT=fs
# mail_location = maildir:%h/Maildir:LAYOUT=fs



Thanks!

Jeff

That seems like lmtp is not doing variable expansion for user settings.
What version of dovecot are you running?

Aki


$ sudo jexec mail dovecot --version
2.2.32 (dfbe293d4)

Jeff

I tried to repeat this issue locally, and was not able to. Can you
provide full output of

doveconf -n

and

doveadm user j...@example.com

with both %h and ~/

Aki


Found that I had two sets of passdb and userdb entries due to one from 
local.conf and and another from conf.d/10-auth.conf including 
auth-system.conf.ext -- unfortunately that wasn't the source of the 
problems.


Turning on auth_debug=yes in local.conf and enabling LOG_DEBUG level 
output shows that, in contrast to the "working" configuration, it looks 
like my passwd-file configuration is returning "home=0" -- consistent with


"Error: Relative home directory paths not supported: 0"



    auth: Debug: passwd-file(jeff,n.n.n.n,): lookup: 
user=jeff file=/usr/local/etc/dovecot/users
    auth: Debug: client passdb out: OK    1    user=jeff User    
&:/home/jeff:/usr/sbin/nologin


    dovecot: auth: Debug: passwd-file(jeff,n.n.n.n,): 
lookup: user=jeff file=/usr/local/etc/dovecot/users
    dovecot: auth: Debug: master userdb out: USER    1234567890 jeff    
uid=x    gid=x    home=0 auth_token=verylongauthtoken



These were the clues needed -- While 
https://wiki2.dovecot.org/AuthDatabase/PasswdFile talked about using a 
FreeBSD master.passwd file as a passdb, it neglected to state that the 
Linux format and FreeBSD format are different.


Linux   -- user:password:uid:gid:(gecos):home:(shell):extra_fields
FreeBSD -- name:password:uid:gid:class:change:expire:gecos:home_dir:shell
--^

Login will succeed, but the home variable will be populated with the 
FreeBSD "change" which is often 0


Wiki page updated with details on how to use FreeBSD /etc/master.passwd 
extracts with passwd-file


Jeff


Re: Errors installing on Ubuntu 17.04

2017-11-20 Thread Jeff Kletsky

On 11/20/17 1:58 PM, Someone wrote:


I've been struggling with this on and off for a while now.  Upon
attempting to install Dovecot on Ubuntu 17.04 I get the following errors

Selecting previously unselected package dovecot-imapd.
(Reading database ... 243684 files and directories currently installed.)
Preparing to unpack .../dovecot-imapd_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Processing triggers for ufw (0.35-4) ...
Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Job for dovecot.service failed because the control process exited with error 
code.
See "systemctl status dovecot.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dovecot, action "restart" failed.
   dovecot.service - Dovecot IMAP/POP3 email server
 Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor 
preset: enabled)
 Active: failed (Result: exit-code) since Thu 2017-10-05 14:08:56 BST; 17ms 
ago
 Docs: man:dovecot(1)
   http://wiki2.dovecot.org/
   Process: 8880 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
   Process: 8885 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 8729 (code=exited, status=0/SUCCESS)

Oct 05 14:08:56 ash systemd[1]: Starting Dovecot IMAP/POP3 email server...
Oct 05 14:08:56 ash dovecot[8885]: Error: socket() failed: Address family n…ocol
Oct 05 14:08:56 ash dovecot[8885]: Error: service(imap-login): listen(::, 1…ocol
Oct 05 14:08:56 ash dovecot[8885]: master: Error: socket() failed: Address …ocol
Oct 05 14:08:56 ash dovecot[8885]: Fatal: Failed to start listeners
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Control process exited, co…s=89
Oct 05 14:08:56 ash systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Unit entered failed state.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package dovecot-core (--configure):
subprocess installed post-installation script returned error exit status 1
(and more)

Apologies for any wrapping due to long lines in the above output.

"Hint: Some lines were ellipsized, use -l to show in full."

Without seeing the full messages, my guess is that you've got problems 
with your IPv6
configuration or connectivity.  It's a long shot, but might save you a 
round-trip

on the mailing list.

Jeff


Errors installing on Ubuntu 17.04

2017-11-20 Thread Someone
I've been struggling with this on and off for a while now.  Upon
attempting to install Dovecot on Ubuntu 17.04 I get the following errors

Selecting previously unselected package dovecot-imapd.
(Reading database ... 243684 files and directories currently installed.)
Preparing to unpack .../dovecot-imapd_1%3a2.2.27-2ubuntu2_amd64.deb ...
Unpacking dovecot-imapd (1:2.2.27-2ubuntu2) ...
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Processing triggers for ufw (0.35-4) ...
Setting up dovecot-imapd (1:2.2.27-2ubuntu2) ...
Creating config file /etc/dovecot/conf.d/20-imap.conf with new version
Processing triggers for dovecot-core (1:2.2.27-2ubuntu2) ...
Job for dovecot.service failed because the control process exited with error 
code.
See "systemctl status dovecot.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dovecot, action "restart" failed.
  dovecot.service - Dovecot IMAP/POP3 email server
Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor 
preset: enabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 14:08:56 BST; 17ms 
ago
Docs: man:dovecot(1)
  http://wiki2.dovecot.org/
  Process: 8880 ExecStop=/usr/bin/doveadm stop (code=exited, status=0/SUCCESS)
  Process: 8885 ExecStart=/usr/sbin/dovecot (code=exited, status=89)
Main PID: 8729 (code=exited, status=0/SUCCESS)

Oct 05 14:08:56 ash systemd[1]: Starting Dovecot IMAP/POP3 email server...
Oct 05 14:08:56 ash dovecot[8885]: Error: socket() failed: Address family n…ocol
Oct 05 14:08:56 ash dovecot[8885]: Error: service(imap-login): listen(::, 1…ocol
Oct 05 14:08:56 ash dovecot[8885]: master: Error: socket() failed: Address …ocol
Oct 05 14:08:56 ash dovecot[8885]: Fatal: Failed to start listeners
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Control process exited, co…s=89
Oct 05 14:08:56 ash systemd[1]: Failed to start Dovecot IMAP/POP3 email server.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Unit entered failed state.
Oct 05 14:08:56 ash systemd[1]: dovecot.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package dovecot-core (--configure):
subprocess installed post-installation script returned error exit status 1
(and more)

Apologies for any wrapping due to long lines in the above output.


Doveadm backup error.

2017-11-20 Thread Dovecot list
Hello. I try to migrate dovecot 1 to dovecot 2 with doveadm backup.
But when i try to set doveadm backup i get :

mx3:/root/dsync@[23:11] # doveadm -v -c ah.temp backup -R -u a...@test.pl
 imapc:
doveadm(a...@test.pl ): Error: Mail access for users with UID
145 not permitted (see first_valid_uid in config file, uid from userdb
lookup).
doveadm(a...@test.pl ): Error: User init failed


mx3:/root/dsync@[22:13] # ls -la /home/mail/vhosts/test.pl/a...@test.pl/

total 1
drwxr-xr-x  2 vmail  vmail  2 Nov 12 23:59 .

mx3:/root/dsync@[22:14] # doveadm user a...@test.pl 
field   value
uid 145
gid 145
home/home/mail/vhosts/test.pl/a...@test.pl 
mailmdbox:~/mdbox
quota_rule  *:storage=5M

mx3:/root/dsync@[22:14] # id 145
uid=145(vmail) gid=145(vmail) groups=145(vmail)

mx3:/root/dsync@[1:14] # doveconf -n | grep 145
first_valid_uid = 145
last_valid_uid = 145

I dont have any idea whats is the problem.
Best regards.


Re: LMTP "Relative home directory paths not supported"

2017-11-20 Thread Jeff Kletsky

On 11/20/17 6:15 AM, Aki Tuomi wrote:


On 20.11.2017 16:12, Jeff Kletsky wrote:

I'm in the process of moving from LDA to LMTP (Postfix upstream) prior
to a transition off `nix accounts to virtual accounts and am stumped
by LMTP reporting

     dovecot: lmtp(10019, j...@example.com): Error: Relative home
directory paths not supported: 0

LDA does /not /have any problems with PAM or passwd-file passdb/userdb
and the ubiquitous definition of

     mail_location = maildir:~/Maildir:LAYOUT=fs

I have yet to be able to get LMTP to deliver mail, nor have I found
anything on the Dovecot wiki to describe how to represent that the
mail_location is /Maildir

I'd prefer to localize the user-to-file-space mapping localized to
Dovecot (rather than split within Postfix and Dovecot)

I'd definitely appreciate any pointers to web pages or specific
suggestions as to how to resolve this.

Excerpts of Dovecot local.conf follow, full doveconf -n output on
request. The/users /file is in the same format as FreeBSD
/etc/master.passwd with name, password, UID, gid, home_dir, and shell
meaningfully populated. The configuration below works with LDA
(end-to-end). With LMTP, it identifies  as a valid
destination, but fails on delivery with the "relative home directory
paths" error message.

passdb {
   driver = passwd-file
   args = /path/to/users
}
userdb {
   driver = passwd-file
   args = username_format=%n /path/to/users
}

# See http://wiki2.dovecot.org/MailLocation/Maildir
# https://wiki.dovecot.org/VirtualUsers/Home

mail_location = maildir:~/Maildir:LAYOUT=fs
# mail_location = maildir:%h/Maildir:LAYOUT=fs



Thanks!

Jeff

That seems like lmtp is not doing variable expansion for user settings.
What version of dovecot are you running?

Aki


$ sudo jexec mail dovecot --version
2.2.32 (dfbe293d4)

Jeff


Re: LMTP "Relative home directory paths not supported"

2017-11-20 Thread Aki Tuomi


On 20.11.2017 16:12, Jeff Kletsky wrote:
> I'm in the process of moving from LDA to LMTP (Postfix upstream) prior
> to a transition off `nix accounts to virtual accounts and am stumped
> by LMTP reporting
>
>     dovecot: lmtp(10019, j...@example.com): Error: Relative home
> directory paths not supported: 0
>
> LDA does /not /have any problems with PAM or passwd-file passdb/userdb
> and the ubiquitous definition of
>
>     mail_location = maildir:~/Maildir:LAYOUT=fs
>
> I have yet to be able to get LMTP to deliver mail, nor have I found
> anything on the Dovecot wiki to describe how to represent that the
> mail_location is /Maildir
>
> I'd prefer to localize the user-to-file-space mapping localized to
> Dovecot (rather than split within Postfix and Dovecot)
>
> I'd definitely appreciate any pointers to web pages or specific
> suggestions as to how to resolve this.
>
> Excerpts of Dovecot local.conf follow, full doveconf -n output on
> request. The/users /file is in the same format as FreeBSD
> /etc/master.passwd with name, password, UID, gid, home_dir, and shell
> meaningfully populated. The configuration below works with LDA
> (end-to-end). With LMTP, it identifies  as a valid
> destination, but fails on delivery with the "relative home directory
> paths" error message.
>
> passdb {
>   driver = passwd-file
>   args = /path/to/users
> }
> userdb {
>   driver = passwd-file
>   args = username_format=%n /path/to/users
> }
>
> # See http://wiki2.dovecot.org/MailLocation/Maildir
> # https://wiki.dovecot.org/VirtualUsers/Home
>
> mail_location = maildir:~/Maildir:LAYOUT=fs
> # mail_location = maildir:%h/Maildir:LAYOUT=fs
>
>
>
> Thanks!
>
> Jeff

That seems like lmtp is not doing variable expansion for user settings. 
What version of dovecot are you running?

Aki


LMTP "Relative home directory paths not supported"

2017-11-20 Thread Jeff Kletsky
I'm in the process of moving from LDA to LMTP (Postfix upstream) prior 
to a transition off `nix accounts to virtual accounts and am stumped by 
LMTP reporting


    dovecot: lmtp(10019, j...@example.com): Error: Relative home 
directory paths not supported: 0


LDA does /not /have any problems with PAM or passwd-file passdb/userdb 
and the ubiquitous definition of


    mail_location = maildir:~/Maildir:LAYOUT=fs

I have yet to be able to get LMTP to deliver mail, nor have I found 
anything on the Dovecot wiki to describe how to represent that the 
mail_location is /Maildir


I'd prefer to localize the user-to-file-space mapping localized to 
Dovecot (rather than split within Postfix and Dovecot)


I'd definitely appreciate any pointers to web pages or specific 
suggestions as to how to resolve this.


Excerpts of Dovecot local.conf follow, full doveconf -n output on 
request. The/users /file is in the same format as FreeBSD 
/etc/master.passwd with name, password, UID, gid, home_dir, and shell 
meaningfully populated. The configuration below works with LDA 
(end-to-end). With LMTP, it identifies  as a valid 
destination, but fails on delivery with the "relative home directory 
paths" error message.


passdb {
  driver = passwd-file
  args = /path/to/users
}
userdb {
  driver = passwd-file
  args = username_format=%n /path/to/users
}

# See http://wiki2.dovecot.org/MailLocation/Maildir
# https://wiki.dovecot.org/VirtualUsers/Home

mail_location = maildir:~/Maildir:LAYOUT=fs
# mail_location = maildir:%h/Maildir:LAYOUT=fs



Thanks!

Jeff


Re: dovecot-lda without starting dovecot?

2017-11-20 Thread Sami Ketola

> On 20 Nov 2017, at 12.54, Stephan von Krawczynski  wrote:
> 
> If I had lets say 10 nodes handling incoming SMTP and delivery to local
> maildirs in parallel and independantly on a network storage and imapping this
> from another independant 4 nodes, then building a not needed bottleneck by
> shifting over the local delivery via director and LMTP to fewer nodes is just
> braindead creation of high loads on few boxes.
> 
> And btw it scales perfectly because all that is needed if load increases is
> up'ing additional nodes for SMTP/delivery or IMAP _which are all the same (of
> two types)_.
> 
> The loadbalancer needed for this can be equally used for e.g. web, ftp and
> other services. So there is absolutely no extra stuff needed for the mail
> setup.

Thanks for the info. But I was more after some real performance figures such as
LMTP deliveries per second, IMAP logins per second or number of concurrent
IMAP connections or mails FETCH/sec.

Sami


Re: dovecot-lda without starting dovecot?

2017-11-20 Thread Stephan von Krawczynski
On Mon, 20 Nov 2017 12:05:46 +0200
Sami Ketola  wrote:

> > On 20 Nov 2017, at 10.50, Stephan von Krawczynski 
> > wrote:
> > 
> > AFAIK no complex director stuff would be needed then, right?
> > The second sentence implies that using file locking should also be enough,
> > which dovecot does.  
> 
> You are building such a complex system and then you think that creating
> director layer would be complex?
> 
> Just out of curiosity may I ask what size of an environment is this? As it's
> very hard for me to believe that this would scale.
> 
> Sami

If I had lets say 10 nodes handling incoming SMTP and delivery to local
maildirs in parallel and independantly on a network storage and imapping this
from another independant 4 nodes, then building a not needed bottleneck by
shifting over the local delivery via director and LMTP to fewer nodes is just
braindead creation of high loads on few boxes.

And btw it scales perfectly because all that is needed if load increases is
up'ing additional nodes for SMTP/delivery or IMAP _which are all the same (of
two types)_.

The loadbalancer needed for this can be equally used for e.g. web, ftp and
other services. So there is absolutely no extra stuff needed for the mail
setup.

-- 
Regards,
Stephan


Re: dovecot-lda without starting dovecot?

2017-11-20 Thread Sami Ketola

> On 20 Nov 2017, at 10.50, Stephan von Krawczynski  wrote:
> 
> AFAIK no complex director stuff would be needed then, right?
> The second sentence implies that using file locking should also be enough,
> which dovecot does.

You are building such a complex system and then you think that creating 
director layer 
would be complex?

Just out of curiosity may I ask what size of an environment is this? As it's 
very hard for
me to believe that this would scale.

Sami


Re: doveadm mailbox list -s Segmentation fault

2017-11-20 Thread Kristjan Eentsalu
Hey,

Here is subscribiton file

INBOX/INBOX
INBOX/Archives
INBOX/Archives/2014
INBOX/Archives/2015
INBOX/Archives/2016
INBOX/Calendar
INBOX/Drafts
INBOX/Sent
INBOX/Spam
INBOX/Trash
INBOX/Trash/eee
INBOX/alerts
INBOX/dos
INBOX/itmailid
INBOX/kolab
INBOX/mon
INBOX/tahtis
INBOX/test
INBOX/testiala
shared/it
shared/it/backup
shared/it/itadmin
shared/it/viirus
user/it/INBOX
user/it-copy/INBOX
user/it-copy/it-vanad-kirjad
user/it/kontod
user/ito/INBOX
user/monitooring/INBOX


Kristjan

2017-11-20 10:42 GMT+02:00 Aki Tuomi :

> Can you provide subscriptions file for the user as well?
>
> Aki
>
>
> On 20.11.2017 10:37, Kristjan Eentsalu wrote:
> > Sorry, forgot to include it first time. bt full down below
> >
> > (gdb) bt full
> > #0  0x000800d77e04 in mailbox_tree_traverse (tree=0x0,
> path=0x801c1a540
> > "INBOX", create=false, created_r=0x7fffe4f7) at mailbox-tree.c:103
> > node = (struct mailbox_node **) 0x10
> > parent = (struct mailbox_node *) 0x0
> > name = 0x801c1a540 "INBOX"
> > str = (string_t *) 0x801c1a560
> > #1  0x000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
> > "INBOX") at mailbox-tree.c:168
> > _data_stack_cur_id = 3
> > node = (struct mailbox_node *) 0x8015aa72e
> > created = false
> > #2  0x000800e03155 in mailbox_list_set_subscription_flags
> > (list=0x801c71848, vname=0x801cfa770 "INBOX", flags=0x801cfa4f0) at
> > mailbox-list-subscriptions.c:188
> > node = (struct mailbox_node *) 0x7fffeb28
> > #3  0x000800dfe624 in mailbox_list_ns_prefix_return (ctx=0x801cfa448,
> > ns=0x801c35460, has_children=false) at mailbox-list-iter.c:473
> > box = (struct mailbox *) 0x800dfe345
> > existence = 32767
> > ret = -6768
> > #4  0x000800dfdeeb in mailbox_list_ns_iter_try_next
> (_ctx=0x801cfa448,
> > info_r=0x7fffe5f0) at mailbox-list-iter.c:583
> > ctx = (struct ns_list_iterate_context *) 0x801cfa448
> > ns = (struct mail_namespace *) 0x801c35460
> > info = (const struct mailbox_info *) 0x0
> > has_children = false
> > #5  0x000800dfc7a1 in mailbox_list_ns_iter_next (_ctx=0x801cfa448) at
> > mailbox-list-iter.c:658
> > info = (const struct mailbox_info *) 0x0
> > #6  0x000800dfd6c8 in mailbox_list_iter_next_call (ctx=0x801cfa448)
> at
> > mailbox-list-iter.c:985
> > info = (const struct mailbox_info *) 0x1
> > set = (const struct mailbox_settings *) 0x8080808080808080
> > #7  0x000800dfd644 in mailbox_list_iter_next (ctx=0x801cfa448) at
> > mailbox-list-iter.c:1053
> > _data_stack_cur_id = 2
> > info = (const struct mailbox_info *) 0x206
> > #8  0x0043a0e9 in doveadm_mailbox_list_iter_next
> (iter=0x801c80060)
> > at doveadm-mailbox-list-iter.c:181
> > info = (const struct mailbox_info *) 0x801c76048
> > patterns = (const char * const *) 0x1107
> > count = 8
> > #9  0x00436516 in cmd_mailbox_list_run (_ctx=0x801c48448,
> > user=0x801cdc348) at doveadm-mail-mailbox.c:146
> > ctx = (struct list_cmd_context *) 0x801c48448
> > iter_flags = 4352
> > iter = (struct doveadm_mailbox_list_iter *) 0x801c80060
> > info = (const struct mailbox_info *) 0x801c6e048
> > str = (string_t *) 0x801c1a308
> > #10 0x0042d222 in doveadm_mail_next_user (ctx=0x801c48448,
> > cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:429
> > input = {module = 0x0, service = 0x487ca4 "doveadm", username =
> > 0x801c18030 "kristjan.eentsalu", session_id = 0x0, session_id_prefix =
> 0x0,
> > session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__u6_addr =
> {
> >   __u6_addr8 = 0x7fffe75c "", __u6_addr16 = 0x7fffe75c,
> > __u6_addr32 = 0x7fffe75c}}, ip4 = {s_addr = 0}}}, remote_ip =
> {family =
> > 0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffe770 "",
> >   __u6_addr16 = 0x7fffe770, __u6_addr32 = 0x7fffe770}},
> ip4
> > = {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0,
> > flags_override_add = 0, flags_override_remove = 0, no_userdb_lookup = 0,
> > debug = 0}
> > error = 0x7fffe750 ""
> > ip = 0x801219f28 ""
> > ret = 0
> > #11 0x0042cef5 in doveadm_mail_single_user (ctx=0x801c48448,
> > cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:460
> > No locals.
> > #12 0x0042ed8a in doveadm_mail_cmd_exec (ctx=0x801c48448,
> > cctx=0x7fffea60, wildcard_user=0x0) at doveadm-mail.c:621
> > ret = 32767
> > error = 0x801c48628 "`\206▒\001\b"
> > #13 0x0042e936 in doveadm_cmd_ver2_to_mail_cmd_wrapper
> > (cctx=0x7fffea60) at doveadm-mail.c:1089
> > mctx = (struct doveadm_mail_cmd_context *) 0x801c48448
> > wildcard_user = 0x0
> > fieldstr = 0x48777b "-u"
> > pargv = {arr = {buffer = 0x801c486a8, element_size 

Re: dovecot-lda without starting dovecot?

2017-11-20 Thread Stephan von Krawczynski
On Tue, 7 Nov 2017 21:40:55 +0200
Timo Sirainen  wrote:

> On 7 Nov 2017, at 21.33, Stephan von Krawczynski  wrote:
> > 
> > 
> > Me again have to stress that our former implementation of the lda process
> > did do exactly nothing to all the dovecot files, and everything worked
> > pretty well. We had no problems in years. So I really wonder if it
> > wouldn't be the best way to simply cut away all the heavy dovecot magic
> > from the lda as an option. All it really needs to do is pipe the mail into
> > a temp file, do the sieve stuff and learn from it where to rename this
> > temp file to, basically. On the other hand you have lots of config
> > parameters in dovecot dealing with different approaches to lock files
> > (from fcntl to dotlock). I would expect at least one of them to work over
> > NFS.  
> 
> I suppose you could create a unique new per-delivery temporary directory
> where dovecot-lda writes the mail, so it knows nothing about the user's real
> home/mail directory. Then move it from there to Maildir/tmp/ -> rename to
> Maildir/new/. I suppose you'd need to copy the Sieve script to the temp
> directory. Not sure if something would have to be done
> with .dovecot.lda-dupes.
> 
> > And we do see stuff like:
> > 
> > 2017-11-07T00:46:59.102961+01:00 mail-a05 dovecot:
> > lda(someb...@somedomain.com): Warning: Locking transaction log
> > file /dovecot.index.log took 40 seconds (appending)
> > 
> > So some locking seems to work.  
> 
> The problem isn't locking, but caching of data. Especially because Dovecot
> doesn't lock when reading files.

The problem with data caching would not be existant if dovecot used O_DIRECT
like proposed in the nfs (linux) docs.

 From nfs(5) manpage 

The NFS protocol is not designed to support true cluster file system cache
coherence without some type of application serialization. If absolute cache
coherence among clients is required, applications should use file locking.
Alternatively, applications can also open their files with the O_DIRECT flag
to disable data caching entirely. 

- end 

AFAIK no complex director stuff would be needed then, right?
The second sentence implies that using file locking should also be enough,
which dovecot does.


-- 
Regards,
Stephan


Re: doveadm mailbox list -s Segmentation fault

2017-11-20 Thread Aki Tuomi
Can you provide subscriptions file for the user as well?

Aki


On 20.11.2017 10:37, Kristjan Eentsalu wrote:
> Sorry, forgot to include it first time. bt full down below
>
> (gdb) bt full
> #0  0x000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
> "INBOX", create=false, created_r=0x7fffe4f7) at mailbox-tree.c:103
> node = (struct mailbox_node **) 0x10
> parent = (struct mailbox_node *) 0x0
> name = 0x801c1a540 "INBOX"
> str = (string_t *) 0x801c1a560
> #1  0x000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
> "INBOX") at mailbox-tree.c:168
> _data_stack_cur_id = 3
> node = (struct mailbox_node *) 0x8015aa72e
> created = false
> #2  0x000800e03155 in mailbox_list_set_subscription_flags
> (list=0x801c71848, vname=0x801cfa770 "INBOX", flags=0x801cfa4f0) at
> mailbox-list-subscriptions.c:188
> node = (struct mailbox_node *) 0x7fffeb28
> #3  0x000800dfe624 in mailbox_list_ns_prefix_return (ctx=0x801cfa448,
> ns=0x801c35460, has_children=false) at mailbox-list-iter.c:473
> box = (struct mailbox *) 0x800dfe345
> existence = 32767
> ret = -6768
> #4  0x000800dfdeeb in mailbox_list_ns_iter_try_next (_ctx=0x801cfa448,
> info_r=0x7fffe5f0) at mailbox-list-iter.c:583
> ctx = (struct ns_list_iterate_context *) 0x801cfa448
> ns = (struct mail_namespace *) 0x801c35460
> info = (const struct mailbox_info *) 0x0
> has_children = false
> #5  0x000800dfc7a1 in mailbox_list_ns_iter_next (_ctx=0x801cfa448) at
> mailbox-list-iter.c:658
> info = (const struct mailbox_info *) 0x0
> #6  0x000800dfd6c8 in mailbox_list_iter_next_call (ctx=0x801cfa448) at
> mailbox-list-iter.c:985
> info = (const struct mailbox_info *) 0x1
> set = (const struct mailbox_settings *) 0x8080808080808080
> #7  0x000800dfd644 in mailbox_list_iter_next (ctx=0x801cfa448) at
> mailbox-list-iter.c:1053
> _data_stack_cur_id = 2
> info = (const struct mailbox_info *) 0x206
> #8  0x0043a0e9 in doveadm_mailbox_list_iter_next (iter=0x801c80060)
> at doveadm-mailbox-list-iter.c:181
> info = (const struct mailbox_info *) 0x801c76048
> patterns = (const char * const *) 0x1107
> count = 8
> #9  0x00436516 in cmd_mailbox_list_run (_ctx=0x801c48448,
> user=0x801cdc348) at doveadm-mail-mailbox.c:146
> ctx = (struct list_cmd_context *) 0x801c48448
> iter_flags = 4352
> iter = (struct doveadm_mailbox_list_iter *) 0x801c80060
> info = (const struct mailbox_info *) 0x801c6e048
> str = (string_t *) 0x801c1a308
> #10 0x0042d222 in doveadm_mail_next_user (ctx=0x801c48448,
> cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:429
> input = {module = 0x0, service = 0x487ca4 "doveadm", username =
> 0x801c18030 "kristjan.eentsalu", session_id = 0x0, session_id_prefix = 0x0,
> session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__u6_addr = {
>   __u6_addr8 = 0x7fffe75c "", __u6_addr16 = 0x7fffe75c,
> __u6_addr32 = 0x7fffe75c}}, ip4 = {s_addr = 0}}}, remote_ip = {family =
> 0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffe770 "",
>   __u6_addr16 = 0x7fffe770, __u6_addr32 = 0x7fffe770}}, ip4
> = {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0,
> flags_override_add = 0, flags_override_remove = 0, no_userdb_lookup = 0,
> debug = 0}
> error = 0x7fffe750 ""
> ip = 0x801219f28 ""
> ret = 0
> #11 0x0042cef5 in doveadm_mail_single_user (ctx=0x801c48448,
> cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:460
> No locals.
> #12 0x0042ed8a in doveadm_mail_cmd_exec (ctx=0x801c48448,
> cctx=0x7fffea60, wildcard_user=0x0) at doveadm-mail.c:621
> ret = 32767
> error = 0x801c48628 "`\206▒\001\b"
> #13 0x0042e936 in doveadm_cmd_ver2_to_mail_cmd_wrapper
> (cctx=0x7fffea60) at doveadm-mail.c:1089
> mctx = (struct doveadm_mail_cmd_context *) 0x801c48448
> wildcard_user = 0x0
> fieldstr = 0x48777b "-u"
> pargv = {arr = {buffer = 0x801c486a8, element_size = 8}, v =
> 0x801c486a8, v_modifiable = 0x801c486a8}
> full_args = {arr = {buffer = 0x801c48628, element_size = 8}, v =
> 0x801c48628, v_modifiable = 0x801c48628}
> i = 8
> mail_cmd = {alloc = 0x436080 , name =
> 0x48cf58 "mailbox list", usage_args = 0x48cf65 "[-u |-A] [-S
> ] [-7|-8] [-s] [ [...]]"}
> dashdash = 0x4969bf "--"
> args_pos = 4
> #14 0x00445d9b in doveadm_cmd_run_ver2 (argc=4,
> argv=0x7fffeb40, cctx=0x7fffea60) at doveadm-cmd.c:572
> ---Type  to continue, or q  to quit---
> param = (struct doveadm_cmd_param *) 0x801c17ae0
> pargv = {arr = {buffer = 0x801c177d0, element_size = 104}, v =
> 0x801c177d0, v_modifiable = 0x801c177d0}
> 

Re: doveadm mailbox list -s Segmentation fault

2017-11-20 Thread Kristjan Eentsalu
Sorry, forgot to include it first time. bt full down below

(gdb) bt full
#0  0x000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
"INBOX", create=false, created_r=0x7fffe4f7) at mailbox-tree.c:103
node = (struct mailbox_node **) 0x10
parent = (struct mailbox_node *) 0x0
name = 0x801c1a540 "INBOX"
str = (string_t *) 0x801c1a560
#1  0x000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
"INBOX") at mailbox-tree.c:168
_data_stack_cur_id = 3
node = (struct mailbox_node *) 0x8015aa72e
created = false
#2  0x000800e03155 in mailbox_list_set_subscription_flags
(list=0x801c71848, vname=0x801cfa770 "INBOX", flags=0x801cfa4f0) at
mailbox-list-subscriptions.c:188
node = (struct mailbox_node *) 0x7fffeb28
#3  0x000800dfe624 in mailbox_list_ns_prefix_return (ctx=0x801cfa448,
ns=0x801c35460, has_children=false) at mailbox-list-iter.c:473
box = (struct mailbox *) 0x800dfe345
existence = 32767
ret = -6768
#4  0x000800dfdeeb in mailbox_list_ns_iter_try_next (_ctx=0x801cfa448,
info_r=0x7fffe5f0) at mailbox-list-iter.c:583
ctx = (struct ns_list_iterate_context *) 0x801cfa448
ns = (struct mail_namespace *) 0x801c35460
info = (const struct mailbox_info *) 0x0
has_children = false
#5  0x000800dfc7a1 in mailbox_list_ns_iter_next (_ctx=0x801cfa448) at
mailbox-list-iter.c:658
info = (const struct mailbox_info *) 0x0
#6  0x000800dfd6c8 in mailbox_list_iter_next_call (ctx=0x801cfa448) at
mailbox-list-iter.c:985
info = (const struct mailbox_info *) 0x1
set = (const struct mailbox_settings *) 0x8080808080808080
#7  0x000800dfd644 in mailbox_list_iter_next (ctx=0x801cfa448) at
mailbox-list-iter.c:1053
_data_stack_cur_id = 2
info = (const struct mailbox_info *) 0x206
#8  0x0043a0e9 in doveadm_mailbox_list_iter_next (iter=0x801c80060)
at doveadm-mailbox-list-iter.c:181
info = (const struct mailbox_info *) 0x801c76048
patterns = (const char * const *) 0x1107
count = 8
#9  0x00436516 in cmd_mailbox_list_run (_ctx=0x801c48448,
user=0x801cdc348) at doveadm-mail-mailbox.c:146
ctx = (struct list_cmd_context *) 0x801c48448
iter_flags = 4352
iter = (struct doveadm_mailbox_list_iter *) 0x801c80060
info = (const struct mailbox_info *) 0x801c6e048
str = (string_t *) 0x801c1a308
#10 0x0042d222 in doveadm_mail_next_user (ctx=0x801c48448,
cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:429
input = {module = 0x0, service = 0x487ca4 "doveadm", username =
0x801c18030 "kristjan.eentsalu", session_id = 0x0, session_id_prefix = 0x0,
session_create_time = 0, local_ip = {family = 0, u = {ip6 = {__u6_addr = {
  __u6_addr8 = 0x7fffe75c "", __u6_addr16 = 0x7fffe75c,
__u6_addr32 = 0x7fffe75c}}, ip4 = {s_addr = 0}}}, remote_ip = {family =
0, u = {ip6 = {__u6_addr = {__u6_addr8 = 0x7fffe770 "",
  __u6_addr16 = 0x7fffe770, __u6_addr32 = 0x7fffe770}}, ip4
= {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0,
flags_override_add = 0, flags_override_remove = 0, no_userdb_lookup = 0,
debug = 0}
error = 0x7fffe750 ""
ip = 0x801219f28 ""
ret = 0
#11 0x0042cef5 in doveadm_mail_single_user (ctx=0x801c48448,
cctx=0x7fffea60, error_r=0x7fffe808) at doveadm-mail.c:460
No locals.
#12 0x0042ed8a in doveadm_mail_cmd_exec (ctx=0x801c48448,
cctx=0x7fffea60, wildcard_user=0x0) at doveadm-mail.c:621
ret = 32767
error = 0x801c48628 "`\206▒\001\b"
#13 0x0042e936 in doveadm_cmd_ver2_to_mail_cmd_wrapper
(cctx=0x7fffea60) at doveadm-mail.c:1089
mctx = (struct doveadm_mail_cmd_context *) 0x801c48448
wildcard_user = 0x0
fieldstr = 0x48777b "-u"
pargv = {arr = {buffer = 0x801c486a8, element_size = 8}, v =
0x801c486a8, v_modifiable = 0x801c486a8}
full_args = {arr = {buffer = 0x801c48628, element_size = 8}, v =
0x801c48628, v_modifiable = 0x801c48628}
i = 8
mail_cmd = {alloc = 0x436080 , name =
0x48cf58 "mailbox list", usage_args = 0x48cf65 "[-u |-A] [-S
] [-7|-8] [-s] [ [...]]"}
dashdash = 0x4969bf "--"
args_pos = 4
#14 0x00445d9b in doveadm_cmd_run_ver2 (argc=4,
argv=0x7fffeb40, cctx=0x7fffea60) at doveadm-cmd.c:572
---Type  to continue, or q  to quit---
param = (struct doveadm_cmd_param *) 0x801c17ae0
pargv = {arr = {buffer = 0x801c177d0, element_size = 104}, v =
0x801c177d0, v_modifiable = 0x801c177d0}
opts = {arr = {buffer = 0x801c17598, element_size = 32}, v =
0x801c17598, v_modifiable = 0x801c17598}
pargc = 8
c = -1
li = 32767
pool = 0x801c17500
optbuf = (string_t *) 0x801c17518
#15 0x004458c1 in doveadm_cmd_try_run_ver2 (cmd_name=0x7fffeda8

Re: doveadm mailbox list -s Segmentation fault

2017-11-20 Thread Aki Tuomi
can you please send bt full output?

Aki


On 20.11.2017 10:30, Kristjan Eentsalu wrote:
> Hey,
>
> I'm getting Segmentation fault when doing "doveadm mailbox list -s -u
> kristjan.eentsalu".
> doveadm mailbox list -u kristjan.eentsalu works fine.
>
> OS: FreeBSD 11.1-RELEASE-p1
> Dovecot 2.2.33.2 , pigenhole 0.4.21
>
> Trace and dovecot -n below
>
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd"...
> Core was generated by `doveadm mailbox list -s -u kristjan.eentsalu'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib/libz.so.6...done.
> Loaded symbols for /lib/libz.so.6
> Reading symbols from /lib/libcrypt.so.5...done.
> Loaded symbols for /lib/libcrypt.so.5
> Reading symbols from /usr/local/lib/dovecot/libdovecot-storage.so.0...done.
> Loaded symbols for /usr/local/lib/dovecot/libdovecot-storage.so.0
> Reading symbols from /usr/local/lib/dovecot/libdovecot.so.0...done.
> Loaded symbols for /usr/local/lib/dovecot/libdovecot.so.0
> Reading symbols from /lib/libc.so.7...done.
> Loaded symbols for /lib/libc.so.7
> Reading symbols from /usr/local/lib/dovecot/lib01_acl_plugin.so...done.
> Loaded symbols for /usr/local/lib/dovecot/lib01_acl_plugin.so
> Reading symbols from /usr/local/lib/dovecot/lib10_quota_plugin.so...done.
> Loaded symbols for /usr/local/lib/dovecot/lib10_quota_plugin.so
> Reading symbols from /usr/local/lib/dovecot/lib15_notify_plugin.so...done.
> Loaded symbols for /usr/local/lib/dovecot/lib15_notify_plugin.so
> Reading symbols from /usr/local/lib/dovecot/lib20_mail_log_plugin.so...done.
> Loaded symbols for /usr/local/lib/dovecot/lib20_mail_log_plugin.so
> Reading symbols from
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so...done.
> Loaded symbols for
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
> Reading symbols from
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so...done.
> Loaded symbols for
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
> Reading symbols from
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so...done.
> Loaded symbols for
> /usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
> Reading symbols from
> /usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0...done.
> Loaded symbols for
> /usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0
> Reading symbols from /usr/local/lib/libldap-2.4.so.2...done.
> Loaded symbols for /usr/local/lib/libldap-2.4.so.2
> Reading symbols from /usr/local/lib/liblber-2.4.so.2...done.
> Loaded symbols for /usr/local/lib/liblber-2.4.so.2
> Reading symbols from /usr/local/lib/dovecot/libdovecot-lda.so.0...done.
> Loaded symbols for /usr/local/lib/dovecot/libdovecot-lda.so.0
> Reading symbols from /usr/lib/libssl.so.8...done.
> Loaded symbols for /usr/lib/libssl.so.8
> Reading symbols from /lib/libcrypto.so.8...done.
> Loaded symbols for /lib/libcrypto.so.8
> Reading symbols from /libexec/ld-elf.so.1...done.
> Loaded symbols for /libexec/ld-elf.so.1
> #0  0x000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
> "INBOX", create=false, created_r=0x7fffe4f7) at mailbox-tree.c:103
> 103 if (*path != tree->separator && *path != '\0')
>
>
> # 2.2.33.2 (d6601f4ec): /usr/local/etc/dovecot/dovecot.conf
> # Pigeonhole version 0.4.21 (92477967)
> # OS: FreeBSD 11.1-RELEASE-p1 amd64
> auth_master_user_separator = *
> auth_verbose_passwords = plain
> disable_plaintext_auth = no
> lmtp_save_to_detail_mailbox = yes
> mail_access_groups = imapmail
> mail_gid = imapmail
> mail_plugins = acl quota mail_log notify
> mail_uid = imapmail
> mailbox_list_index = yes
> managesieve_notify_capability = mailto
> managesieve_sieve_capability = fileinto reject envelope encoded-character
> vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
> copy include variables body enotify environment mailbox date index ihave
> duplicate mime foreverypart extracttext editheader
> namespace {
>   hidden = no
>   inbox = no
>   list = no
>   location =
>   prefix =
>   separator = /
>   subscriptions = yes
>   type = private
> }
> namespace avalik {
>   hidden = no
>   list = children
>   location = maildir:/mail/imap/
> domain.ee/shared:INDEXPVT=%h/public:LAYOUT=fs:DIRNAME=dsfFSFS
>   prefix = shared/
>   separator = /
>   subscriptions = no
>   type = public
> }
> namespace inbox {
>   alias_for =
>   hidden = no
>   inbox = yes
>   list = yes
>   location =
>   mailbox Drafts {
> special_use = \Drafts
>   }
>   mailbox Sent {
> special_use = \Sent
>   }
>   mailbox "Sent Messages" {
> special_use = \Sent
>   }
>   mailbox Spam {
> 

doveadm mailbox list -s Segmentation fault

2017-11-20 Thread Kristjan Eentsalu
Hey,

I'm getting Segmentation fault when doing "doveadm mailbox list -s -u
kristjan.eentsalu".
doveadm mailbox list -u kristjan.eentsalu works fine.

OS: FreeBSD 11.1-RELEASE-p1
Dovecot 2.2.33.2 , pigenhole 0.4.21

Trace and dovecot -n below

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `doveadm mailbox list -s -u kristjan.eentsalu'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /lib/libcrypt.so.5...done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/local/lib/dovecot/libdovecot-storage.so.0...done.
Loaded symbols for /usr/local/lib/dovecot/libdovecot-storage.so.0
Reading symbols from /usr/local/lib/dovecot/libdovecot.so.0...done.
Loaded symbols for /usr/local/lib/dovecot/libdovecot.so.0
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/dovecot/lib01_acl_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/lib01_acl_plugin.so
Reading symbols from /usr/local/lib/dovecot/lib10_quota_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/lib10_quota_plugin.so
Reading symbols from /usr/local/lib/dovecot/lib15_notify_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/lib15_notify_plugin.so
Reading symbols from /usr/local/lib/dovecot/lib20_mail_log_plugin.so...done.
Loaded symbols for /usr/local/lib/dovecot/lib20_mail_log_plugin.so
Reading symbols from
/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so...done.
Loaded symbols for
/usr/local/lib/dovecot/doveadm/lib10_doveadm_acl_plugin.so
Reading symbols from
/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so...done.
Loaded symbols for
/usr/local/lib/dovecot/doveadm/lib10_doveadm_quota_plugin.so
Reading symbols from
/usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so...done.
Loaded symbols for
/usr/local/lib/dovecot/doveadm/lib10_doveadm_sieve_plugin.so
Reading symbols from
/usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0...done.
Loaded symbols for
/usr/local/lib/dovecot-2.2-pigeonhole/libdovecot-sieve.so.0
Reading symbols from /usr/local/lib/libldap-2.4.so.2...done.
Loaded symbols for /usr/local/lib/libldap-2.4.so.2
Reading symbols from /usr/local/lib/liblber-2.4.so.2...done.
Loaded symbols for /usr/local/lib/liblber-2.4.so.2
Reading symbols from /usr/local/lib/dovecot/libdovecot-lda.so.0...done.
Loaded symbols for /usr/local/lib/dovecot/libdovecot-lda.so.0
Reading symbols from /usr/lib/libssl.so.8...done.
Loaded symbols for /usr/lib/libssl.so.8
Reading symbols from /lib/libcrypto.so.8...done.
Loaded symbols for /lib/libcrypto.so.8
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
"INBOX", create=false, created_r=0x7fffe4f7) at mailbox-tree.c:103
103 if (*path != tree->separator && *path != '\0')


# 2.2.33.2 (d6601f4ec): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 0.4.21 (92477967)
# OS: FreeBSD 11.1-RELEASE-p1 amd64
auth_master_user_separator = *
auth_verbose_passwords = plain
disable_plaintext_auth = no
lmtp_save_to_detail_mailbox = yes
mail_access_groups = imapmail
mail_gid = imapmail
mail_plugins = acl quota mail_log notify
mail_uid = imapmail
mailbox_list_index = yes
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character
vacation subaddress comparator-i;ascii-numeric relational regex imap4flags
copy include variables body enotify environment mailbox date index ihave
duplicate mime foreverypart extracttext editheader
namespace {
  hidden = no
  inbox = no
  list = no
  location =
  prefix =
  separator = /
  subscriptions = yes
  type = private
}
namespace avalik {
  hidden = no
  list = children
  location = maildir:/mail/imap/
domain.ee/shared:INDEXPVT=%h/public:LAYOUT=fs:DIRNAME=dsfFSFS
  prefix = shared/
  separator = /
  subscriptions = no
  type = public
}
namespace inbox {
  alias_for =
  hidden = no
  inbox = yes
  list = yes
  location =
  mailbox Drafts {
special_use = \Drafts
  }
  mailbox Sent {
special_use = \Sent
  }
  mailbox "Sent Messages" {
special_use = \Sent
  }
  mailbox Spam {
special_use = \Junk
  }
  mailbox Trash {
special_use = \Trash
  }
  prefix = INBOX/
  separator = /
  subscriptions = no
  type = private
}
namespace user {
  list = children
  location =
maildir:%%h/Maildir:LAYOUT=fs:DIRNAME=dsfFSFS:INDEXPVT=%h/shared/%%n
  prefix = user/%%n/
  separator = /
  subscriptions = no
  type =