mailcow-dockerized icon indicating copy to clipboard operation
mailcow-dockerized copied to clipboard

"Mail Setup" configuration screen loads extremely slowly in Main UI

Open maltokyo opened this issue 2 years ago • 19 comments

Contribution guidelines

I've found a bug and checked that ...

  • [X] ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
  • [X] ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • [X] ... I have understood that answers are voluntary and community-driven, and not commercial support.
  • [X] ... I have verified that my issue has not been already answered in the past. I also checked previous issues.

Description

Normally, logging into mailcow takes you first to the "configuration and details" page, this is super fast. But from the top menu, when I select "Mail Setup" from the "Configuration" menu, it takes 1-2 minutes for the page to load. It just looks frozen, and then after some time suddenly loads without issue.

I cant see any cause in the logs (attached below). I am behind NPM, and everything is working well, with the exception of this long load time for this one config page...

Logs

php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:53:15 +0200 "HEAD /settings.php" 304
nginx-mailcow_1      | 172.22.1.13 - - [27/Apr/2022:11:53:15 +0200] "HEAD /settings.php HTTP/1.1" 304 0 "-" "rspamd-3.2"
sogo-mailcow_1       | Apr 27 11:53:17 06e6ab6668dd sogod [7142]: <0x0x55b1a09c2180[SOGoActiveSyncDispatcher]> Sleeping 45 seconds while detecting changes for user [email protected] in Ping...
redis-mailcow_1      | 1:M 27 Apr 2022 11:53:18.040 * 100 changes in 300 seconds. Saving...
redis-mailcow_1      | 1:M 27 Apr 2022 11:53:18.042 * Background saving started by pid 738
redis-mailcow_1      | 738:C 27 Apr 2022 11:53:18.109 * DB saved on disk
redis-mailcow_1      | 738:C 27 Apr 2022 11:53:18.110 * RDB: 0 MB of memory used by copy-on-write
redis-mailcow_1      | 1:M 27 Apr 2022 11:53:18.142 * Background saving terminated with success
watchdog-mailcow_1   | Wed Apr 27 11:53:19 CEST 2022 Redis health level: 100% (5/5), health trend: 0
sogo-mailcow_1       | Apr 27 11:53:19 06e6ab6668dd sogod [65]: mailcowdockerized_watchdog-mailcow_1.mailcowdockerized_mailcow-network "GET /SOGo.index/ HTTP/1.1" 200 2573/0 0.007 - - 0 - 13
watchdog-mailcow_1   | Wed Apr 27 11:53:19 CEST 2022 SOGo health level: 100% (3/3), health trend: 0
ofelia-mailcow_1     | 2022-04-27T11:53:20.005+02:00  common.go:125 ▶ NOTICE [Job "sogo_eautoreply" (d3c5c7349fe8)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu sogo /usr/sbin/sogo-tool update-autoreply -p /etc/sogo/sieve.creds || exit 0"
ofelia-mailcow_1     | 2022-04-27T11:53:20.01+02:00  common.go:125 ▶ NOTICE [Job "dovecot_repl_health" (ee5d3b45957d)] Started - /bin/bash -c "/usr/local/bin/gosu vmail /usr/local/bin/repl_health.sh"
ofelia-mailcow_1     | 2022-04-27T11:53:20.176+02:00  common.go:125 ▶ NOTICE [Job "dovecot_repl_health" (ee5d3b45957d)] Finished in "166.183184ms", failed: false, skipped: false, error: none
ofelia-mailcow_1     | 2022-04-27T11:53:20.4+02:00  common.go:125 ▶ NOTICE [Job "sogo_eautoreply" (d3c5c7349fe8)] Finished in "394.72274ms", failed: false, skipped: false, error: none
ofelia-mailcow_1     | 2022-04-27T11:53:25.007+02:00  common.go:125 ▶ NOTICE [Job "sogo_sessions" (0d92c6e3e728)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu sogo /usr/sbin/sogo-tool expire-sessions ${SOGO_EXPIRE_SESSION} || exit 0"
ofelia-mailcow_1     | 2022-04-27T11:53:25.008+02:00  common.go:125 ▶ NOTICE [Job "sogo_ealarms" (89989dbc810c)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu sogo /usr/sbin/sogo-ealarms-notify -p /etc/sogo/sieve.creds || exit 0"
ofelia-mailcow_1     | 2022-04-27T11:53:25.009+02:00  common.go:125 ▶ NOTICE [Job "dovecot_trim_logs" (bca35b34f040)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu vmail /usr/local/bin/trim_logs.sh || exit 0"
ofelia-mailcow_1     | 2022-04-27T11:53:25.013+02:00  common.go:125 ▶ NOTICE [Job "dovecot_imapsync_runner" (bafc78745d4a)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu nobody /usr/local/bin/imapsync_runner.pl || exit 0"
ofelia-mailcow_1     | 2022-04-27T11:53:25.373+02:00  common.go:125 ▶ NOTICE [Job "dovecot_trim_logs" (bca35b34f040)] Finished in "363.583378ms", failed: false, skipped: false, error: none
ofelia-mailcow_1     | 2022-04-27T11:53:25.395+02:00  common.go:125 ▶ NOTICE [Job "sogo_ealarms" (89989dbc810c)] Finished in "387.927264ms", failed: false, skipped: false, error: none
ofelia-mailcow_1     | 2022-04-27T11:53:25.568+02:00  common.go:125 ▶ NOTICE [Job "sogo_sessions" (0d92c6e3e728)] Finished in "560.973616ms", failed: false, skipped: false, error: none
watchdog-mailcow_1   | Wed Apr 27 11:53:25 CEST 2022 MySQL/MariaDB health level: 100% (5/5), health trend: 0
sogo-mailcow_1       | Apr 27 11:53:25 06e6ab6668dd sogod [10]: [WARN] <0x0x55b19ece52e0[WOWatchDogChild]> pid 67 has been hanging in the same request for 5 minutes
dovecot-mailcow_1    | Apr 27 11:53:26 f3ce94083c23 dovecot: imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=::1, lip=::1, TLS, TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
watchdog-mailcow_1   | Wed Apr 27 11:53:26 CEST 2022 Unbound health level: 100% (5/5), health trend: 0
dovecot-mailcow_1    | Apr 27 11:53:26 f3ce94083c23 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=::1, lip=::1, mpid=175756, TLS, TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
dovecot-mailcow_1    | Apr 27 11:53:28 f3ce94083c23 dovecot: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=172.22.1.4, lip=172.22.1.250, TLS, TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
watchdog-mailcow_1   | Wed Apr 27 11:53:28 CEST 2022 Primary certificate expiry check health level: 100% (7/7), health trend: 0
sogo-mailcow_1       | Apr 27 11:53:31 06e6ab6668dd sogod [10]: [WARN] <0x0x55b19ece3bd0[WOWatchDogChild]> pid 7142 has been hanging in the same request for 1 minutes
watchdog-mailcow_1   | Wed Apr 27 11:53:32 CEST 2022 ACME health level: 100% (1/1), health trend: 0
dovecot-mailcow_1    | Apr 27 11:53:34 f3ce94083c23 dovecot: imap([email protected])<175756><M+blx5/d6pQAAAAAAAAAAAAAAAAAAAAB>: Disconnected: Logged out in=1838 out=161000 deleted=0 expunged=0 trashed=0 hdr_count=583 hdr_bytes=43249 body_count=0 body_bytes=0
ofelia-mailcow_1     | 2022-04-27T11:53:34.496+02:00  common.go:125 ▶ NOTICE [Job "dovecot_imapsync_runner" (bafc78745d4a)] Finished in "9.483188556s", failed: false, skipped: false, error: none
watchdog-mailcow_1   | Wed Apr 27 11:53:35 CEST 2022 Fail2ban health level: 100% (1/1), health trend: 0
postfix-mailcow_1    | Apr 27 11:53:41 74503f642528 postfix/smtps/smtpd[19084]: warning: unknown[212.70.149.72]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
netfilter-mailcow_1  | 212.70.149.72 matched rule id 3 (warning: unknown[212.70.149.72]: SASL LOGIN authentication failed: UGFzc3dvcmQ6)
netfilter-mailcow_1  | 3 more attempts in the next 600 seconds until 212.70.149.72/32 is banned
watchdog-mailcow_1   | Wed Apr 27 11:53:41 CEST 2022 Postfix health level: 100% (8/8), health trend: 0
sogo-mailcow_1       | Apr 27 11:53:41 06e6ab6668dd sogod [67]: <0x0x55b1a021c670[SOGoActiveSyncDispatcher]> Sleeping 45 seconds while detecting changes for user [email protected] in Ping...
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f - [email protected] 27/Apr/2022:11:53:43 +0200 "GET /sogo-auth.php" 200
nginx-mailcow_1      | 127.0.0.1 - [email protected] [27/Apr/2022:11:53:43 +0200] "GET /sogo-auth HTTP/1.0" 200 0 "-" "Android-Mail/2022.04.03.443250466.Release"
dovecot-mailcow_1    | Apr 27 11:53:43 f3ce94083c23 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=172.22.1.248, lip=172.22.1.250, mpid=175768
dovecot-mailcow_1    | Apr 27 11:53:44 f3ce94083c23 dovecot: imap([email protected])<175768><ZsjqyJ/dUJ+sFgH4>: Disconnected: Logged out in=197 out=3627 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
nginx-mailcow_1      | 100.22.111.16 - [email protected] [27/Apr/2022:11:53:44 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.1" 200 50 "-" "Android-Mail/2022.04.03.443250466.Release"
sogo-mailcow_1       | Apr 27 11:53:44 06e6ab6668dd sogod [65]: 100.22.111.16, 100.22.111.16 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.0" 200 50/38 0.195 - - 0 - 13
php-fpm-mailcow_1    | 172.22.1.10 - [email protected] 27/Apr/2022:11:53:44 +0200 "GET /sogo-auth.php" 200
nginx-mailcow_1      | 127.0.0.1 - [email protected] [27/Apr/2022:11:53:44 +0200] "GET /sogo-auth HTTP/1.0" 200 0 "-" "Android-Mail/2022.04.03.443250466.Release"
dovecot-mailcow_1    | Apr 27 11:53:44 f3ce94083c23 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=172.22.1.248, lip=172.22.1.250, mpid=175770
nginx-mailcow_1      | 100.22.111.16 - [email protected] [27/Apr/2022:11:53:44 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.1" 200 0 "-" "Android-Mail/2022.04.03.443250466.Release"
sogo-mailcow_1       | Apr 27 11:53:44 06e6ab6668dd sogod [65]: 100.22.111.16, 100.22.111.16 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.0" 200 0/104 0.204 - - 0 - 13
dovecot-mailcow_1    | Apr 27 11:53:44 f3ce94083c23 dovecot: imap([email protected])<175770><JfzyyJ/dXp+sFgH4>: Disconnected: Logged out in=249 out=4103 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f - [email protected] 27/Apr/2022:11:53:44 +0200 "GET /sogo-auth.php" 200
nginx-mailcow_1      | 127.0.0.1 - [email protected] [27/Apr/2022:11:53:45 +0200] "GET /sogo-auth HTTP/1.0" 200 0 "-" "Android-Mail/2022.04.03.443250466.Release"
dovecot-mailcow_1    | Apr 27 11:53:45 f3ce94083c23 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=172.22.1.248, lip=172.22.1.250, mpid=175772
nginx-mailcow_1      | 100.22.111.16 - [email protected] [27/Apr/2022:11:53:45 +0200] "POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.1" 200 0 "-" "Android-Mail/2022.04.03.443250466.Release"
dovecot-mailcow_1    | Apr 27 11:53:45 f3ce94083c23 dovecot: imap([email protected])<175772><0Gf8yJ/dbJ+sFgH4>: Disconnected: Logged out in=247 out=4056 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
sogo-mailcow_1       | Apr 27 11:53:45 06e6ab6668dd sogod [65]: 100.22.111.16, 100.22.111.16 "POST /SOGo/Microsoft-Server-ActiveSync?Cmd=Sync&User=mal%40mydomain.com&DeviceId=androidc711446705&DeviceType=Android HTTP/1.0" 200 0/100 0.202 - - 0 - 13
postfix-mailcow_1    | Apr 27 11:53:46 74503f642528 postfix/smtps/smtpd[19084]: lost connection after AUTH from unknown[212.70.149.72]
postfix-mailcow_1    | Apr 27 11:53:46 74503f642528 postfix/smtps/smtpd[19084]: disconnect from unknown[212.70.149.72] ehlo=1 auth=0/1 rset=1 commands=2/3
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:53:50 +0200 "HEAD /forwardinghosts.php" 200
nginx-mailcow_1      | 172.22.1.13 - - [27/Apr/2022:11:53:50 +0200] "HEAD /forwardinghosts.php HTTP/1.1" 200 0 "-" "rspamd-3.2"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:53:50 +0200 "GET /forwardinghosts.php" 200
nginx-mailcow_1      | fd4d:6169:6c63:6f77::12 - - [27/Apr/2022:11:53:50 +0200] "GET /forwardinghosts.php HTTP/1.1" 200 27 "-" "rspamd-3.2"
watchdog-mailcow_1   | Wed Apr 27 11:53:51 CEST 2022 Mail queue health level: 100% (20/20), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:53:51 CEST 2022 Ratelimit health level: 100% (1/1), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:53:52 CEST 2022 ACME health level: 100% (1/1), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:53:53 CEST 2022 MySQL/MariaDB health level: 100% (5/5), health trend: 0
rspamd-mailcow_1     | 2022-04-27 11:53:57 #130(controller) <f84046>; csession; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 0 regexps matched, 3226 regexps total, 2427 regexps cached, 0B scanned using pcre, 102B scanned total
watchdog-mailcow_1   | Wed Apr 27 11:53:57 CEST 2022 Rspamd health level: 100% (5/5), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:53:57 CEST 2022 Dovecot replication health level: 100% (20/20), health trend: 0
sogo-mailcow_1       | Apr 27 11:53:59 06e6ab6668dd sogod [65]: mailcowdockerized_watchdog-mailcow_1.mailcowdockerized_mailcow-network "GET /SOGo.index/ HTTP/1.1" 200 2573/0 0.004 - - 0 - 13
watchdog-mailcow_1   | Wed Apr 27 11:53:59 CEST 2022 SOGo health level: 100% (3/3), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:54:00 CEST 2022 Unbound health level: 100% (5/5), health trend: 0
sogo-mailcow_1       | Apr 27 11:54:02 06e6ab6668dd sogod [7142]: <0x0x55b1a09c2180[SOGoActiveSyncDispatcher]> Sleeping 45 seconds while detecting changes for user [email protected] in Ping...
dovecot-mailcow_1    | Apr 27 11:54:04 f3ce94083c23 dovecot: lmtp(175447): Connect from 172.22.1.4
dovecot-mailcow_1    | Apr 27 11:54:04 f3ce94083c23 dovecot: lmtp(175447): Disconnect from 172.22.1.4: Logged out (state=MAIL FROM)
dovecot-mailcow_1    | Apr 27 11:54:04 f3ce94083c23 dovecot: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=172.22.1.4, lip=172.22.1.250, TLS, TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
dovecot-mailcow_1    | Apr 27 11:54:04 f3ce94083c23 dovecot: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=172.22.1.4, lip=172.22.1.250
dovecot-mailcow_1    | Apr 27 11:54:04 f3ce94083c23 dovecot: managesieve-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=172.22.1.4, lip=172.22.1.250
watchdog-mailcow_1   | Wed Apr 27 11:54:04 CEST 2022 Dovecot health level: 100% (12/12), health trend: 0
nginx-mailcow_1      | 172.22.1.4 - - [27/Apr/2022:11:54:06 +0200] "GET / HTTP/1.1" 200 15 "-" "check_http/v (nagios-plugins 2.3.3)"
watchdog-mailcow_1   | Wed Apr 27 11:54:06 CEST 2022 Nginx health level: 100% (5/5), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:54:07 CEST 2022 Clamd health level: 100% (15/15), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:54:10 CEST 2022 Olefy health level: 100% (5/5), health trend: 0
watchdog-mailcow_1   | Wed Apr 27 11:54:12 CEST 2022 PHP-FPM health level: 100% (5/5), health trend: 0
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:12 +0200] "GET /api/v1/get/mailq/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:53:12 +0200 "GET /json_api.php" 200
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:53:12 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:12 +0200] "GET /api/v1/get/transport/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:53:17 +0200 "GET /mailbox.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /mailbox HTTP/1.1" 200 19655 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/presets/sieve HTTP/1.1" 200 808 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/passwordpolicy/html HTTP/1.1" 200 97 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/domain/mydomain2.com HTTP/1.1" 200 348 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/bcc-destination-options HTTP/1.1" 200 192 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/domain/all HTTP/1.1" 200 524 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/mailbox/reduced HTTP/1.1" 200 714 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/resource/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/recipient_map/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/filters/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/bcc/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/alias-domain/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/tls-policy-map/all HTTP/1.1" 200 33 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/syncjobs/all/no_log HTTP/1.1" 200 624 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
php-fpm-mailcow_1    | 172.22.1.10 -  27/Apr/2022:11:54:13 +0200 "GET /json_api.php" 200
nginx-mailcow_1      | 100.22.111.16 - - [27/Apr/2022:11:54:13 +0200] "GET /api/v1/get/alias/all HTTP/1.1" 200 335 "https://mail.mydomain.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36"
watchdog-mailcow_1   | Wed Apr 27 11:54:13 CEST 2022 Fail2ban health level: 100% (1/1), health trend: 0
php-fpm-mailcow_1    | fd4d:6169:6c63:6f77::f -  27/Apr/2022:11:54:15 +0200 "HEAD /settings.php" 304
nginx-mailcow_1      | 172.22.1.13 - - [27/Apr/2022:11:54:15 +0200] "HEAD /settings.php HTTP/1.1" 304 0 "-" "rspamd-3.2"

Steps to reproduce

  1. log in to mailcow UI (not SoGo)
  2. Choose at the top of the screen "Mail Setup" from the "Configuration" menu
  3. ... then it takes 1-2 min of waiting for the "Mail Setup" UI to load for me

System information

Question Answer
My operating system Debian 11
Is Apparmor, SELinux or similar active? Not sure how to check this
Virtualization technlogy (KVM, VMware, Xen, etc - LXC and OpenVZ are not supported KVM
Server/VM specifications (Memory, CPU Cores) 48GB RAM, 12 CPU Cores
Docker Version (docker version) 20.10.14
Docker-Compose Version (docker-compose version) 1.29.2
Reverse proxy (custom solution) NPM - https://nginxproxymanager.com

Output of git diff origin/master, any other changes to the code? If so, please post them:

diff --git a/data/assets/ssl-example/cert.pem b/data/assets/ssl-example/cert.pem
index 96d16bec..1cc145b6 100644
--- a/data/assets/ssl-example/cert.pem
+++ b/data/assets/ssl-example/cert.pem

All third-party firewalls and custom iptables rules are unsupported. Please check the Docker docs about how to use Docker with your own ruleset. Nevertheless, iptabels output can help us to help you: iptables -L -vn:

disabled firewall for testing

ip6tables -L -vn:

disabled firewall for testing

iptables -L -vn -t nat:

disabled firewall for testing

ip6tables -L -vn -t nat:

disabled firewall for testing

DNS problems? Please run docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254 (set the IP accordingly, if you changed the internal mailcow network) and post the output:

docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254
151.101.193.69
151.101.65.69
151.101.1.69
151.101.129.69

maltokyo avatar Apr 27 '22 10:04 maltokyo

How many domains and mailboxes you have?

DerLinkman avatar Apr 27 '22 15:04 DerLinkman

Just two domains with max three emails each at the moment... I'm just trying out before moving few others with 30-40 mailboxes

maltokyo avatar Apr 27 '22 17:04 maltokyo

Would anyone know of some test I can run to get a hint at the cause? Waiting 2 min each time I go in there will not be nice.. and I fear it is some database corruption or something which does not instill confidence.

maltokyo avatar Apr 28 '22 07:04 maltokyo

Do you have a Custom Logo added to your mailcow?

DerLinkman avatar Apr 28 '22 08:04 DerLinkman

No, I do not. It's a fresh install, with the latest update, 2022-04 applied successfully (and this happened also before the update).

maltokyo avatar Apr 28 '22 08:04 maltokyo

Which kind of Datastorage do you use?

SSD, HDD?

Native, SAN or NFS?

DerLinkman avatar Apr 28 '22 08:04 DerLinkman

It is an SSD-only VPS, with 48GB RAM, and 960GB SSD with more than half of that available. Server loads (12 core) are 99% of the time less than 1)

maltokyo avatar Apr 28 '22 08:04 maltokyo

Hm, yes your Setup looks good to me.

Did you follow the Docs gracefully for NGINX as a Reverse Proxy?

DerLinkman avatar Apr 28 '22 08:04 DerLinkman

Yes, have followed it closely. The other important thing to note, I think, is that after a restart of mailcow, for a few minutes it doesn't have this issue and loads fast and normally. So I really think it is some mailcow issue, not the reverse proxy.

maltokyo avatar Apr 28 '22 09:04 maltokyo

Hm, could be but all my administrated mailcows running smoothly as always and they don´t have a Reverse Proxy before them. Exept one which has a Traefik before him.

DerLinkman avatar Apr 28 '22 09:04 DerLinkman

Im wondering if anyone would know some way to diagnose what is going on here..

maltokyo avatar Apr 28 '22 14:04 maltokyo

In my experience its an API endpoint which is slowing down the admin UI. You could try the following to pin point it.

  • open mailcow admin
  • wait until its fully loaded
  • open the developer toolbar
  • switch to the network tab
  • right click on status under timing enable duration
  • and open "Mail setup" (/mailbox)

This could look something like the following and usually its one of the request in the red box, i used chromium for my test.

image

also you could try if this change would ease your pain, but even if it does it would be interessting whats causing your slow UI.

marcojarjour avatar May 19 '22 14:05 marcojarjour

Thank you very much @marcojarjour

Unfortunately in the network tab I do not have a "status" anywhere to right click. Could you please confirm again if it is the right sequence?

image

maltokyo avatar May 19 '22 22:05 maltokyo

I think I have found it, needed to load the page first for the columns to show. Does this help?

image

maltokyo avatar May 19 '22 22:05 maltokyo

Sorry for the inconvenience, yes that's its. It seems the Mailcow UI itself loading quite fast, in about 1.1 Seconds, so you need to look into your Proxy setup.

You could try to leave out your proxy configuration with ssh forwarding like the following ssh <your-server> -NL 8080:127.0.0.1:8080 and open your Mailcow UI in your Browser via localhost:8080. If this is fast its definitly not a Mailcow Issue. If thats the case, i don't know NPM and your setup but i would guess you are running NPM on the same Host as Mailcow. If you are using a dns entry for the destination in your proxy configuration, try it with 127.0.0.1 instead.

marcojarjour avatar May 20 '22 05:05 marcojarjour

Thank you @marcojarjour

Well, that is the strange thing, sometimes it loads fine (as above, yes it was almost instant) and sometimes really slow. I tried again this morning, and here is the result, it took 40s to load (no changes in NPM or anything else on the server in the meantime, and yes NPM is running on the same instance):

image

maltokyo avatar May 20 '22 07:05 maltokyo

Your welcome. This is really quite strange and would need some poking around where this could come from. My best guess would be some some sort of missconfiguration, but this is quite hard to diagnose or peak loads on your system. did you check your proxy configuration as suggested?

marcojarjour avatar May 21 '22 10:05 marcojarjour

Ill try to update to June release when it comes out, as I still run April release. Maybe the May release buffer size fixes will fix that issue.

maltokyo avatar Jun 06 '22 13:06 maltokyo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

milkmaker avatar Aug 06 '22 00:08 milkmaker

In the end, I think this was some artifact of the migration to docker-compose V2.

What I did to solve it (in ase helpful to others) was: shutdown mailcow prune all container which are not in use Start mailcow again with force recreate all containers

All issues gone, and works like a charm.

maltokyo avatar Aug 17 '22 13:08 maltokyo