Roundcube Community Forum

 

Using API to automatically forward incoming emails?

Started by tbecker, March 23, 2020, 03:27:07 AM

Previous topic - Next topic

tbecker

Hello,
I would like to configure the mailbox via API so that every incoming email gets forwarded to a specific email address.

Is that possible? I know how to configure it manually. But I want to do it automatically via API.

JohnDoh

Do you mean you want to access an API on your server from within Roundcube? You need to write a plugin for that.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

tbecker

I assume that the roundcube configuration for every user is stored in the database right? I maybe just have to access the database and change the forwarding setting? What do you think about that?

JohnDoh

Roundcube's users settings are stored in the users table of the Roundcube database but I doubt this will help you. I would think the forwarding is being done by your mail server (if Roundcube did it then it would only work when the user logged in to Roundcube). You may be using a plugin in Roundcube to config the settings on your server through the web interface.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...