mailcow dockerized 2026-03b
The API is generally working for me. I added and edited users and added aliases without issue.
Syncjobs themselves are also working. I created two jobs via the WebUI and they’re running successfully.
Now i wanted to add a large batch via API but nothing happens - literally.
I get a http 200 respinse, but no sync job is added.
When i use /get/syncjobs/no_log, i get an empty json object (not even my two working jobs).
My api call looks fine?
curl -k -X POST https://mailcow.domain.tld/api/v1/add/syncjob -H 'X-API-Key: ***' -H 'Content-Type: application/json' -d '{
"username": "user@domain.tld",
"host1": "10.1.2.3",
"port1": "143",
"user1": "user@domain.tld*superuser",
"password1": "***",
"enc1": "PLAIN",
"mins_interval": "20",
"maxage": "0",
"maxbytespersecond": "0",
"timeout1": "600",
"timeout2": "600",
"delete2duplicates": "1",
"delete1": "0",
"delete2": "1",
"automap": "1",
"skipcrossduplicates": "0",
"subscribeall": "1",
"active": "1"
}'