Re: v2.2.30 released

2017-05-30 Thread Timo Sirainen
On 30 May 2017, at 23.51, Joseph Tam  wrote:
> 
> 
> Timo Sirainen announced
> 
>> + If dovecot.index.cache corruption is detected, reset only the one
>>  corrupted mail instead of the whole file.
> 
> Is this a big performance win?  I still have users with jumbo mailboxes
> who insist on direct mailbox file access using procmail or mail readers,
> which trigger index rebuilds when dovecot accesses them.

What does Dovecot log then? But probably doesn't affect that. It's only when 
Dovecot logs something about dovecot.index.cache corruption that this helps.


Re: mailserver.users does not exist

2017-05-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 28 May 2017, Amaechi Janneh wrote:


It appears that I have an issue with my dovecot setup. When trying to
authenticate, i get this error:

May 28 20:18:26 AmaechiJ dovecot[10516]: imap-login: Login: user=<
a...@example.com>, method=PLAIN, rip=, lip=, mpid=10879, TLS, ses...QOQBg9rlR>
May 28 20:18:42 AmaechiJ dovecot[10516]: imap(a...@example.com): Connection
closed in=116 out=1311
May 28 20:20:32 AmaechiJ dovecot[10516]: auth-worker(10892): Warning:
mysql: Query failed, retrying: Table 'mailserver.users' doesn't exist
May 28 20:20:32 AmaechiJ dovecot[10516]: auth-worker(10892): Error: sql(
a...@example.com,): User query failed: Table 'mailserver.users' doesn't exist


The error says that the place (SQL database) you've configured in 
Dovecot to look at is missing a table named 'mailserver.users'.



May 28 20:20:32 AmaechiJ dovecot[10516]: imap-login: Login: user=<
a...@example.com>, method=PLAIN, rip=, lip=, mpid=10894, TLS, ses...QZwBg9rlR>

But I already have the users data under virtual_users. So what should I do?


What's the sameness of "virtual_users" and "mailserver.users"?

Show us your SQL definition and SQL database layout.

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQEVAwUBWS5TAnz1H7kL/d9rAQLiGAf/f5fIwVTkZ/OEW3G+z3bpZT5YrMziROav
QtJyFDIv+WQ3g7Y3HjaNK89MdVKqWJTn4P/slbfncl5F/a/BjKYyf1nHtl1E7SnY
jSyuKcf6MOuj8jwfRyUzkkrl45sRsePMOro1xhDE5LqK2pIgrXflqJdDEEWdEvCX
JRIG2oPw3NHzOVeMkjgps6I972OEBMsFCicRQT2MqGXEAY36qQ0Tm8Fekh01LG80
kwmeweMG9Ln87x8B7v0Pj8fb2kFFQhuGwFyr2C+HV0DoMZ4DVibZ1OujQaEmAkTN
UHE59AgXGtjaN7/ZUfxK7J46zSQMxyi6HPspuAfjty45zjssZJ1HQw==
=yEGO
-END PGP SIGNATURE-


Thunderbird "Empty Trash" causes inconsistent IMAP session state?

2017-05-30 Thread awl1

All,

having successfully compiled and set up Dovecot 2.2.29.1 on my Thecus 
NAS as a newbie without any further hassle, and already imported an 
external mail archive of ~15 GB into a lz4-compressed mdbox (with 
impressive performance on the old Intel Atom CPU!), I stumbled into a 
minor, but reproducible issue that might well be already known, but I 
haven't managed to find any pointers through Google search:


When I *manually empty the Trash folder from Thunderbird* (52.1.1, 
regardless of Windows or Linux client) by right-clicking on a non-empty 
Trash folder and then selecting "Empty trash", Dovecot produces the 
following log message, and I need to restart Thunderbird client in order 
to properly refresh its folder status:


May 30 23:42:04 imap(x...@xxx.org): Info: *IMAP session state is 
inconsistent, please relogin.* in=405 out=3114


Is this behaviour and message intended, or did I indeed run into a bug here?

Many thanks & best regards
Andreas


Re: v2.2.30 released

2017-05-30 Thread Joseph Tam


Timo Sirainen announced


+ If dovecot.index.cache corruption is detected, reset only the one
  corrupted mail instead of the whole file.


