Roundcube docker instance no access to Nextcloud AIO

Hey Folks,

I love the Roundcube app. I’ve installed it via Docker (on same server), and it works nicely. I’ve used it for a few days for testing. Now I want to integrate it with Nextcloud AIO.

version: '3'

services:
  roundcube:
    image: roundcube/roundcubemail:latest
    container_name: roundcubeisthebestemailapp
    restart: unless-stopped
    volumes:
      - /opt/roundcube/example.com/db/:/var/roundcube/db
      - /opt/roundcube/example.com/config:/var/roundcube/config
    ports:
      - 9001:80
    environment:
      - ROUNDCUBEMAIL_DB_TYPE=sqlite
      - ROUNDCUBEMAIL_SKIN=elastic
      - ROUNDCUBEMAIL_DEFAULT_HOST=ssl://imap.myemail.com
      - ROUNDCUBEMAIL_DEFAULT_PORT=993
      - ROUNDCUBEMAIL_SMTP_SERVER=ssl://smtp.myemail.com
      - ROUNDCUBEMAIL_SMTP_PORT=587
      - ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE=1024M

In my Nextcloud AIO, I’ve installed the Roundcube app and entered my Roundcube installation path. Since this is a separate instance, I entered the URL:

http://192.x.x.x:9001

For testing purposes, I haven’t added SSL yet—this will be implemented after the first test. In Nextcloud, I didn’t get any errors, just a few loading icons.

Changed the Browser from Firefox to Chrome - same thing.
Rebooted the Server and logged of from Nextcloud - same thing.

Logs from the Roundcube container after clicking the Roundcube icon in Nextcloud:

172… - - [24/Aug/2024:09:57:31 +0000] “GET //?_task=login HTTP/1.1” 200 5880 “-” “-”

172… - - [24/Aug/2024:09:57:31 +0000] “POST //?_task=login&_action=login HTTP/1.1” 302 742 “-” “-”

nothing more - and here it stops.

Any suggestion?

I assume you are talking about https://apps.nextcloud.com/apps/mail_roundcube as other apps install Roundcube “inside” of Nextcloud.

I’m not into this integration hopefully others can help more but my common knowledge is

  • today it’s bad idea to go without TLS/https (even for testing) - browser/OS/applications enforce https everywhere today and it’s really hard to overcome this
  • after short research I think the integration uses iframe or similar technique to show Roundcube interface inside of NC - here http/https could become really problematic

This is a Nextcloud app app which embeds an separate Roundcube web-mailer installation by means of an IFrame into you Nextcloud server installation.

I would check the browser console (F12) and look for issues…

1 Like

Thanks for your help—the F12 hint was great! It turned out to be an SSL issue.

Now, Firefox is blocking the embedded site, so this whole Roundcube integration is still a pain.

From what I’ve researched, Nextcloud AIO doesn’t support installing Roundcube “inside.” That’s a pity, because the Nextcloud Mail app isn’t really user-friendly compared to Roundcube.

Best regards.

There are or were several Nextcloud apps that integrated Roundcube with Nextcloud, but they all seem to be more or less abandoned at the moment: https://apps.nextcloud.com/?search=roundcube

Alternatively, you can simply run Roundcube separately and then add it to the top bar of Nextcloud via the redirect option in the External Sites app, rather than embedding it: Linking external sites — Nextcloud latest Administration Manual latest documentation

To access Nextcloud contacts from within Roundcube, there is a CardDAV plugin available: roundcube/carddav - Packagist

Or have a look at SnappyMail, which has an actively maintained app for Nextcloud: https://apps.nextcloud.com/apps/snappymail

2 Likes

Thanks for the tip on snappymail. It is easy to implement and also has nextcloud features.
The search function works very well and gpg is also possible.

Thank you very much!

1 Like

SnappyMail works great. I have a Roundcube instance running right off my email server but have never been able to integrate it with Nextcloud. I would use the native Nextcloud Mail app, but it currently has bad search results, it needs a user friendly filter interface, and the embedded images are hard to resize. It would be nice if it could include a print email button too. Until these things happen, we will continue with SnappyMail. I like the integration of a native mail app for allowing the apps to cooperate with sharing data though.