Re: How to use http api doveadm to manage acl permissions

2023-09-28 Thread cyril . leclerc
yes it is zorking now and command available

so if i want to give all access to te...@test.com INBOX to te...@test.com this 
command is not good

[
[
"aclSet",
{
"user":"te...@test.com",
"mailbox":"te...@test.com/INBOX",
"right":"lrw"
},
"tag1"

]
]

based on 

{"command":"aclSet", "parameters":[
{"name":"allUsers","type":"boolean"},
{"name":"socketPath","type":"string"},
{"name":"user","type":"string"},
{"name":"transFlags","type":"integer"},
{"name":"userFile","type":"string"},
{"name":"mailbox","type":"string"},
{"name":"id","type":"string"},
{"name":"right","type":"array"}
]},
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: How to use http api doveadm to manage acl permissions

2023-09-28 Thread Aki Tuomi via dovecot


> On 28/09/2023 14:00 EEST cyril.lecl...@mantiq.com wrote:
> 
>  
> it seems the plugin is not installed on docker machine how i can install the 
> plugin to have the acl commands available ?because now it is not existing, i 
> have version 2.3.20 and command return unknow command
> thanks

Provide a config file with

mail_plugins = $mail_plugins acl

you can put this in e.g.

/etc/dovecot/conf.d/01-acl.conf

for your docker.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Can Dovecot Use Wildcard TLS Certificates?

2023-09-28 Thread Stuart Henderson
On 2023-09-27, dovecot--- via dovecot  wrote:
>> Quick Q: Can dovecot use wildcard TLS Certificates?
>> 
>> I'm having issues with a new dovecot/postfix stack set-up and I can't get 
>> mutt on the local box to connect via imap - its coming back with an SSL 
>> error, and as I'm using a wildcard cert for the domain I was wondering if 
>> that was my issue.
>> 
>> If dovecot can use wildcard certs then I'll look elsewhere in my 
>> troubleshooting.

Check that you have configured dovecot to serve any required
intermediate certs. If you post the hostname others can take a look
and let you know if that's the problem.

> I use wildcard certs on my dovecot.
>
>  ssl_cert =   ssl_key  = 
> I don't remember if it was dovecot specific, but i did have issues making the 
> cert with ONLY a wild card entry such as "*.example.com"
> I fixed the issue by creating the cert with two entries, one for 
> "example.com" and one for "*.example.com"

That is standard. A wildcard for *.example.com covers
.example.com but not ..example.com
or plain example.com.


___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: How to use http api doveadm to manage acl permissions

2023-09-28 Thread cyril . leclerc
it seems the plugin is not installed on docker machine how i can install the 
plugin to have the acl commands available ?because now it is not existing, i 
have version 2.3.20 and command return unknow command
thanks
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Separators and shared namespaces

2023-09-28 Thread Aki Tuomi via dovecot

> On 28/09/2023 13:47 EEST Francis Augusto Medeiros-Logeay via dovecot 
>  wrote:
> 
>  
> 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

Hi!

Just to set things straight, it's not "truncated".

If your namespace separator is '.', then using

shared.u...@foo.bar.com will come out as

shared -> user@foo -> bar -> com, folder structure. Which is why you need to 
use / as separator.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


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 
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: How to use http api doveadm to manage acl permissions

2023-09-28 Thread Aki Tuomi via dovecot


> On 28/09/2023 13:23 EEST cyril.lecl...@mantiq.com wrote:
> 
>  
> thank you , 
> 
> but why we dont see the commands here 
> 
> https://doc.dovecot.org/admin_manual/doveadm_http_api/ ?
> 
> other question with sieve and http api can we manage autoreply with the api ?


Because they come from plugins and that page seems to be missing some 
per-plugin additions to the API. Probably will be fixed some day.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: How to use http api doveadm to manage acl permissions

2023-09-28 Thread cyril . leclerc
thank you , 

but why we dont see the commands here 

https://doc.dovecot.org/admin_manual/doveadm_http_api/ ?

other question with sieve and http api can we manage autoreply with the api ?
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


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:

On my dovecot-sql.conf.ext:

iterate_query = SELECT username AS user FROM mailbox
user_query = SELECT CONCAT('/var/mail/vmail/',maildir) AS home, \
  
CONCAT('maildir:/var/mail/vmail/',maildir,':INDEX=/var/vmail-index/index/%d/%n:CONTROL=/var/vmail-index/control/%d/%n')
 AS mail, \
  5000 AS uid, 5000 AS gid, CONCAT('*:bytes=',quota) AS quota_rule \
  FROM mailbox WHERE username = '%u' AND active = 1
password_query = SELECT username AS user,password FROM mailbox \
  WHERE username = '%u' AND active=‘1'

On my 10-mail.conf

mail_location = 
maildir:/var/mail/vmail/%d/%n:INDEX=/var/vmail-index/index/%d/%n:CONTROL=/var/vmail-index/control/%d/%n

If I add `Maildir` to the mail_location and to the mail user_query, will I have 
to move mailboxes, or the only thing I have to do is to add “Maildir” when I 
use %h/%%h? 

Best,

Francis 
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


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 dovecot-le...@dovecot.org