API Question

Is there a usermin API?

If not, I think it would really add a lot to the system. For instance, it would be nice to create a section off our website that gives users the ability to change their password, create an auto responder, and so on. Or integrate spam learning through a webmail app. It would be very beneficial to do this right through the same type of api that virtualmin uses. I have wanted to create a central webmail app for all my servers, which has the auto responder and spam reporting built right in. The auto responder and spam learning commands can't easily be called remotely without an API.

Just food for thought.

Status: 
Closed (fixed)

Comments

Nevermind, I found a thread on this.. :)

That's an interesting idea .. but at the moment, there isn't a usermin-specific API.

However, you could use the Virtualmin API to setup aliases and autoreponders for mailboxes.

Or you could just ask users to do this from within Usermin, which already has UIs for most of what you asked for..

I see the create-simple-alias and this works to create the autoresponders even for actual users, but is there a way using the api's to retrieve a user's autoresponder settings? Also, how would I disable the autoresponder for a user using the api?

Currently, there is no way to do this from the API .. but I could add it if you like?

That would be incredible. I have written several plugins for roundcube recently to help users be able to manage certain things right from their webmail and that is the last one, managing auto-responders.

Ok, I'll see about adding this in Virtualmin 3.75.

The 3.75 Virtualmin release will add options to the modify-user API comment to setup an autoresponder and forwarding..

So did this make it into the 3.75 release. I didn't see any mention of it in the news release.

Yup, according to Jamie's last comment, he added that into the 3.75 codebase on Oct 30.

I suspect it was just overlooked when typing up the release notes.

Of course, if you don't see it, or it doesn't work as expected, feel free to yell and we'll get that worked out :-)

Yes, this will definately be in 3.75

What is the usage? The same as it is for the aliases?

Yes, it will use the same flags.

Great, thanks! I see the options for adding and deleting, is there a command to list what a user currently has set for an autoresponder?

Yes, you can use list-users with the --simple-aliases parameter.

Perfection! You guys rock, as always!

Way to go on the SSL setup for postfix and dovecot btw. I think it's one of the (kind hard to say that with all you guys are doing, but nonetheless...) coolest features I have seen added in a while. I have users asking me to do that all the time.