Nc31.0.8 Mail Issues

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.8
  • Operating system and version (e.g., Ubuntu 24.04):
    • ubunt 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • nginx version: nginx/1.24.0 (Ubuntu)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • pfsense/haproxy
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • This is in regards to nc mail app. I have installed multiple times in the past and can never get email to render in a reasonable amount of time 8 to 12 seconds per email. (yahoo, gmail, aol). Using my own email server takes approximately a second to load.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • I use both cloudflare > pfsense/haproxy > nginx/mod_security for connection

Summary of the issue you are facing:

I had been using snappy mail for a long time. Unfortunately I a profound issue with my server requiring a rebuild. I was able to recover most things but needed to reinstall snappy. Unfortunately their server is down and looks like something is going on there that makes me believe it may not come back. I need to have something that i dependable. Any case I once again installed nextcloud mail. It is painful in trying to load email messages. Average is 10 seconds unless it is my local mail server. I have scoured the internet and have done things like update database, mime types and all the other usual suspects. Nothing seems to help.

Steps to replicate it (hint: details matter!):

  1. open mailbox
  2. open email
  3. wait

Log entries

I do not see any nginx_error log, modsec security audit , nextcloud log.. Opening a developer console I will see the following

The iframe (iFrameResizer2) has not responded within 5 seconds. Check @iframe-resizer/child package has been loaded in the iframe.

The happens for each email I attempt to open an email. I have attempted to use this app in the past with similar results. I have spent a lot of time staring at this and would love any input

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem
No Errors


#### Web Browser

If the problem is related to the Web interface, open your browser inspector *Console* and *Network* tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
          
The iframe (iFrameResizer2) has not responded within 5 seconds. Check @iframe-resizer/child package has been loaded in the iframe.

#### Web server / Reverse Proxy

