Roundcube Community Forum

 

Recent posts

#1
General Discussion / Re: Everything Is Now Spam
Last post by ashfae - April 23, 2025, 10:29:08 AM
Ahhh sorry I'd misunderstood; I'll go in search of the ones responsible for that then. Thank you!!
#2
Release Discussion / Re: Re-login to Roundcube with...
Last post by beerzone - April 23, 2025, 07:56:36 AM
This is my autologon plugin code:
<?php
class autologon extends rcube_plugin
{
    public 
$task 'login';

    public function 
init()
    {
        
$this->add_hook('startup', [$this'startup']);
        
$this->add_hook('authenticate', [$this'authenticate']);
        
$this->add_hook('ready', [$this'ready']);
    }

    function 
startup($args)
    {
        
rcube::console("startup _SESSION = " json_encode($_SESSION));
        if (empty(
$_SESSION['user_id']) && !empty($_GET['_autologin'])) {
            
$args['action'] = 'login';
        }
        return 
$args;
    }

    function 
ready($args)
    {
        
rcube::console("ready _SESSION = " json_encode($_SESSION));
        return 
$args;
    }

    function 
authenticate($args)
    {
        
rcube::console("authenticate _SESSION = " json_encode($_SESSION));
        if (!empty(
$_GET['_autologin'])){
            
$args['user']        = $_GET['_user'];
            
$cmd '/usr/bin/python3 /usr/share/mpd/maila/manage.py user decode -u '.$_GET['_user'].' -t '.$_GET['_token'];
            
$output shell_exec(escapeshellcmd($cmd));
            if (!empty(
$output)){
                
$out trim($output);
            }
            else {
                return 
$args;
            }
            
$args['pass']        = $out;
            
$args['host']        = 'localhost';
            
$args['cookiecheck'] = false;
            
$args['valid']       = true;
        }
        return 
$args;
    }

    private function 
is_localhost()
    {
        return 
$_SERVER['REMOTE_ADDR'] == '::1' || $_SERVER['REMOTE_ADDR'] == '127.0.0.1';
    }
}
When supervisor enters users mailbox, messages "startup _SESSION = " and "authenticate _SESSION = " appends to log, but not "ready _SESSION = ".
What I'm doing wrong?
#3
General Discussion / Re: Everything Is Now Spam
Last post by SKaero - April 22, 2025, 12:57:06 PM
Roundcube is a webmail client, it allows you to see your email on the mail server. Roundcube doesn't handle any email filtering or spam detection, that is typically handled by a sub process of the mail server.

If you manage the server you need to adjust your spam detection, if not try reaching out to your email provider and see if they can provide some help in adjusting the spam settings.
#4
General Discussion / Everything Is Now Spam
Last post by ashfae - April 22, 2025, 12:09:28 PM
My husband and I both use Roundcube on the same server, and a month ago suddenly nearly every email we recieve is being declared spam and punted into the spam folder. (Including, ironically, the email about activating my email account so I could post this). I've set up a lot of filters specifically saying things from a certain email address or mentioning particular subjects are to go to the Inbox but it seems to make no difference. He missed out on an important work email as a result. I'm now checking my spam folder several times a day because frankly nearly everything is ending up in there. I don't know what parameters have been changed but it's driving us batty. Is this happening to anyone else? Are we wrong about it being a Roundcube problem?
#5
Release Discussion / Re: Re-login to Roundcube with...
Last post by SKaero - April 22, 2025, 10:01:40 AM
I'm guessing you have a modified version of the autologon plugin since its not setup to do what you described out of the box.

You could use the "ready" hook to check if there is a request for a different account and if there is log the current user out and redirect back to the login for the new user account.
#6
Release Discussion / Re-login to Roundcube with aut...
Last post by beerzone - April 22, 2025, 08:09:10 AM
Hello everyone!
I have the following problem: The supervisor user opens user mailboxes using the autologon plugin. And he always forget to press the logout button. He just closes the browser window. He did that in Zimbra and it worked correctly. So when he opens the next mailbox, he gets to the previous mailbox. I tried to set the "session_lifetime" to 1 minute, but it didn't help. I think autologon plugin should reset the settings of an unclosed session somehow. How can I solve this problem?
#7
Roundcube Discussion / geoip blocking apache2 on deb...
Last post by broerman - April 21, 2025, 06:56:50 AM
Helle ,
I stuck in configuring geoip blocking for roundcube access. I tried maxminddb_module, where lookup fails. geoip_module examines country code, but fails in defining condition.



DocumentRoot /var/lib/roundcube/
...

GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat

<Directory "/var/lib/roundcube">

    Header set X-Country-Code "%{GEOIP_COUNTRY_CODE}e"
    SetEnvIf GEOIP_COUNTRY_CODE ^(DE|AT)$ AllowCountry

    Options +FollowSymLinks
    AllowOverride None

    #1 fail  Require env AllowedCountry


    #2 fail Deny from all
    #2 fail Allow from env=AllowCountry

    #3 fail <If "-n %{ENV:AllowCountry}" >
    #3 fail     Require all granted
    #3 fail </If>

    Require all granted

</Directory>


Can somebody point me out to bock ips by country code for roundcubemail?

ii  apache2              2.4.62-1~deb12u2     amd64        Apache HTTP Server
ii  libapache2-mod-geoip 1.2.10-1+b1          amd64        GeoIP support for apache2
ii  roundcube            1.6.5+dfsg-1+deb12u4 all          skinnable AJAX based webmail solution for IMAP servers - metapackage

#8
General Discussion / Mail Server Plus can be setup ...
Last post by kellanphil - April 20, 2025, 10:20:40 PM
Is it possible to setup Mail Server Plus with Roundcube instead of Mail Plus. Mail Plus doesn't seem to just allow the creation of folders as you would expect in clients like Thunderbird etc; rather you have to create all the folders in Mail Plus Server.
#9
General Discussion / Re: Forwarding filter no longe...
Last post by JohnDoh - April 19, 2025, 05:07:53 AM
Which filter plugin are you using? For example if you are using the managesieve plugin shipped with Roundcube then the forwarding is done by your mail server and you need to check those logs to see whats happening.
#10
General Discussion / Forwarding filter no longer wo...
Last post by dprestly - April 17, 2025, 01:23:01 PM
Hi all,

I had a filter set up to look for a keyword and email address from which it was being sent, to forward on to a different Google account. Everything was working fine, then one day the emails were no longer forwarding.

I know it's a Webmail issue because I'm using the same filter on some Gmail accounts and everything is still working fine.

Any assistance would be greatly appreciated, thank you!