the-djmaze / snappymail

Simple, modern & fast web-based email client
https://snappymail.eu
GNU Affero General Public License v3.0
998 stars 121 forks source link

Multiple Accounts leading to "open_basedir restriction in effect" #1555

Closed Terael76 closed 5 months ago

Terael76 commented 5 months ago

Describe the bug i am new to snappymail and i like it. before i am a happy rainloop User. After i set all up there is a problem after setting up multiple accounts. When i change the account it leads to "Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/gpg) is not within the allowed path(s): (/var/www/vhosts/XXX/YYY/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/XXX/tmp) in /var/www/vhosts/XXX/YYY/mail/snappymail/v/2.36.0/app/libraries/snappymail/gpg/base.php on line 487"

login with single accounts did work well.

To Reproduce Steps to reproduce the behavior:

  1. login
  2. Click top right on account icon
  3. click on another account to change
  4. then i see the error "Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/gpg) is not within the allowed path(s): (/var/www/vhosts/XXX/YYY/:/tmp/:/var/lib/php/sessions:/var/www/vhosts/XXX/tmp) in /var/www/vhosts/XXX/YYY/mail/snappymail/v/2.36.0/app/libraries/snappymail/gpg/base.php on line 487" An error occurred. Please refresh the page and try again. SyntaxError: Unexpected token '<', "
    "... is not valid JSON

Expected behavior it should change the mail account i use to login.

Screenshots no screenshot.

Please complete the following information:

  • Browser: MS Edge - Version 123.0.2420.97
  • IMAP daemon: don't know
  • PHP version: 8.1.28
  • SnappyMail Version: 2.36.0
  • Mode: [e.g. standalone, nextcloud, cyberpanel, docker] - standalone

Debug/logging information log-2024-04-20.txt

Additional context n/a

the-djmaze commented 5 months ago

For now go to: Admin -> Security -> Crypto, and disable GnuPG afbeelding

Terael76 commented 5 months ago

I had already tried this unsuccessfully. This setting is already deactivated

the-djmaze commented 5 months ago

Changed for next release to ignore the issue and force disable GnuPG