On 03/11/2020 02:24 Oren Yehezkely orenyny@gmail.com wrote:
Hello,
I am trying to find out if Dovecot API allows placing a message directly in a customer's mailbox, without needing to send the email via SMTP.
Thanks for your help,
Oren
doveadm save
is available from HTTP API, but seems to be missing from documentation.
Example:
curl --user doveadm:password http://localhost:1122/doveadm/v1 -d '[["save",{"user":"testuser","file":"Hello, world"},"c0d0"]]'
note that despite being called 'file', is it actually the mail contents.
Aki
API for the SAVE command:
{ "command": "save", "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": "file", "type": "string" } ] }