Is this a big performance win?  I still have users with jumbo mailboxes
who insist on direct mailbox file access using procmail or mail readers,
which trigger index rebuilds when dovecot accesses them.

Joseph Tam 


Re: SSL problem - no banner

2017-05-30 Thread Joseph Tam

Marcio Merlone  writes:


Only openssl s_client -connect localhost:993 works fine and fast, while
all MUA's and telnet does not. Telnet timeouts waiting for banner after
a minute or so:

root@netuno:~# openssl s_client -connect localhost:993
...
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE
IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
...
root@netuno:~# telnet localhost 993
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
(about 1 minute later...)
Connection closed by foreign host.


You misundertand how SSL (or TLS) vs STARTTLS works.

SSL/TLS (on port 993) starts negotiating a secure session protocol right
after connection, which involves binary exchange of data, certificates,
etc..  This is what "openssl s_client ..." does, but telnet does not.
Only after the SSL handshake completes will you get banners, etc.

STARTTLS starts out as a unencrypted session and thus, you'll get the
initial banner.  The client is then expected to initiate a secure session
by issuing a STARTTLS directive, whereupon client and server starts the
secure session negotiation like above.  To test this, you would use

openssl s_client -starttls imap -connect localhost:143

So telnet doesn't work because it does not do SSL.  Your MUA don't work
because of the same misunderstanding, or there's some network issue
at play.

You need to align your clients to use the security protocol you've
enabled.

Joseph Tam 


Re: Still trouble with vpopmail

2017-05-30 Thread Bobber

 Original Message 
Subject: Re: Still trouble with vpopmail
From: Odhiambo Washington 
To: Dovecot Mailing List 
Date: 05/30/2017 03:18 PM

Sorry to ask, what's vpopmail and how is it related to dovecot?

http://www.inter7.com/vpopmail-virtualized-email/

Specifically the vpopmail database.
https://wiki.dovecot.org/AuthDatabase/VPopMail


--
*Bob Wooldridge*
Blog: http://kc0dxf.net/blog/


Re: Still trouble with vpopmail

2017-05-30 Thread Odhiambo Washington
Sorry to ask, what's vpopmail and how is it related to dovecot?


On 30 May 2017 at 22:33, Bobber  wrote:

