mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-27 01:45:58 +03:00
[GH-ISSUE #3600] Modoboa 2.4.3: Blank page on webmail #1863
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1863
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThePlouaxe on GitHub (Jul 21, 2025).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3600
Impacted versions: 2.4.3
Steps to reproduce
Each time I am accessing to the webmail
Current behavior
After installation, everything is working well but I get a blank page while accessing to my webmail.
I got the following logs in my syslog from dovecot: auth: Error: oauth2 ..... oauth2 failed: Introspection failed: No username returned
Expected behavior
Webmail access.
@picheljitsu commented on GitHub (Jul 21, 2025):
Same issue. Just sticks at the "attempting to log you in." It's been a nightmare trying to get this thing up.
@Spitfireap commented on GitHub (Jul 21, 2025):
Hi, is it a new installation or an upgrade ?
Can you post the output of :
cd /srv/modoboa/instance && /srv/modoboa/env/bin/python manage.py check --deploy?@Spitfireap commented on GitHub (Jul 21, 2025):
This seems like another issue. Please open another discussion or issue
@jserviceorg commented on GitHub (Jul 21, 2025):
i have the same issue. login to the web interface works, calendar works, contacts works. but webmail gives a blank page.
Ubuntu 24.04, Modoboa installer, Postgres
root@mail:~# cd /srv/modoboa/instance && /srv/modoboa/env/bin/python manage.py check --deploy
System check identified some issues:
WARNINGS:
?: (security.W001) You do not have 'django.middleware.security.SecurityMiddleware' in your MIDDLEWARE so the SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_REFERRER_POLICY, SECURE_CROSS_ORIGIN_OPENER_POLICY, and SECURE_SSL_REDIRECT settings will have no effect.
System check identified 1 issue (1 silenced).
@ThePlouaxe commented on GitHub (Jul 21, 2025):
This is an update, as it failed with dependencies I reinstalled it keeping my database. from version 2.3.9
Here is the output:
/srv/modoboa/env/bin/python manage.py check --deploy
System check identified some issues:
WARNINGS:
?: (security.W001) You do not have 'django.middleware.security.SecurityMiddleware' in your MIDDLEWARE so the SECURE_HSTS_SECONDS, SECURE_CONTENT_TYPE_NOSNIFF, SECURE_REFERRER_POLICY, SECURE_CROSS_ORIGIN_OPENER_POLICY, and SECURE_SSL_REDIRECT settings will have no effect.
System check identified 1 issue (1 silenced).
@picheljitsu commented on GitHub (Jul 21, 2025):
I had the same issue. Used that string to replace the one in
MIDDLEWAREtuple insidesettings.pywhich fixed it for me. But now I'm back to the introspection error, which I assume is something to do w/ the CA chain?@ThePlouaxe commented on GitHub (Jul 21, 2025):
@picheljitsu What string did you replace in the MIDDLEWARE?
@tonioo commented on GitHub (Jul 22, 2025):
@ThePlouaxe Check this: https://modoboa.readthedocs.io/en/latest/upgrade.html#required-changes-to-settings-py
@picheljitsu It won't work with self-signed certificate...
@picheljitsu commented on GitHub (Jul 22, 2025):
If you look close in
settings.pyyou'll notice the output string from performingcheckis slightly different (sorry don't have the previous value)I also made sure the django-secure library was installed
@safiullahtariq commented on GitHub (Jul 23, 2025):
I have the same issue. Exact same error and no webmail.
@ThePlouaxe commented on GitHub (Jul 23, 2025):
@tonioo Everything is okay especially as I made a new install and not an upgrade. I am using a letsencrypt certificate, not a self-signed one
@safiullahtariq commented on GitHub (Jul 23, 2025):
were you able to solve the issue ?
@ThePlouaxe commented on GitHub (Jul 24, 2025):
@safiullahtariq No, tried to disable oauth2 in settings.py but if I do so I have been unable to log into admin...
Also tried to disable oauth2 in dovecot, I then got the oauthbearer error (and nothing if i disable it in dovecot)
Still looking for a solution to solve the problem.
@safiullahtariq commented on GitHub (Jul 24, 2025):
I uninstalled iredmail and installed this, now i am stuck with no webmail.
@Spitfireap commented on GitHub (Jul 24, 2025):
What's the content of
/etc/dovecot/conf.d/dovecot-oauth2.conf.ext? Be aware to remove the client secret for introspection_url, ie : https://dovecot:<client_secret>@.....@Spitfireap commented on GitHub (Jul 24, 2025):
Also try this :
tail -f /var/log/mail.logthen try to open the webmail and look for errors@ThePlouaxe commented on GitHub (Jul 24, 2025):
@Spitfireap Just got the same error with the webmail: dovecot: auth: Error: oauth2(xxx@xxx.fr,127.0.0.1,<mlMfv6o6KKB/AAAB>): oauth2 failed: Introspection failed: No username returned
@sparky5214 commented on GitHub (Jul 27, 2025):
I had this on new install (bookworm) and fixed it by deleting the Dovecot row in oauth2_provider_application in the database and recreating the application key and then updating the key in dovecot-auth2.conf.ext
delete from oauth2_provider_application where name = 'Dovecot'and then in the virtual env for modoboa create a new application client, that will output the key
replace the client key that is in the basic auth url in
/etc/dovecot/conf.d/dovecot-oauth2.conf.ext
systemctl restart dovecot.service
for a debugging hint in /etc/dovecot/conf.d/10-logging.conf turn on
auth_verbose = yes
auth_debug = yes
@ThePlouaxe commented on GitHub (Jul 30, 2025):
@sparky5214 This solved the problem. Thanks a lot.
@safiullahtariq commented on GitHub (Jul 30, 2025):
I dont know what I have done wrong but this has not solved my issue. I did upgrade modoboa and then did what you said. Should I try again ?
@sparky5214 commented on GitHub (Jul 31, 2025):
On 7/30/25 3:23 PM, safiullahtariq wrote:
I'd turn on the dovecot auth logging and see if you can see why the
webmail app doesn't have access.