Roundcube Community Forum

 

Recent posts

#11
Pending Issues / Re: Failed to start roundcube-...
Last post by SKaero - April 24, 2025, 06:42:50 PM
I'm going to guess that is a service that comes in the Ubuntu packaged version of Roundcube since its not part of the core Roundcube package. You'll likely need to report it to the Ubuntu package maintainer so they can fix it.

I'm guessing its designed to run the <RC root>/bin/cleandb.sh script but that really isn't something that needs to be done often. I would think you could safely disable it and it wouldn't cause any harm.
#12
Pending Issues / Failed to start roundcube-clea...
Last post by C983746 - April 24, 2025, 11:33:07 AM
I recently upgraded to Ubuntu 25.04 and started getting this error message.

Not sure where to begin to resolve it.

Can anyone give me detailed instructions to resolve it?     Roundcube appears to be running OK and not sure how concerned I should be about the cleandb service?



roundcube-cleandb.service
Failed to start roundcube-cleandb.service - Purge Roundcube database: remove old records that were marked as deleted.

CODE_FILE
    src/core/job.c
CODE_FUNC
    job_emit_done_message
CODE_LINE
    818
INVOCATION_ID
    f48f6a339d3f4f70a922a531d23dcc09
JOB_ID
    49512
JOB_RESULT
    failed
JOB_TYPE
    start
MESSAGE_ID
    be02cf6855d2428ba40df7e9d022f03d
PRIORITY
    3
SYSLOG_FACILITY
    3
SYSLOG_IDENTIFIER
    systemd
TID
    1
UNIT
    roundcube-cleandb.service
_BOOT_ID
    1856bb88dbab4de68516eeafc6dac6a8
_CAP_EFFECTIVE
    1ffffffffff
_CMDLINE
    /sbin/init text
_COMM
    systemd
_EXE
    /usr/lib/systemd/systemd
_GID
    0
_HOSTNAME
    <myservername appears here>
_MACHINE_ID
    8c5c743187c44790a47bd50da8aeb3f8
_PID
    1
_RUNTIME_SCOPE
    system
_SELINUX_CONTEXT
    unconfined
_SOURCE_REALTIME_TIMESTAMP
    1745508288955457
_SYSTEMD_CGROUP
    /init.scope
_SYSTEMD_SLICE
    -.slice
_SYSTEMD_UNIT
    init.scope
_TRANSPORT
    journal
_UID
    0
__CURSOR
    s=77723eb2a7e9406c92495b917a4754a5;i=4b46919;b=1856bb88dbab4de68516eeafc6dac6a8;m=694c87e7c;t=63387d1840448;x=21221cb20b1f23c4
__MONOTONIC_TIMESTAMP
    28265971324
__REALTIME_TIMESTAMP
    1745508288955464
__SEQNUM
    78932249
__SEQNUM_ID
    77723eb2a7e9406c92495b917a4754a5
#13
Release Discussion / Re: Re-login to Roundcube with...
Last post by SKaero - April 24, 2025, 09:42:19 AM
You need to remove the task at the top of the file:
public $task = 'login';

The $task variable locks the plugin down to only run on the specified task. Removing it will allow you to check for new incoming requests to login to other accounts.
#14
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!!
#15
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?
#16
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.
#17
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?
#18
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.
#19
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?
#20
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