Roundcube plugin to fetch DNS SRV records following RFC 6186 and 6764 for hosts and webdav. PR welcome.
- Download, unzip, copy and rename master to 'autoconfigsrv' and paste it in 'plugins' directory of Roundcube installation.
- Browse folder on terminal and run 'php composer.phar update' to download dependencies.
- Update '/config/config.inc.php' to include plugin, and configure additional options as shown below.
Edit config.inc.php
file in /config directory:
<?php
// Enable plugin in config by adding the keyword to plugins array
$config['plugins'] = array('autoconfigsrv');
// Set default hosts to autoconfigsrv. Use both or either one.
$config['default_host'] = 'autoconfigsrv';
$config['smtp_server'] = 'autoconfigsrv';
// Set prefix for hosts; Default 'ssl'
$config['autoconfigsrv_imap_host_prefix'] = 'ssl';
$config['autoconfigsrv_smtp_host_prefix'] = 'tls';
// Set regex to whitelist hosts fetched from SRV records
$config['autoconfigsrv_host_regex'] = '(^[a-z0-9\.]*\.example\.com)$';
// Set true, to fetch SRV records from host domain's nameserver
$config['autoconfigsrv_use_authoritative_ns'] = false;
?>
RFC 6186 - https://tools.ietf.org/html/rfc6186
RFC 6764 - https://tools.ietf.org/html/rfc6764
- Change DNS library or update pear libray. (To make sure no DNS fetch requests fail)
- Use weights and priorities to handle multiple entries (rfc2782)
- To check whether host is a FQDN
- Follow RFC to add pop3s and else