Nothing in the haproxy/firewall/nginx  when these errors occur
`
## Configuration
 
#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

t@server2:/var/www/nextcloud# sudo -u www-data php occ config:list system
{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
cloud.dakota-web.net”,
“localhost”,
“127.0.0.1”
],
“session_lifetime”: 86400,
“remember_login_cookie_lifetime”: 86400,
“session_keepalive”: false,
“auto_logout”: true,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “31.0.8.1”,
“overwrite.cli.url”: “https://cloud.dakota-web.net”,
“overwritehost”: “cloud.dakota-web.net”,
“overwriteprotocol”: “https”,
“overwritewebroot”: “/”,
“trusted_proxies”: “REMOVED SENSITIVE VALUE”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“memcache.distributed”: “\OC\Memcache\Redis”,
“memcache.local”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 6379
},
“maintenance”: false,
“maintenance_window_start”: 1,
“default_phone_region”: “US”,
“memories.db.triggers.fcu”: true,
“memories.exiftool”: “/var/www/nextcloud/apps/memories/bin-ext/exiftool-amd64-glibc”,
“memories.vod.path”: “/var/www/nextcloud/apps/memories/bin-ext/go-vod-amd64”,
“app_install_overwrite”: [
“mail_roundcube”,
“backup”,
“snappymail”
],
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “587”,
“mail_smtpauth”: 1,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“data-fingerprint”: “b75749e3d9f2b3944e61378be636b2df”,
“loglevel”: 1,
“debug”: false,
“theme”: “”,
“memories.vod.ffmpeg”: “/usr/bin/ffmpeg”,
“memories.vod.ffprobe”: “/usr/bin/ffprobe”,
“backgroundjobs_mode”: “cron”,
“files.chunked_upload.max_size”: 52428800,
“enable_previews”: true,
“enabledPreviewProviders”: [
“OC\Preview\Image”,
“OC\Preview\MP3”,
“OC\Preview\TXT”,
“OC\Preview\MarkDown”,
“OC\Preview\PDF”,
“OC\Preview\Movie”,
“OC\Preview\MSOffice2003”,
“OC\Preview\MSOffice2007”,
“OC\Preview\MSOfficeDoc”,
“OC\Preview\OpenDocument”,
“OC\Preview\StarOffice”,
“OC\Preview\SVG”,
“OC\Preview\TIFF”,
“OC\Preview\HEIC”,
“OC\Preview\HEIF”
],
“ratelimit.protection.whitelist”: [
“192.168.8.114”
],
“memories.gis_type”: 1
}
}


#### Apps

The output of `occ app:list` (if possible).

root@server2:/var/www/nextcloud# sudo -u www-data php occ app:list
Enabled:
  - activity: 4.0.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - calendar: 5.5.2
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.2.6
  - cookbook: 0.11.3
  - dashboard: 7.11.0
  - dav: 1.33.0
  - drawio: 3.1.0
  - external: 6.0.2
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - mail: 5.3.2
  - memories: 7.6.2
  - nextcloud_announcements: 3.0.0
  - notes: 4.12.3
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0
  - previewgenerator: 5.9.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recognize: 9.0.7
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.7.4
  - richdocumentscode: 25.4.403
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - support: 3.0.0
  - survey_client: 3.0.0
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - admin_audit: 1.21.0
  - contactsinteraction: 1.12.0 (installed 1.11.0)
  - encryption: 2.19.0
  - suspicious_login: 9.0.1
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0


Let me know if you would like further information for testing.   Unless I can come up with a solution I'm going to have to move on to something else to use that works...

Using your own IMAP server via the NC Mail app or do you mean via some other client?

Opening a developer console I will see the following

Can you monitor the Network tab in the inspector to see which transactions are actually the slow ones for you?

What type of hardware is Ubuntu on out of curiosity?

Also, related thread you may be interested in https://github.com/nextcloud/mail/issues/10384

Here is my hardware
tansy@server2:~$ sudo lshw -short
[sudo] password for tansy:
H/W path Device Class Description

                           system         To be filled by O.E.M. (SKU)

/0 bus M5A97 R2.0
/0/0 memory 64KiB BIOS
/0/4 processor AMD FX-8320E Eight-Core Processor
/0/4/5 memory 384KiB L1 cache
/0/4/6 memory 8MiB L2 cache
/0/4/7 memory 8MiB L3 cache
/0/2c memory 32GiB System Memory
/0/2c/0 memory 8GiB DIMM DDR3 Synchronous Unbuffe
/0/2c/1 memory 8GiB DIMM DDR3 Synchronous Unbuffe
/0/2c/2 memory 8GiB DIMM DDR3 Synchronous Unbuffe
/0/2c/3 memory 8GiB DIMM DDR3 Synchronous Unbuffe
/0/100 bridge RD9x0/RX980 Host Bridge
/0/100/2 bridge RD890/RD9x0/RX980 PCI to PCI bridg
/0/100/4 bridge RD890/RD9x0/RX980 PCI to PCI bridg
/0/100/4/0 enp2s0 network RTL8111/8168/8211/8411 PCI Express
/0/100/5 bridge RD890/RD9x0/RX980 PCI to PCI bridg
/0/100/5/0 bus ASM1042A USB 3.0 Host Controller
/0/100/5/0/0 usb8 bus xHCI Host Controller
/0/100/5/0/1 usb9 bus xHCI Host Controller
/0/100/7 bridge RD890/RD9x0/RX980 PCI to PCI bridg
/0/100/7/0 bus ASM1042A USB 3.0 Host Controller
/0/100/7/0/0 usb10 bus xHCI Host Controller
/0/100/7/0/1 usb11 bus xHCI Host Controller
/0/100/11 scsi0 storage SB7x0/SB8x0/SB9x0 SATA Controller
/0/100/11/0 /dev/cdrom disk CDRWDVD TS-H493A
/0/100/11/1 /dev/sda disk 3TB Hitachi HUS72403
/0/100/11/1/1 /dev/sda1 volume 1074MiB Windows FAT volume
/0/100/11/1/2 /dev/sda2 volume 2793GiB EFI partition
/0/100/11/0.0.0 /dev/sdb disk 3TB Hitachi HUS72403
/0/100/11/0.0.0/1 /dev/sdb1 volume 1074MiB Windows FAT volume
/0/100/11/0.0.0/2 /dev/sdb2 volume 2793GiB EFI partition
/0/100/12 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Contro
/0/100/12/1 usb1 bus OHCI PCI host controller
/0/100/12/1/2 bus AX68002
/0/100/12/1/2/1 input3 input Microsoft Wired Keyboard 600
/0/100/12/1/2/2 input2 input Logitech USB-PS/2 Optical Mouse
/0/100/12.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Control
/0/100/12.2/1 usb2 bus EHCI Host Controller
/0/100/13 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Contro
/0/100/13/1 usb5 bus OHCI PCI host controller
/0/100/13.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Control
/0/100/13.2/1 usb3 bus EHCI Host Controller
/0/100/14 bus SBx00 SMBus Controller
/0/100/14.2 card0 multimedia SBx00 Azalia (Intel HDA)
/0/100/14.2/0 input10 input HDA ATI SB Rear Mic
/0/100/14.2/1 input11 input HDA ATI SB Front Mic
/0/100/14.2/2 input12 input HDA ATI SB Line
/0/100/14.2/3 input13 input HDA ATI SB Line Out Front
/0/100/14.2/4 input14 input HDA ATI SB Line Out Surround
/0/100/14.2/5 input15 input HDA ATI SB Line Out CLFE
/0/100/14.2/6 input16 input HDA ATI SB Line Out Side
/0/100/14.2/7 input17 input HDA ATI SB Front Headphone
/0/100/14.3 bridge SB7x0/SB8x0/SB9x0 LPC host control
/0/100/14.3/0 system PnP device PNP0c01
/0/100/14.3/1 system PnP device PNP0c02
/0/100/14.3/2 system PnP device PNP0c02
/0/100/14.3/3 system PnP device PNP0b00
/0/100/14.3/4 system PnP device PNP0c02
/0/100/14.3/5 system PnP device PNP0c02
/0/100/14.3/6 communication PnP device PNP0501
/0/100/14.3/7 system PnP device PNP0c02
/0/100/14.3/8 system PnP device PNP0c02
/0/100/14.4 bridge SBx00 PCI to PCI Bridge
/0/100/14.5 bus SB7x0/SB8x0/SB9x0 USB OHCI2 Contro
/0/100/14.5/1 usb6 bus OHCI PCI host controller
/0/100/15 bridge SB700/SB800/SB900 PCI to PCI bridg
/0/100/15/0 display GK208B [GeForce GT 710]
/0/100/15/0.1 card1 multimedia GK208 HDMI/DP Audio Controller
/0/100/15/0.1/0 input6 input HDA NVidia HDMI/DP,pcm=3
/0/100/15/0.1/1 input7 input HDA NVidia HDMI/DP,pcm=7
/0/100/15/0.1/2 input8 input HDA NVidia HDMI/DP,pcm=8
/0/100/15/0.1/3 input9 input HDA NVidia HDMI/DP,pcm=9
/0/100/16 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Contro
/0/100/16/1 usb7 bus OHCI PCI host controller
/0/100/16.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Control
/0/100/16.2/1 usb4 bus EHCI Host Controller
/0/101 bridge Family 15h Processor Function 0
/0/102 bridge Family 15h Processor Function 1
/0/103 bridge Family 15h Processor Function 2
/0/104 bridge Family 15h Processor Function 3
/0/105 bridge Family 15h Processor Function 4
/0/106 bridge Family 15h Processor Function 5
/1 input0 input Power Button
/2 input1 input Power Button
/3 input5 input Eee PC WMI hotkeys

question:
Using your own IMAP server via the NC Mail app or do you mean via some other client?
Answer:
Using the NC Mail client. It renders at same speed as a direct connection via a roundcube client.

Here is a screen shot of an email being opened