Skip to content

[Bug]: Issues enabling external-recipient-warning, jitsi-meet and calendar-agenda #4

Description

@MrFastDie

Description

Hey guys,

Via the marketplace using the docker installation:

services:
  bulwark-webmail:
    image: ghcr.io/bulwarkmail/webmail:latest
    container_name: bulwark-webmail
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "8000:3000"
    volumes:
      - bulwark-data:/app/data
    security_opt:
      - no-new-privileges:true
    read_only: true
    tmpfs:
      - /tmp
    dns:
      - 1.1.1.1
      - 9.9.9.9
    extra_hosts:
      - "<redacted>:<redacted>"

volumes:
  bulwark-data:

With .env:

JMAP_SERVER_URL=<redacted>

APP_NAME=Mail

OAUTH_ENABLED=true
OAUTH_CLIENT_ID=<redacted>
OAUTH_CLIENT_SECRET=<redacted>
OAUTH_ISSUER_URL=<redacted>
OAUTH_EXTRA_SCOPES=offline_access
OAUTH_ONLY=true
AUTO_SSO_ENABLED=true

SESSION_SECRET=<redacted>

And the following nginx config:

server {
    server_name <redacted>;

    location / {
        proxy_pass http://172.16.16.103:8000; # internal docker server thats why not localhost
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_cache_bypass $http_upgrade;
    }

    listen 443 ssl; # managed by Certbot
    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/<redacted>/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/<redacted>/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = <redacted>) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    listen [::]:80;
    server_name <redacted>;
    return 404; # managed by Certbot
}

I did install a bunch of plugins via the marketplace:

  • Calendar Agenda (probably an error)
  • External Mail Warning
  • Impersonation Notice
  • Jitsi Meet (error)
  • External Link Warning
  • External Recipient Warning (error)

I get the following JavaScript console errors:

[plugin-sandbox] Failed to load "external-recipient-warning": Error: Bundle parse error: Unexpected token 'export'
    at a.onMessage (3237-2573528c1778b0b1.js:1:4672)
    at listener (3237-2573528c1778b0b1.js:1:4137)
[plugin-sandbox] Failed to load "jitsi-meet": Error: Bundle parse error: Unexpected token 'export'
    at a.onMessage (3237-2573528c1778b0b1.js:1:4672)
    at listener (3237-2573528c1778b0b1.js:1:4137)
POST https://<redacted>/api/calendar-agenda 502 (Bad Gateway)

Steps to Reproduce

  1. Go to Marketplace
  2. Install the named plugins
  3. Force them to all user
  4. Go back to inbox and look in the javascript console

Expected Behavior

The plugins not throwing Unexpected token 'export' and a working calendar-agenda.

Actual Behavior

Non-Working plugins

Bulwark Version

1.7.4

Stalwart Mail Server Version

v0.16.10

Browser

Chrome / Chromium

Operating System

macOS

Screenshots / Screen Recording

No response

Relevant Logs or Error Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions