All list=yes namespaces must use the same separator - don't they?

2023-09-25 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I am trying to configure shared mailboxes, so I enabled the acl and the imap_acl plugins. But I got the "All list=yes namespaces must use the same separator" error when I added this: namespace { type = shared #separator = # Mailboxes are visible under "shared/user@domain/" #

Re: All list=yes namespaces must use the same separator - don't they?

2023-09-25 Thread Francis Augusto Medeiros-Logeay via dovecot
It works everywhere now. I guess it just needed its sweet time. ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org

Re: All list=yes namespaces must use the same separator - don't they?

2023-09-25 Thread Francis Augusto Medeiros-Logeay via dovecot
I found what the problem was. It seems that using ‘.’ as a separator worked. But somehow folders and domain names with dots got messed up: maildir++: root=/var/mail/vmail/francisaugusto/francis, index=/var/mail/vmail/med-lo.eu/francis/shared/index/francis@francisaugusto,

Re: Dovecot lda-dupes

2023-09-28 Thread Francis Augusto Medeiros-Logeay via dovecot
Never mind, I found it. I had to add `replication_dsync_parameters`, with the default values, but with `-x shared` to exclude the namespace. Best, Francis ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to

Re: Dovecot lda-dupes

2023-09-28 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I have read elsewhere that the Maildir shouldn’t be at the home. But that’s how it worked for me since the start. I wonder if I could either change the location of these .dovecot.lda-dupes, or if I could change home without having to move the mailboxes of all the users. Today I have this:

Re: Changed separator, sub folders not showing new e-mail

2023-10-02 Thread Francis Augusto Medeiros-Logeay via dovecot
I found the answer here: https://apple.stackexchange.com/questions/441313/no-mailbox-doesnt-exist-separator-woes-in-mail-app-dovecot-interaction/441341#441341 Apparently on Mac one needs to update the separator on a file, since it doesn’t seem that the Mail.app does it for itself. On the

Changed separator, sub folders not showing new e-mail

2023-10-02 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I recently changed the mailbox separator from '.' to '/' so that I could have shared mailboxes working. However, while the mailboxes show fine on Roundcube and on other web-based e-mail clients, on the Mail.app on my Mac I don't get newer messages on those sub folders. For example, I

Exclude shared mailboxes from replication

2023-09-27 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I was wondering if it is possible to exclude shared mailboxes from replication. I have us...@mydomain.com sharing mailboxes to us...@mydomain.com. However, since both mailboxes already replicate to a backup server, I wonder if it is possible to exclude the replicated mailboxes from

Re: Separators and shared namespaces

2023-09-27 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, When I used a ‘.’ as a separator, it seemed to truncate paths with the domain name, such as those with %%d. That happened only to shared namespaces. Best, Francis ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to

Dovecot lda-dupes

2023-09-27 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, Since I enabled shared mailboxes I'm having these errors: Sep 27 21:22:41 doveadm(fran...@med-lo.eu): Error: Failed to access mailbox dovecot/lda-dupes: stat(/var/mail/vmail/med-lo.eu/francis/.dovecot.lda-dupes/tmp) failed: Not a directory And replication stopped. How can I fix this?

Separators and shared namespaces

2023-09-28 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi Martin, I had a similar problem: https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/DNHM3OOV3SZUC2SIS7FMWL7MMT64F73T/ It seemed to me that using ‘.’ truncated the domain name when that was used in the paths, such as when using %d. Best, Francis

Shared mailboxes and indexes

2023-10-06 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I googled a bit to see if I understand it, but no, I haven’t got anything that explains this: What’s exactly the difference between INDEX and INDEXPVT for shared mailboxes? Why are they pointing to the same folder on Dovecot example

Ouath2 compatible mail clients

2023-11-23 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, Are there any oauth2 compatible mail clients out there? For Mac/iOS? I see that Mail for Mac supports it, but just for Exchange.  __ Francis Augusto Medeiros-Logeay Oslo, Norway Sent from a mobile device / Enviado a partir de dispositivo móvel ___

dovecot and oauth2 (with keycloak) not working

2023-11-19 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I successfully configured Roundcube to use keycloak for oauth2. However, I am having trouble to make it work with dovecot. My configuration is this: cat dovecot-oauth2.conf.ext tokeninfo_url = https://auth.mydomain.com/realms/myrealm/protocol/openid-connect/userinfo introspection_url =

Re: dovecot and oauth2 (with keycloak) not working

2023-11-20 Thread Francis Augusto Medeiros-Logeay via dovecot
Try adding /?token= to tokeninfo_url. Dovecot 2.3.7.2 will simply concatenate tokeninfo_url and token, so you need to provide the URL in that fashion. Aki Thanks Aki. Still no go: Nov 20 08:59:19 auth: Debug: http-client: host auth.mydomain.com: Host created Nov 20 08:59:19 auth:

Re: [EXT] Re: dovecot and oauth2 (with keycloak) not working

2023-11-20 Thread Francis Augusto Medeiros-Logeay via dovecot
--- Francis Augusto Medeiros-Logeay Oslo, Norway On 2023-11-20 09:04, Aki Tuomi wrote: On 20/11/2023 10:03 EET Francis Augusto Medeiros-Logeay wrote: > Try adding /?token= to tokeninfo_url. Dovecot 2.3.7.2 will simply > concatenate tokeninfo_url and token, so you need to provide the URL

Re: [EXT] Re: dovecot and oauth2 (with keycloak) not working

2023-11-20 Thread Francis Augusto Medeiros-Logeay via dovecot
It seems that it works on the dovecot side. When Roundcube sends the token, I get the user authenticated via IMAP/oauth2 in dovecot. What worked for me was: - adding client_id and client_secret - removing the tokeninfo_url, using just the introspect_url and introspect_mode=token. Now

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
I noticed that my sieve rules are taking a very long time when archiving messages. I can see on my logs that every message takes about two-three seconds to be evaluated. My sieve for the Archive is this: cat /var/mail/vmail/mail/sieve/global/report-ham.sieve require ["vnd.dovecot.pipe",

OAUTH2 problem when migrating to Ubuntu 24.04

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I have a Dovecot server on Ubuntu 22.04, which works fine with Oauth2. I am building a new container based on Ubuntu 24.04. IMAP seems to work fine with plain authentication, but oauth2 fails (Dovecot v2.3.21). Same configuration as before. However, I got this message: May 09 09:41:57

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> I noticed that my sieve rules are taking a very long time when archiving > messages. I can see on my logs that every message takes about two-three > seconds to be evaluated. > > I also noticed this happens for a few accounts. Do you know what could be > causing this? > > Best, > Francis >

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
= On 2024-05-09 12:03, Marc wrote: I see report-ham, instead of archiving? I am not entirely sure if this is an efficient approach to archiving. My users can only set a flag for 'auto archiving' via sieve and then 3 months after every year messages are being moved by cron jobs, and

Re: OAUTH2 problem when migrating to Ubuntu 24.04

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
--- Francis Augusto Medeiros-Logeay Oslo, Norway On 2024-05-09 10:11, Aki Tuomi wrote: On 09/05/2024 10:46 EEST Francis Augusto Medeiros-Logeay via dovecot wrote: Hi, I have a Dovecot server on Ubuntu 22.04, which works fine with Oauth2. I am building a new container based on Ubuntu

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 12:55, dovecot-requ...@dovecot.org wrote: > > Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 11:28: > >> Actually, I don’t know here if that’s the sieve that’s slowing down the >> process, or if it is something else. >> I

Authentication questions

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I was wondering: 1 - Is it possible to configure authentication methods per user? For example, oauth2 for most users, but plain for others? 2 - I had a feeling that when oauth2 authentication fails, dovecot tries to authenticate via plain with the received token. Doesn’t seem logical, but

Re: Authentication questions

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 19:45, Aki Tuomi wrote: > > >> On 09/05/2024 20:15 EEST Francis Augusto Medeiros-Logeay via dovecot >> mailto:dovecot@dovecot.org>> wrote: >> >> >> Hi, >> >> I was wondering: >> >> 1 - Is it p

Re: Failing to archive many messages

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 19:45, dovecot-requ...@dovecot.org wrote: > > Francis Augusto Medeiros-Logeay via dovecot skrev den 2024-05-09 12:29: > >>> If you want to analyze emails, why not do it with scheduled crons >>> after they are archived? > > maybe ask

Re: Authentication questions

2024-05-09 Thread Francis Augusto Medeiros-Logeay via dovecot
> On 9 May 2024, at 19:45, Aki Tuomi wrote: > > >> On 09/05/2024 20:15 EEST Francis Augusto Medeiros-Logeay via dovecot >> mailto:dovecot@dovecot.org>> wrote: >> >> >> Hi, >> >> I was wondering: >> >> 1 - Is it p

ENV{"PATH"}. errors on my log

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, I'm getting this error a lot on my logs: May 01 12:57:03 imap: Error: Use of uninitialized value $ENV{"PATH"} in split at /usr/lib/x86_64-linux-gnu/perl-base/File/Spec/Unix.pm line 136. I googled a bit and the only reference I found was related to the possibility of imapsieve scripts

Failing to archive many messages

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi, When I archive one or two messages, the messages are correctly moved to the Archive. However, when I archive more messages - like 50 or more, dovecot seems to fail. The error I get is this one: Warning: Failed to do incremental sync for mailbox Archive, retry with a full sync (Modseq

Re: ENV{"PATH"}. errors on my log

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
Thanks! I actually had a bash script that calls sa-learn, so I added `export PATH ...` there, and it worked. Best, Francis --- Francis Augusto Medeiros-Logeay Oslo, Norway On 2024-05-01 13:23, Aki Tuomi wrote: On 01/05/2024 13:59 EEST Francis Augusto Medeiros-Logeay via dovecot wrote

Re: Failing to archive many messages

2024-05-01 Thread Francis Augusto Medeiros-Logeay via dovecot
It is weird. At first, it seems that the logs are going fine. It goes like this for many minutes: May 01 14:20:04 imap(fran...@mydomain.com)<226>: Debug: Mailbox Archive: UID 25719: Looked up field hdr.IN-REPLY-TO from mail cache May 01 14:20:04 imap(fran...@mydomain.com)<226>: Debug:

Re: Failing to archive many messages

2024-05-18 Thread Francis Augusto Medeiros-Logeay via dovecot
Thanks a lot Marc. I actually found something that works for me: I replaced `sa-learn -u xx --ham` with `spamc -u xx -L ham` Archiving wasn't as fast as simply moving messages, but was considerably faster - fast enough that no errors on Roundcube are reported. Best, Francis --- Francis

Re: Failing to archive many messages

2024-05-18 Thread Francis Augusto Medeiros-Logeay via dovecot
ving got way faster this way… Best, Francis > On 9 May 2024, at 23:09, dovecot-requ...@dovecot.org wrote: > >> On 9 May 2024, at 19:45, dovecot-requ...@dovecot.org >> <mailto:dovecot-requ...@dovecot.org> wrote: >> >> Francis Augusto Medeiros-L