> Getting this error:
>
> In file included from ../../src/lib/lib.h:6:0,
>>  from auth-common.h:4,
>>  from userdb-vpopmail.c:5:
>> ../../config.h:791:0: note: this is the location of the previous
>> definition
>>  #define VERSION "2.2.30"
>>  ^
>> userdb-vpopmail.c: In function ‘userdb_vpopmail_get_quota’:
>> userdb-vpopmail.c:72:6: error: too many arguments to function ‘var_expand’
>>   if (var_expand(quota, template, tab, error_r) < 0)
>>   ^
>> In file included from auth-request.h:5:0,
>>  from userdb.h:89,
>>  from userdb-vpopmail.c:6:
>> ../../src/lib/var-expand.h:18:6: note: declared here
>>  void var_expand(string_t *dest, const char *str,
>>   ^
>> userdb-vpopmail.c:72:2: error: void value not ignored as it ought to be
>>   if (var_expand(quota, template, tab, error_r) < 0)
>>
>
> --
> *Bob Wooldridge*
> Blog: http://kc0dxf.net/blog/
>



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


Still trouble with vpopmail

2017-05-30 Thread Bobber

Getting this error:


In file included from ../../src/lib/lib.h:6:0,
 from auth-common.h:4,
 from userdb-vpopmail.c:5:
../../config.h:791:0: note: this is the location of the previous 
definition

 #define VERSION "2.2.30"
 ^
userdb-vpopmail.c: In function ‘userdb_vpopmail_get_quota’:
userdb-vpopmail.c:72:6: error: too many arguments to function ‘var_expand’
  if (var_expand(quota, template, tab, error_r) < 0)
  ^
In file included from auth-request.h:5:0,
 from userdb.h:89,
 from userdb-vpopmail.c:6:
../../src/lib/var-expand.h:18:6: note: declared here
 void var_expand(string_t *dest, const char *str,
  ^
userdb-vpopmail.c:72:2: error: void value not ignored as it ought to be
  if (var_expand(quota, template, tab, error_r) < 0)


--
*Bob Wooldridge*
Blog: http://kc0dxf.net/blog/


v2.2.30 released

2017-05-30 Thread Timo Sirainen
https://dovecot.org/releases/2.2/dovecot-2.2.30.tar.gz
https://dovecot.org/releases/2.2/dovecot-2.2.30.tar.gz.sig

 * auth: Use timing safe comparisons for everything related to
   passwords. It's unlikely that these could have been used for
   practical attacks, especially because Dovecot delays and flushes all
   failed authentications in 2 second intervals. Also it could have
   worked only when passwords were stored in plaintext in the passdb.
 * master process sends SIGQUIT to all running children at shutdown,
   which instructs them to close all the socket listeners immediately.
   This way restarting Dovecot should no longer fail due to some
   processes keeping the listeners open for a long time.

 + auth: Add passdb { mechanisms=none } to match separate passdb lookup
 + auth: Add passdb { username_filter } to use passdb only if user
   matches the filter. See https://wiki2.dovecot.org/PasswordDatabase
 + dsync: Add dsync_commit_msgs_interval setting. It attempts to commit
   the transaction after saving this many new messages. Because of the
   way dsync works, it may not always be possible if mails are copied
   or UIDs need to change.
 + imapc: Support imapc_features=search without ESEARCH extension.
 + imapc: Add imapc_features=fetch-bodystructure to pass through remote
   server's FETCH BODY and BODYSTRUCTURE.
 + imapc: Add quota=imapc backend to use GETQUOTA/GETQUOTAROOT on the
   remote server.
 + passdb imap: Add allow_invalid_cert and ssl_ca_file parameters.
 + If dovecot.index.cache corruption is detected, reset only the one
   corrupted mail instead of the whole file.
 + doveadm mailbox status: Add "firstsaved" field.
 + director_flush_socket: Add old host's up/down and vhost count as parameters
 - More fixes to automatically fix corruption in dovecot.list.index
 - dsync-server: Fix support for dsync_features=empty-header-workaround
 - imapc: Various bugfixes, including infinite loops on some errors
 - IMAP NOTIFY wasn't working for non-INBOX if IMAP client hadn't
   enabled modseq tracking via CONDSTORE/QRESYNC.
 - fts-lucene: Fix it to work again with mbox format
 - Some internal error messages may have contained garbage in v2.2.29
 - mail-crypt: Re-encrypt when copying/moving mails and per-mailbox keys
   are used. Otherwise the copied mails can't be opened.
 - vpopmail: Fix compiling


Re: Can only enable Sieve scripts not edit them (Roundcube)

2017-05-30 Thread Paul Littlefield

Hi Doug,

Weirdly, a reboot fixed it.

Paul


On 29/05/17 04:05, Doug Barton wrote:

If it's feasible for you, try the 1.3-RC. Many improvements in the Sieve plugin 
(and other areas).

hope this helps,

Doug

On 5/5/2017 7:25 AM, Paul Littlefield wrote:

Hello,

(my first post so be gentle)

I will be posting this to the Roundcube mailing list too, but thought it worth 
asking here as well.

I have a Roundcube installation running Apache with Dovecot and Sieve.

When logged in to Roundcube, a user can see the Sieve scripts and enable or 
disable them but NOT edit them or create new scripts.

In other words, Dovecot will happily EDIT the script to mark it as 'false' but 
will not edit the actual rules or create a new rule...

e.g.

require ["fileinto","vacation"];
# rule:[Out of Office]
if false # true
{
 vacation :days 1 :addresses "m...@mydomain.com" :subject "Out of Office" :from 
"m...@mydomain.com" "I am out of the office.";
}
# rule:[Spam]
if header :contains "subject" "{Spam}"
{
 fileinto "Spam";
}

Any ideas?

Thanks,



--

Paul Littlefield

Telephone: 07801 125705
Email: i...@paully.co.uk
Wiki: http://wiki.indie-it.com/wiki/Special:AllPages
LinkedIn: https://uk.linkedin.com/in/paullittlefield

Paul Littlefield is environmentally responsible. Please consider the 
environment before printing this email. This email and any attachment is 
intended for the named addressee only, or person authorised to receive it on 
their behalf. The content should be treated as confidential and the recipient 
may not disclose this message or any attachment to anyone else without 
authorisation. If this transmission is received in error please notify the 
sender immediately and delete this message from your email system. All 
electronic transmissions to and from me are recorded and may be monitored. 
Finally, the recipient should check this email and any attachments for viruses. 
Paul Littlefield accepts no liability for any damage caused by any virus 
transmitted by this email.

Ubuntu 16.04.2 LTS (x86_64)


mailserver.users does not exist

2017-05-30 Thread Amaechi Janneh
Hello.

It appears that I have an issue with my dovecot setup. When trying to
authenticate, i get this error:

May 28 20:18:26 AmaechiJ dovecot[10516]: imap-login: Login: user=<
a...@example.com>, method=PLAIN, rip=, lip=, mpid=10879, TLS, ses...QOQBg9rlR>
May 28 20:18:42 AmaechiJ dovecot[10516]: imap(a...@example.com): Connection
closed in=116 out=1311
May 28 20:20:32 AmaechiJ dovecot[10516]: auth-worker(10892): Warning:
mysql: Query failed, retrying: Table 'mailserver.users' doesn't exist
May 28 20:20:32 AmaechiJ dovecot[10516]: auth-worker(10892): Error: sql(
a...@example.com,): User query failed: Table 'mailserver.users' doesn't exist
May 28 20:20:32 AmaechiJ dovecot[10516]: imap-login: Login: user=<
a...@example.com>, method=PLAIN, rip=, lip=, mpid=10894, TLS, ses...QZwBg9rlR>

But I already have the users data under virtual_users. So what should I do?

Regards,

Amaechi Janneh


Re: SSL problem - no banner

2017-05-30 Thread Olaf Hopp

On 05/29/2017 08:35 PM, Aki Tuomi wrote:



On May 29, 2017 at 9:27 PM Marcio Merlone  wrote:





--
*Marcio Merlone*


It is not exactly obvious what you are expecting to happen. You won't get plain 
text banner out of port 993, if you want to use STARTTLS, use port 143.

Aki



To see the Dovecot-IMAP-banner via SSL-port 993 use openssl:

openssl s_client -connect localhost:993

Olaf

--
Karlsruher Institut für Technologie (KIT)
ATIS - Abt. Technische Infrastruktur, Fakultät für Informatik

Dipl.-Geophys. Olaf Hopp
- Leitung IT-Dienste -

Am Fasanengarten 5, Gebäude 50.34, Raum 009
76131 Karlsruhe
Telefon: +49 721 608-43973
Fax: +49 721 608-46699
E-Mail: olaf.h...@kit.edu
www.atis.informatik.kit.edu

www.kit.edu

KIT - Die Forschungsuniversität in der Helmholtz-Gemeinschaft

Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Fatal error with IMAP MOVE from a shared mailbox to Trash folder

2017-05-30 Thread Aki Tuomi

> On May 30, 2017 at 6:03 PM James Cassell  wrote:
> 
> 
> On Tue, Jan 3, 2017, at 06:14 PM, Aki Tuomi wrote:
> > 
> > 
> > On 12/27/2016 06:35 PM, Daniele Barresi wrote:
> > > Hello everyone.
> > > I have a problem using Dovecot 2.2.26 with ACL plugin and deleting e-mails
> > > from a shared mailbox.
> > >
> > > My user doesn't have the "expunge" permission on the shared mailbox, but 
> > > it
> > > has the "write-deleted" permission. So, when I delete a message from the
> > > shared mailbox using a client that implements the IMAP MOVE command, it
> > > tries to move the message to my Trash folder. Then the server closes the
> > > connection to the client (process aborted) and I get three lines in the 
> > > log
> > > file with a backtrace and "Fatal" error. In this case the message doesn't
> > > get copied or moved from the shared folder and the client complaints. I
> > > found the same thing happens whenever I try to move anything between
> > > folders of the shared mailbox itself, while logged in with my user. I can
> > > move messages inside my own mailbox just fine.
> > >
> > > If I try the same operation from a client that uses the IMAP COPY + DELETE
> > > commands, no errors are logged and the outcome is as expected: the message
> > > gets copied from the shared folder to my Trash and gets the flag 
> > > "\Deleted"
> > > set on the shared folder.
> > >
> > > My setup is as follows:
> > >
> > >Dovecot: 2.2.26.0
> > >OS: Ubuntu 16.04.1 LTS
> > >CPU architecture: x86_64
> > >Filesystem: ext4
> > >
> > >
> > > The relevant lines from mail.err log:
> > >
> > > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Panic: file
> > > mail-storage.c: line 2143 (mailbox_save_context_reset): assertion failed:
> > > (ctx->copying_via_save)
> > > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Error: Raw
> > > backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x9438e) [0x7fbcd478538e] ->
> > > /usr/lib/dovecot/libdovecot.so.0(+0x9447c) [0x7fbcd478547c] ->
> > > /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fbcd471ea4e] ->
> > > /usr/lib/dovecot/libdovecot-storage.so.0(+0x41b78) [0x7fbcd4a50b78] ->
> > > /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_save_cancel+0x73)
> > > [0x7fbcd4a53d73] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xe142)
> > > [0x7fbcd3f1d142] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x4516d)
> > > [0x7fbcd4a5416d] ->
> > > /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_move+0x23)
> > > [0x7fbcd4a54333] -> dovecot/imap(+0xf9c5) [0x557cf98629c5] ->
> > > dovecot/imap(command_exec+0xa6) [0x557cf986f196] -> dovecot/imap(+0x1a4c2)
> > > [0x557cf986d4c2] -> dovecot/imap(+0x1a550) [0x557cf986d550] ->
> > > dovecot/imap(client_handle_input+0x195) [0x557cf986d915] ->
> > > dovecot/imap(client_input+0x85) [0x557cf986de25] ->
> > > /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x4c) [0x7fbcd4799bdc] ->
> > > /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10a)
> > > [0x7fbcd479b09a] ->
> > > /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x25) 
> > > [0x7fbcd4799c65]
> > > -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fbcd4799e08] ->
> > > /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fbcd4724f53]
> > > -> dovecot/imap(main+0x322) [0x557cf9860ca2] ->
> > > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fbcd4348830] 
> > > ->
> > > dovecot/imap(+0xde1f) [0x557cf9860e1f]
> > > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Fatal: master:
> > > service(imap): child 6907 killed with signal 6 (core dumped)
> > >
> > >
> > > Dovecot configuration (doveadm -n):
> > >
> > > # 2.2.26.0 (23d1de6): /etc/dovecot/dovecot.conf
> > > # Pigeonhole version 0.4.16 (fed8554)
> > > # OS: Linux 4.4.0-57-generic x86_64 Ubuntu 16.04.1 LTS
> > > auth_cache_negative_ttl = 10 mins
> > > auth_cache_size = 2 M
> > > auth_master_user_separator = *
> > > auth_mechanisms = plain login
> > > first_valid_uid = 12
> > > last_valid_uid = 12
> > > mail_location = maildir:~/Maildir
> > > mail_plugins = acl quota notify mail_log stats lazy_expunge
> > > 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
> > > namespace casellecondivise {
> > >list = children
> > >location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
> > >prefix = Caselle condivise/%%u/
> > >separator = /
> > >subscriptions = no
> > >type = shared
> > > }
> > > namespace expunged {
> > >hidden = yes
> > >list = no
> > >location = maildir:/var/expunged/%n/Expunged
> > >prefix = EXPUNGED/
> > >separator = /
> > > }
> > > namespace inbox {
> > >inbox = yes
> > >location =
> > >mailbox Archive {
> > >  auto = subscribe
> > >  spec

Re: Fatal error with IMAP MOVE from a shared mailbox to Trash folder

2017-05-30 Thread James Cassell
On Tue, Jan 3, 2017, at 06:14 PM, Aki Tuomi wrote:
> 
> 
> On 12/27/2016 06:35 PM, Daniele Barresi wrote:
> > Hello everyone.
> > I have a problem using Dovecot 2.2.26 with ACL plugin and deleting e-mails
> > from a shared mailbox.
> >
> > My user doesn't have the "expunge" permission on the shared mailbox, but it
> > has the "write-deleted" permission. So, when I delete a message from the
> > shared mailbox using a client that implements the IMAP MOVE command, it
> > tries to move the message to my Trash folder. Then the server closes the
> > connection to the client (process aborted) and I get three lines in the log
> > file with a backtrace and "Fatal" error. In this case the message doesn't
> > get copied or moved from the shared folder and the client complaints. I
> > found the same thing happens whenever I try to move anything between
> > folders of the shared mailbox itself, while logged in with my user. I can
> > move messages inside my own mailbox just fine.
> >
> > If I try the same operation from a client that uses the IMAP COPY + DELETE
> > commands, no errors are logged and the outcome is as expected: the message
> > gets copied from the shared folder to my Trash and gets the flag "\Deleted"
> > set on the shared folder.
> >
> > My setup is as follows:
> >
> >Dovecot: 2.2.26.0
> >OS: Ubuntu 16.04.1 LTS
> >CPU architecture: x86_64
> >Filesystem: ext4
> >
> >
> > The relevant lines from mail.err log:
> >
> > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Panic: file
> > mail-storage.c: line 2143 (mailbox_save_context_reset): assertion failed:
> > (ctx->copying_via_save)
> > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Error: Raw
> > backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x9438e) [0x7fbcd478538e] ->
> > /usr/lib/dovecot/libdovecot.so.0(+0x9447c) [0x7fbcd478547c] ->
> > /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7fbcd471ea4e] ->
> > /usr/lib/dovecot/libdovecot-storage.so.0(+0x41b78) [0x7fbcd4a50b78] ->
> > /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_save_cancel+0x73)
> > [0x7fbcd4a53d73] -> /usr/lib/dovecot/modules/lib01_acl_plugin.so(+0xe142)
> > [0x7fbcd3f1d142] -> /usr/lib/dovecot/libdovecot-storage.so.0(+0x4516d)
> > [0x7fbcd4a5416d] ->
> > /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_move+0x23)
> > [0x7fbcd4a54333] -> dovecot/imap(+0xf9c5) [0x557cf98629c5] ->
> > dovecot/imap(command_exec+0xa6) [0x557cf986f196] -> dovecot/imap(+0x1a4c2)
> > [0x557cf986d4c2] -> dovecot/imap(+0x1a550) [0x557cf986d550] ->
> > dovecot/imap(client_handle_input+0x195) [0x557cf986d915] ->
> > dovecot/imap(client_input+0x85) [0x557cf986de25] ->
> > /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x4c) [0x7fbcd4799bdc] ->
> > /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x10a)
> > [0x7fbcd479b09a] ->
> > /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x25) [0x7fbcd4799c65]
> > -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7fbcd4799e08] ->
> > /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7fbcd4724f53]
> > -> dovecot/imap(main+0x322) [0x557cf9860ca2] ->
> > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fbcd4348830] ->
> > dovecot/imap(+0xde1f) [0x557cf9860e1f]
> > Dec 27 15:21:18 dovecot dovecot: imap(danielebarresi): Fatal: master:
> > service(imap): child 6907 killed with signal 6 (core dumped)
> >
> >
> > Dovecot configuration (doveadm -n):
> >
> > # 2.2.26.0 (23d1de6): /etc/dovecot/dovecot.conf
> > # Pigeonhole version 0.4.16 (fed8554)
> > # OS: Linux 4.4.0-57-generic x86_64 Ubuntu 16.04.1 LTS
> > auth_cache_negative_ttl = 10 mins
> > auth_cache_size = 2 M
> > auth_master_user_separator = *
> > auth_mechanisms = plain login
> > first_valid_uid = 12
> > last_valid_uid = 12
> > mail_location = maildir:~/Maildir
> > mail_plugins = acl quota notify mail_log stats lazy_expunge
> > 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
> > namespace casellecondivise {
> >list = children
> >location = maildir:%%h/Maildir:INDEXPVT=~/Maildir/shared/%%u
> >prefix = Caselle condivise/%%u/
> >separator = /
> >subscriptions = no
> >type = shared
> > }
> > namespace expunged {
> >hidden = yes
> >list = no
> >location = maildir:/var/expunged/%n/Expunged
> >prefix = EXPUNGED/
> >separator = /
> > }
> > namespace inbox {
> >inbox = yes
> >location =
> >mailbox Archive {
> >  auto = subscribe
> >  special_use = \Archive
> >}
> >mailbox Drafts {
> >  auto = subscribe
> >  special_use = \Drafts
> >}
> >mailbox Junk {
> >  auto = subscribe
> >  special_use = \Junk
> >}
> >mailbox Sent {
> >  auto = subscribe
> >  special_use = \Sent
> >}
> >mail

virtual folder: how to store in mysql?

2017-05-30 Thread dovecot@avv.solutions

Hello Community,

Now that virtual folders seem to work fine, I stil lhave 2 questions :

1° Is it possible to store the virtual folder definition (aka content of 
Folder/dovecot-virtual) in mysql?


2° I have duplicates in my "Unseen", which both correctly disappear once 
handled one of them

Example:
!Inbox
*
-Inbox (tried this but does not succeed
-Trash
-Trash/*
Public/*
Unseen

2°bis :) I tried to put the "common defs" in a shared folder 
(/etc/dovecot/virtual) using personal index
location = 
virtual:/etc/dovecot/virtual:INDEX=/sd/MAIL_IMAP_POP/%d/%n/__Virtual/
This does not work, I have to *copy* (even symlinks do not succeed) the 
definitions and use
location = 
virtual:/sd/MAIL_IMAP_POP/%d/%n/__Virtual:INDEX=/sd/MAIL_IMAP_POP/%d/%n/__Virtual/
I already tried to set perms on /etc/dovecot/virtual to: vmail.vmail 
rw(x)--


Thank you!

Cheers


Re: Question about how to serve many imap users on some mailbox.

2017-05-30 Thread Alex JOST

Am 30.05.2017 um 11:59 schrieb Oleksandr Lystopad:

Hi, dear dovecot users!

I am running 2.2.29.1 (e0b76e3) on FreeBSD.

In my case, one mailbox i...@example.com is shared between 5-10 managers.

Sometimes they complains that no new messages displayed in folder message
count list in brackets (bold number if new messages exists), but when they
click on the imap folder (for example Inbox) they could see many new mails.
There not only Inbox folder, they have 10-30 folders with quite big flow of
new messages. Almost all users are using Microsoft Outlook MUA.


AFAIK Outlook doesn't automatically sync subfolders. I think you need to 
edit the schedule and enable sync for every subfolder explicitly.


--
Alex JOST


Question about how to serve many imap users on some mailbox.

2017-05-30 Thread Oleksandr Lystopad
Hi, dear dovecot users!

I am running 2.2.29.1 (e0b76e3) on FreeBSD.

In my case, one mailbox i...@example.com is shared between 5-10 managers.

Sometimes they complains that no new messages displayed in folder message
count list in brackets (bold number if new messages exists), but when they
click on the imap folder (for example Inbox) they could see many new mails.
There not only Inbox folder, they have 10-30 folders with quite big flow of
new messages. Almost all users are using Microsoft Outlook MUA.

Please, help me to solve the issue.


My config could be found bellow (dovecot -n):
auth_failure_delay = 12 secs
auth_mechanisms = login cram-md5 plain
auth_verbose = yes
disable_plaintext_auth = no
first_valid_gid = 26
first_valid_uid = 26
lda_mailbox_autocreate = yes
listen = *
login_greeting = imap/pop mailserver ready
mail_location = maildir:~/Maildir
mail_max_userip_connections = 50
mail_privileged_group = mail
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
passdb {
  args = /usr/local/etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocols = pop3 imap sieve
service auth {
  unix_listener auth-client {
group = mailnull
mode = 0600
user = mailnull
  }
  unix_listener auth-login {
group = mailnull
mode = 0600
user = $default_internal_user
  }
  unix_listener auth-master {
group = mailnull
mode = 0600
user = mailnull
  }
  unix_listener auth-userdb {
group = mailnull
mode = 0600
user = mailnull
  }
  user = root
}
service imap-login {
  inet_listener imap {
port = 143
  }
  inet_listener imaps {
port = 993
  }
}
service imap {
  process_limit = 512
}
service pop3-login {
  inet_listener pop3 {
port = 110
  }
  inet_listener pop3s {
port = 995
  }
}
service pop3 {
  process_limit = 512
}
ssl_cert =