Hi. We are aware of an issue with newly created Roundcube (Webmail) websites on Enhance 9.1.0. It seems that RoundCube 1.6.1 changed the name of an internal variable and this has caused issues with sending messages.
If you are having trouble sending through Roundcube, log in to your control panel, find your webmail website, go to the file manager and replace the file public_html/plugins/enhance_login/enhance_login.php
with the following:
<?php
class enhance_login extends rcube_plugin
{
public function init()
{
$this->add_hook('authenticate', array($this, 'get_server'));
$this->add_hook('smtp_connect', array($this, 'set_smtp'));
}
public function get_server($inputargs)
{
$rcmail = rcube::get_instance();
$orchd_url = $rcmail->config->get('orchd_url');
$orchd_key = $rcmail->config->get('orchd_key');
$headers = array(
'Address: ' . $inputargs['user'],
'Password: ' . $inputargs['pass'],
'Authorization: Bearer ' . $orchd_key,
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $orchd_url . "/email-client/public-ip");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
$data = curl_exec($ch);
if (!$data) {
die;
}
$data = json_decode($data);
$args['host'] = 'tls://' . $data->ipAddress;
$rcmail->config->set('smtp_host', 'tls://' . $data->ipAddress);
return $args;
}
public function set_smtp($inputargs)
{
return array('smtp_host' => 'tls://' . $_SESSION['storage_host']);
}
}
This will be fixed automatically when we release 9.1.1 later this week.