Hello. You can see existing solutions: dbmail-admin and dbmail-administator..
On 26 January 2014 23:44, KT Walrus <ke...@my.walr.us> wrote: > I need to write a custom PHP admin script to manage my dbmail users and > mailboxes. > > I need to be able to: > - add/change/delete a user (setting password, aliases, etc), creating 5 > pre-defined mailboxes > - get a list of messages in a user's mailbox > - get a specific message from any user's mailbox > - set flags on a specific message in any user's mailbox (probably only > SEEN flag, but maybe others) > - move selected messages to the user's trash mailbox > - delete selected messages from any user mailbox > - copy a message from one users mailbox into another users mailbox, > changing the To: and Reply-To: headers > > My question is: > > What interface should I use for the above? > > Seems to me that operating directly on the users would best be done > directly in the dbmail database. I would prefer to use IMAP for message > access, but maybe direct manipulation of the db might be better? The > problem with IMAP is I would have to give my admin user ACLs to every > mailbox in the database. That might be a lot of ACLs. Is there a way to > configure to give an admin user full access through IMAP while restricting > this superadmin access to my PHP script on my admin server (not directly > connected to the internet)? > > I could also use dbmail-deliver to copy messages into specific user > mailboxes. > > I am, so far, unable to get dbmail-httpd running, but this would give me > some direct access to other users' mailboxes without having to set up ACLs, > but I think the interface might be too limited to write a complete custom > admin script. > > So, any opinions on which direction I should go? MySQL direct, IMAP, > dbmail-deliver, HTTP, or other interfaces > > _______________________________________________ > DBmail mailing list > DBmail@dbmail.org > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail > -- С уважением, Алексей
_______________________________________________ DBmail mailing list DBmail@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail