Author Topic: Custom host settings  (Read 2665 times)

Offline mvdgeijn

  • Newbie
  • *
  • Posts: 1
Custom host settings
« on: April 11, 2018, 05:13:53 AM »
Hi,

I'm new to writing code for roundcube, so sorry if this is an easy question.

I would like to create a file that contains <domain>:<imap host> pairs. Format (xml,json,php array) doesn't matter. Some custom MySQL query is also an option.

If a customer uses info@<domain>, Roundcube should use <imap host> as the imap host. Is this a standard option in Roundcube? I know it is possible to use a dns record (e.g. mail.<domain>) to do this, but we are getting questions about this when we don't manage the DNS records for the domain and the customer has to create that record.

Thanks!
Marc

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Custom host settings
« Reply #1 on: April 11, 2018, 05:40:27 AM »
take a look at the virtuser_query plugin shipped with roundcube. that can be configured to do user to host lookups
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