HI all, I'm looking for the better solution to retrieve all user's mailbox from a mail domain or a client using the remote api ? Any suggestion ? Thanks, Regards, Yannick
Better than what? Is it a requirement to use the remote API so https://imapsync.lamiral.info/ is not sufficient?
Better is not the correct word. I'm looking for the best way to retrieve all user's mailbox from a mail domain or a client using the remote api ?
See the remote API examples and documentation, you need to use the mail_user_get method to get mailbox info.
I understand that I can pass an array as primary_id on this request. If I call email -> [email protected], I retrieve the email account. but I can't get emails account if I request *@domain.com
hum ... I could'nt found a foreign key to retrieve domains from client (in client_get or mail_domain_get) Maybe with sys_groupid, but no method to retrieve link between sys_groupid and client_id No method also to retrieve client using another fields than the client_id
Searching in the ISPConfig code, and found a method "client_get_groupid" that is not in the documentation. I'm going to test it.
To the dev team, is it possible to integrate a "client_get" method with $primary_id at the same that other method to do search on all the field and not only the client_id. Currently, I have to get all clients (client_id = -1) and do the search on the result... not the better way...