slickalpha / autoconfigsrv
Roundcube plugin to fetch DNS SRV records following RFC 6186 and 6764 for hosts and webdav
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:roundcube-plugin
Requires
- php: >=7.0
- roundcube/plugin-installer: >=0.1.3
Requires (Dev)
- pear-pear.php.net/net_dns: 1.0.7
This package is auto-updated.
Last update: 2025-04-15 22:17:06 UTC
README
Roundcube plugin to fetch DNS SRV records following RFC 6186 and 6764 for hosts and webdav. PR welcome.
Installation
Manual
- 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.
Configuration
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 Guidelines
RFC 6186 - https://tools.ietf.org/html/rfc6186
RFC 6764 - https://tools.ietf.org/html/rfc6764
To Do
- 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