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

2023-10-01 Thread Cyril Leclerc
It is present only on last version because first it is not returned
from the http api GET then when i execute the command it says the id is
not existing (testing other commands working)

the dovecot version is :

2.3.20 (80a5ac675d)

version come form docker machine on this link
: 
https://docker-mailserver.github.io/docker-mailserver/v12.1/config/advanced/override-defaults/dovecot/
___
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
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: 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: 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: How to use http api doveadm to manage acl permissions

2023-09-23 Thread cyril . leclerc
Yes off course i ve done that but not found, moreover it should be available in 
the api documentation ?

this is the content off the get call is there a command for acl with maybe not 
ACL word inside ?

[
{
"command": "mailboxMutf7",
"parameters": [
{
"name": "toUtf8",
"type": "boolean"
},
{
"name": "fromUtf8",
"type": "boolean"
},
{
"name": "name",
"type": "array"
}
]
},
{
"command": "serviceStop",
"parameters": [
{
"name": "service",
"type": "array"
}
]
},
{
"command": "serviceStatus",
"parameters": [
{
"name": "service",
"type": "array"
}
]
},
{
"command": "sisDeduplicate",
"parameters": [
{
"name": "rootDir",
"type": "string"
},
{
"name": "queueDir",
"type": "string"
}
]
},
{
"command": "sisFind",
"parameters": [
{
"name": "rootDir",
"type": "string"
},
{
"name": "hash",
"type": "string"
}
]
},
{
"command": "processStatus",
"parameters": [
{
"name": "service",
"type": "array"
}
]
},
{
"command": "stop",
"parameters": []
},
{
"command": "reload",
"parameters": []
},
{
"command": "statsDump",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "reset",
"type": "boolean"
},
{
"name": "fields",
"type": "string"
}
]
},
{
"command": "statsAdd",
"parameters": [
{
"name": "name",
"type": "string"
},
{
"name": "filter",
"type": "string"
},
{
"name": "exporter",
"type": "string"
},
{
"name": "exporterInclude",
"type": "string"
},
{
"name": "description",
"type": "string"
},
{
"name": "fields",
"type": "string"
},
{
"name": "groupBy",
"type": "string"
}
]
},
{
"command": "statsRemove",
"parameters": [
{
"name": "name",
"type": "string"
}
]
},
{
"command": "oldstatsDump",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "type",
"type": "string"
},
{
"name": "filter",
"type": "string"
}
]
},
{
"command": "oldstatsReset",
"parameters": [
{
"name": "socketPath",
"type": "string"
}
]
},
{
"command": "penalty",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "netmask",
"type": "string"
}
]
},
{
"command": "kick",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "force",
"type": "boolean"
},
{
"name": "mask",
"type": "array"
}
]
},
{
"command": "who",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "separateConnections",
"type": "boolean"
},
{
"name": "mask",
"type": "array"
}
]
},
{
"command": "directorStatus",
"parameters": [
{
"name": "socketPath",
"type": "string"
},
{
"name": "user",
"type": "string"
},
{
"name": "tag",
"type": "string"
   

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

2023-09-19 Thread Aki Tuomi via dovecot


> On 19/09/2023 15:30 EEST cyril.lecl...@mantiq.com wrote:
> 
>  
> hi, 
> 
> yes i alredy executed but nothing with "acl" name or "permissions" so how i 
> can find the good command ?
> 
> thank you

Maybe you did something wrong, because I was able to get these.

Aki

{"command":"aclGet", "parameters":[
{"name":"allUsers","type":"boolean"},
{"name":"socketPath","type":"string"},
{"name":"user","type":"string"},
{"name":"transFlags","type":"integer"},
{"name":"userFile","type":"string"},
{"name":"matchMe","type":"boolean"},
{"name":"mailbox","type":"string"}
]},
{"command":"aclRights", "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"}
]},
{"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"}
]},
{"command":"aclAdd", "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"}
]},
{"command":"aclRemove", "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"}
]},
{"command":"aclDelete", "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"}
]},
{"command":"aclRecalc", "parameters":[
{"name":"allUsers","type":"boolean"},
{"name":"socketPath","type":"string"},
{"name":"user","type":"string"},
{"name":"transFlags","type":"integer"},
{"name":"userFile","type":"string"}
]},
{"command":"aclDebug", "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"}
]}
___
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-19 Thread cyril . leclerc
hi, 

yes i alredy executed but nothing with "acl" name or "permissions" so how i can 
find the good command ?

thank you
___
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-17 Thread Aki Tuomi via dovecot


> On 18/09/2023 09:25 EEST cyril.lecl...@mantiq.com wrote:
> 
>  
> I started the http api on dovecot configuration but following the 
> documentation available here :
> 
> https://doc.dovecot.org/admin_manual/doveadm_http_api/
> 
> I dont see anything regarding the acl permissions ? do we have to use a 
> specific command ? how to manage a user acl permissions ( change the content 
> of dovecot-acl file ?

You can get the available schema with acl plugin using

curl http://host:port/doveadm/v1

It should list the available ACL commands there.

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


How to use http api doveadm to manage acl permissions

2023-09-17 Thread cyril . leclerc
I started the http api on dovecot configuration but following the documentation 
available here :

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

I dont see anything regarding the acl permissions ? do we have to use a 
specific command ? how to manage a user acl permissions ( change the content of 
dovecot-acl file ?
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org