Author Topic: Using API to automatically forward incoming emails?  (Read 102 times)

Offline tbecker

  • Newbie
  • *
  • Posts: 2
Using API to automatically forward incoming emails?
« on: March 23, 2020, 03:27:07 AM »
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.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,388
Re: Using API to automatically forward incoming emails?
« Reply #1 on: March 23, 2020, 01:07:09 PM »
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…

Offline tbecker

  • Newbie
  • *
  • Posts: 2
Re: Using API to automatically forward incoming emails?
« Reply #2 on: March 24, 2020, 06:46:49 PM »
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?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,388
Re: Using API to automatically forward incoming emails?
« Reply #3 on: March 25, 2020, 03:46:07 AM »
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…