Open zeroone82 opened 4 years ago
So I'm no python developer, but I did some debugging. It seems to check for a json field "type: error" (I'm guessing mailcow would return this in some cases?). But when I make a request for the added mailbox, it returns everything but there is no "type" field.
Mailcow had some API related updates on August 7, I'm guessing maybe that's related?
For reference, this is what an API request returns with /api/v1/get/mailbox/testuser@mydomain.local
"max_new_quota": 107374182400,
"username": "testuser@mydomain.local",
"rl": false,
"rl_scope": "domain",
"is_relayed": 0,
"name": "Test User",
"last_imap_login": "1601058677",
"last_smtp_login": "0",
"last_pop3_login": "0",
"active": 1,
"domain": "mydomain.local",
"local_part": "testuser",
"quota": 0,
"attributes": {
"force_pw_update": "0",
"tls_enforce_in": "0",
"tls_enforce_out": "0",
"sogo_access": "1",
"imap_access": "1",
"pop3_access": "1",
"smtp_access": "1",
"mailbox_format": "maildir:",
"quarantine_notification": "hourly"
},
"quota_used": 0,
"percent_in_use": "- ",
"messages": 0,
"spam_aliases": 0,
"pushover_active": 0,
"percent_class": "info"
I fixed it! I was slightly off. you just need to replace de field "active_int" with "active" in api.py. I'm using a custom api.py for now
@zeroone82 hey there.. As I'm not able to currently get this running (SoGo needs to be able to speak using ldaps instead of ldap for my setup to work for example..) , can you quickly share your modification so we know if my pull request is actually it..
I've been trying to get this working and I have been able to get an initial sync at least. It will add my one test user, but then it fails on the second sync:
This a very basic user, has a username, first and last name and nothing else. Should I add another field too?
My docker-composer setup is: