Roundcube Community Forum

 

Custom host settings

Started by mvdgeijn, April 11, 2018, 05:13:53 AM

Previous topic - Next topic

mvdgeijn

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

JohnDoh

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...