Home Forums OS X Server and Client Discussion Mail Geting data from Cyrus to PHP?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #360820
    l008com
    Participant

    So heres the deal. I have a php script that I need to log into cyrus and get the Mailbox Quota Size, and the Mailbox used space size. There is a PHP function just for it, calld imap_get_quota( ), but apparently the Cyrus mail server in OS X Server doesn’t support the GETQUOTA function? BUT, if you look at the Server Admin app, it is able to communicate with the server and get all the information I need. I have a screenshot here:
    http://johnmasone.com/mailadmin.gif
    So there must be a way to get all that data easily, I just don’t know what it is. Any ideas?

    #360827
    l008com
    Participant

    Hmmm is there a place i can get more info on this serveradmin thing you speak of?

    #360957
    Detrius
    Participant

    I posted a reply to your post on the macnn.com message board.

    For those that don’t want to follow links (or in case that one goes away), here’s the info:

    [quote]
    You have to love man pages.

    Did you know that you can do everything that the Server Admin application does with a web browser? It’s not necessarily easy, but you can pull all of the information out in an XML plist type file.

    Point your browser at:

    https://yourserver:311/

    You may be VERY surprised with what you find.

    You can use that to figure out what commands to pass to serveradmin. The one you are looking for is:

    serveradmin command mail:command = getUserAccounts
    [/quote]

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed