host-specific tls configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

host-specific tls configuration

David Mehler
Hello,

Is it possible to do host-specific tls configuration? I've got this as
a config snipet:

#cat config.inc.php
$config['default_host'] = 'tls://xxx.xxx.xxx.xxx';
$config['imap_conn_options'] = array (
  'ssl' =>
  array (
    'verify_peer' => false,
    'verify_peer_name' => false,
  ),
);
$config['smtp_server'] = 'tls://xxx.xxx.xxx.xxx';
$config['smtp_conn_options'] = array (
  'ssl' =>
  array (
    'verify_peer' => false,
    'verify_peer_name' => false,
  ),
);
$config['useragent'] = 'Host.com Webmail';
$config['include_host_config'] = array (
  'host.example.com' => 'example_config.inc.php',
);
$config['http_received_header'] = true;

#cat host.example.com.php
<?php
$config['username_domain'] = 'example.com';

What i'd like to do is set up the above options in my host.example.com.php:

<?php
$config['username_domain'] = 'example.com';
$config['default_host'] = 'tls://example.com';
$config['imap_conn_options'] = array (
  'ssl' =>
  array (
    'verify_peer' => true,
    'verify_peer_name' => true,
  ),
);
$config['smtp_server'] = 'tls://example.com';
$config['smtp_conn_options'] = array (
  'ssl' =>
  array (
    'verify_peer' => true,
    'verify_peer_name' => true,
  ),
);
$config['useragent'] = 'Example.com Webmail';

Is this doable on a per-domain basis?

Thanks.
Dave.
_______________________________________________
Roundcube Users mailing list
[hidden email]
http://lists.roundcube.net/mailman/listinfo/users