Recent Posts

Pages: [1] 2 3 ... 10
1
In that case your problem is outside of Roundcube since Roundcube wouldn't handle automatic forwarding to Gmail.
2
API Based Plugins / Re: How to call php function from javascript
« Last post by SKaero on June 16, 2021, 10:54:13 AM »
Did you post the full plugin PHP file? What is in the Roundcube error log?
3
Hi sorry i dont think this works. The issue isn't that external email images aren't appearing. It is the fact that emails aren't being forwarded to my GMail
4
API Based Plugins / Re: How to call php function from javascript
« Last post by iBem on June 16, 2021, 01:33:19 AM »
The problem is your PHP is invalid, echo isn't a function https://www.php.net/manual/en/function.echo.php

But if I call my test function inside my php file the echo will print text to console. And I get the POST error even if the test function is empty.
5
API Based Plugins / Re: How to call php function from javascript
« Last post by SKaero on June 16, 2021, 12:58:54 AM »
The problem is your PHP is invalid, echo isn't a function https://www.php.net/manual/en/function.echo.php
6
API Based Plugins / How to call php function from javascript
« Last post by iBem on June 15, 2021, 06:46:33 PM »
Hi
I am trying to call my php function from javascript file.
This is what I have
php file:
Code: [Select]
function init()
{
     $this->include_script('client.js');
     $this->register_action('plugin.test', array($this, 'test'));
}
function test($args)
{
    echo("<script>console.log('PHP: " . "js is working" . "');</script>");
}
js file:
Code: [Select]
rcmail.http_post('plugin.test');

When I run this I get an error:

jquery.min.js?s=1612812585:36
POST http://localhost/roundcube/?_task=mail&_action=plugin.test 500
(Internal Server Error)

How should this be done correctly and could I also call javascript function from php file ?



7
I know others have asked this question, but their solutions don't seem to work for me. I can send and receive email fine on my mail server, but I can't get into webmail. I'm running webmail on another VPS, and it's working fine. I cloned this VPS and reconfigured it for a different domain, and it worked for a long time, and suddenly it doesn't work.

When I try to log in, I get 'Connection to Storage Server Failed'. When I view the logs, I see

```
IMAP Error: Login failed for noreply@americansurvivor.org against americansurvivor.org from 2601:244:0:6bb:a732:a891:f058:faae. Could not connect to ssl://americansurvivor.org:993: Unknown reason in /var/www/roundcube/program/lib/Roundcube/rcube_imap.php on line 200 (POST /?_task=login&_action=login)
```

Both servers use LetsEncrypt, and certificates are valid on this server. the configuration is identical on both servers: config.inc.php, and the conf files for the virtualhosts are virtually identical. I upgraded all packages on both servers, and still, webmail only works on one.

I am at a total loss as to how to resolve this, since I can only reproduce the problem on one server, the configuration from both seems the same, and the error message is so vague. Could someone help me out?
8
Pending Issues / Re: Kerberos Authentication - is it possible?
« Last post by koxman on June 14, 2021, 11:31:25 AM »
Anybody got this working?

I have working GSSAPI under Nxinx but when trying to run the roundcube website I get  "ERR_INVALID_RESPONSE".


nginx.conf:

load_module /usr/lib/nginx/modules/ngx_http_auth_spnego_module.so;


00-default-ssl.conf:

location / {
    auth_gss on;
    auth_gss_realm TEST.COM;
    auth_gss_service_name HTTP/email.test.com;
    auth_gss_keytab /etc/krb5.keytab;
}



roundcube plugin   config.inc.php

$config['krb_authentication_host'] = '';
$config['krb_authentication_context'] = [
       'imap'  => 'imap/email.test.com@TEST.COM',
       'smtp'  => 'smtp/email.test.com@TEST.COM',
   ];



Please can you share working config?



9
Pending Issues / How to setup IMAP login with linux usernames instead of email?
« Last post by rvasilev on June 14, 2021, 02:59:55 AM »
Hi there, we need help with setting up Roundcube as a webmail server.

We are running Roundcube 1.4.11, on the server side there're postfix and dovecot. We are currently using linux usernames for login to the imap server. We are trying to setup Roundcube to be able to log in to the IMAP and SMTP servers with username which should be found based on the email the user has input. There're more than one domain and the usernames are different from the email. (username , user@some.domain1)

So the idea is: a user is entering his email and password, Roundcube founds the username to connect to the IMAP server based on the email and logs in with it.

Any ideas how we can manage to set this up?

Regards,
Rusen
10
In your config.inc.php:
Code: [Select]
// Display remote resources (inline images, styles) in HTML messages
// 0 - Never, always ask
// 1 - Allow from my contacts (all writeable addressbooks + collected senders and recipients)
// 2 - Always allow
// 3 - Allow from trusted senders
$config['show_images'] = 0;
Pages: [1] 2 3 ... 10