mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.75k stars 1.17k forks source link

Cannot add IMAP account in SOGo #4334

Closed keenmouse closed 2 years ago

keenmouse commented 2 years ago

Prior to placing the issue, please check following: (fill out each checkbox with an X once done)

Summary

When attempting to add an IMAP account in SOGo, the "OK" button on the dialog is never enabled, even after all fields are filled with valid info. SOGoMailAuxiliaryUserAccountsEnabled is set to YES in sogo.conf (per Mailcow default).

Mailcow installed fresh today. Tested on an SSD Nodes 8GB/2 core VPS under both Debian 10 and Ubuntu 20.04. Also tested on a Hyper-V virtual machine.

Logs

acme-mailcow_1 | OK clamd-mailcow_1 | Wed Nov 24 11:49:44 2021 -> SelfCheck: Database status OK. dockerapi-mailcow_1 | 172.22.1.9 - - [24/Nov/2021 10:50:30] "POST /containers/61b4d9619c9c7051a9a1c1cd839704bd3823c49afcfc1d3383ffa893fc0f4d1b/restart HTTP/1.1" 200 - dovecot-mailcow_1 | Nov 24 11:51:44 7c8a192442d4 dovecot: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=172.22.1.5, lip=172.22.1.250 mysql-mailcow_1 | Version: '10.5.13-MariaDB-1:10.5.13+maria~focal' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution netfilter-mailcow_1 | Watching Redis channel F2B_CHANNEL nginx-mailcow_1 | 172.22.1.13 - - [24/Nov/2021:11:51:49 -0700] "GET /forwardinghosts.php HTTP/1.1" 200 27 "-" "rspamd-3.1" ofelia-mailcow_1 | 2021-11-24T18:50:59.556Z common.go:125 ▶ NOTICE [Job "sogo_sessions" (484a9db2612a)] Finished in "544.460617ms", failed: false, skipped: false, error: none olefy-mailcow_1 | olefy INFO serving on ('0.0.0.0', 10055) php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::d - 24/Nov/2021:11:51:49 -0700 "GET /forwardinghosts.php" 200 postfix-mailcow_1 | Nov 24 11:49:36 0cd4836ea8ad postfix/smtpd[475]: disconnect from mailcowdockerized_acme-mailcow_1.mailcowdockerized_mailcow-network[172.22.1.11] ehlo=1 starttls=1 commands=2 redis-mailcow_1 | 1:M 24 Nov 2021 11:46:59.104 Background saving terminated with success rspamd-mailcow_1 | 2021-11-24 11:51:19 #38(controller) <2f61f7>; csession; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 0 regexps matched, 3174 regexps total, 2404 regexps cached, 0B scanned using pcre, 102B scanned total sogo-mailcow_1 | Nov 24 11:51:53 61b4d9619c9c sogod [63]: mailcowdockerized_watchdog-mailcow_1.mailcowdockerized_mailcow-network "GET /SOGo.index/ HTTP/1.1" 200 2573/0 0.002 - - 0 - 12 solr-mailcow_1 | 2021-11-24 17:52:51.163 INFO (commitScheduler-13-thread-1) [ ] o.a.s.u.DirectUpdateHandler2 end_commit_flush unbound-mailcow_1 | [1637776017] unbound[1:0] info: generate keytag query _ta-4f66. NULL IN watchdog-mailcow_1 | Wed Nov 24 11:51:53 MST 2021 SOGo health level: 100% (3/3), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:51:54 MST 2021 Redis health level: 100% (5/5), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:51:56 MST 2021 Postfix health level: 100% (8/8), health trend: 0 php-fpm-mailcow_1 | fd4d:6169:6c63:6f77::d - 24/Nov/2021:11:51:58 -0700 "GET /sogo-auth.php" 200 nginx-mailcow_1 | 127.0.0.1 - - [24/Nov/2021:11:51:58 -0700] "GET /sogo-auth HTTP/1.0" 200 0 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo/so/jim@[my domain]/editAccount?account=new HTTP/2.0" 200 3682 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" sogo-mailcow_1 | Nov 24 11:51:58 61b4d9619c9c sogod [63]: 192.168.111.12 "GET /SOGo/so/jim@[my domain]/editAccount?account=new HTTP/1.0" 200 3682/0 0.010 16354 77% 0 - 12 nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/img/certificate.svg?lm=1637585779 HTTP/2.0" 200 564 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/config.js?t=LAHF HTTP/2.0" 200 660 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/skins/n1theme/editor_gecko.css?t=LAHF HTTP/2.0" 200 8483 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/lang/en.js?t=LAHF HTTP/2.0" 200 5272 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/styles.js?t=LAHF HTTP/2.0" 200 1765 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/plugins/scayt/dialogs/dialog.css?t=LAHF HTTP/2.0" 200 239 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/plugins/dialog/styles/dialog.css HTTP/2.0" 200 231 "https://mailcow.[my domain]/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" nginx-mailcow_1 | 192.168.111.12 - - [24/Nov/2021:11:51:58 -0700] "GET /SOGo.woa/WebServerResources/js/vendor/ckeditor/contents.css?t=LAHF HTTP/2.0" 200 1220 "https://mailcow.[my domain]/SOGo/so/jim@[my domain]/Preferences" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0" ofelia-mailcow_1 | 2021-11-24T18:51:59.007Z common.go:125 ▶ NOTICE [Job "dovecot_repl_health" (2f15d8d220d5)] Started - /bin/bash -c "/usr/local/bin/gosu vmail /usr/local/bin/repl_health.sh" ofelia-mailcow_1 | 2021-11-24T18:51:59.015Z common.go:125 ▶ NOTICE [Job "dovecot_imapsync_runner" (c5363123a8ac)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu nobody /usr/local/bin/imapsync_runner.pl || exit 0" ofelia-mailcow_1 | 2021-11-24T18:51:59.024Z common.go:125 ▶ NOTICE [Job "sogo_ealarms" (3f0a40c40138)] 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 | 2021-11-24T18:51:59.03Z common.go:125 ▶ NOTICE [Job "sogo_sessions" (43ee27990572)] 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 | 2021-11-24T18:51:59.035Z common.go:125 ▶ NOTICE [Job "dovecot_trim_logs" (a2e853e30e72)] Started - /bin/bash -c "[[ ${MASTER} == y ]] && /usr/local/bin/gosu vmail /usr/local/bin/trim_logs.sh || exit 0" ofelia-mailcow_1 | 2021-11-24T18:51:59.564Z common.go:125 ▶ NOTICE [Job "dovecot_repl_health" (2f15d8d220d5)] Finished in "557.632283ms", failed: false, skipped: false, error: none ofelia-mailcow_1 | 2021-11-24T18:51:59.624Z common.go:125 ▶ NOTICE [Job "dovecot_trim_logs" (a2e853e30e72)] Finished in "588.930014ms", failed: false, skipped: false, error: none ofelia-mailcow_1 | 2021-11-24T18:51:59.742Z common.go:125 ▶ NOTICE [Job "dovecot_imapsync_runner" (c5363123a8ac)] Finished in "727.621863ms", failed: false, skipped: false, error: none ofelia-mailcow_1 | 2021-11-24T18:51:59.836Z common.go:125 ▶ NOTICE [Job "sogo_ealarms" (3f0a40c40138)] Finished in "812.071406ms", failed: false, skipped: false, error: none ofelia-mailcow_1 | 2021-11-24T18:51:59.882Z common.go:125 ▶ NOTICE [Job "sogo_sessions" (43ee27990572)] Finished in "851.935691ms", failed: false, skipped: false, error: none redis-mailcow_1 | 1:M 24 Nov 2021 11:52:00.079 100 changes in 300 seconds. Saving... redis-mailcow_1 | 1:M 24 Nov 2021 11:52:00.079 Background saving started by pid 28 redis-mailcow_1 | 28:C 24 Nov 2021 11:52:00.091 DB saved on disk redis-mailcow_1 | 28:C 24 Nov 2021 11:52:00.091 RDB: 0 MB of memory used by copy-on-write redis-mailcow_1 | 1:M 24 Nov 2021 11:52:00.180 Background saving terminated with success nginx-mailcow_1 | 172.22.1.5 - - [24/Nov/2021:11:52:01 -0700] "GET / HTTP/1.1" 200 15 "-" "check_http/v (nagios-plugins 2.3.2)" watchdog-mailcow_1 | Wed Nov 24 11:52:01 MST 2021 Nginx health level: 100% (5/5), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:03 MST 2021 Clamd health level: 100% (15/15), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:05 MST 2021 ACME health level: 100% (1/1), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:05 MST 2021 Olefy health level: 100% (5/5), health trend: 0 rspamd-mailcow_1 | 2021-11-24 11:52:08 #38(controller) <4135a5>; csession; rspamd_redis_connected: skip obtaining bayes tokens for BAYES_HAM of classifier bayes: not enough learns 2; 5 required rspamd-mailcow_1 | 2021-11-24 11:52:08 #38(controller) <4135a5>; csession; rspamd_redis_connected: skip obtaining bayes tokens for BAYES_SPAM of classifier bayes: not enough learns 0; 5 required rspamd-mailcow_1 | 2021-11-24 11:52:08 #38(controller) <4135a5>; csession; rspamd_protocol_http_reply: regexp statistics: 0 pcre regexps scanned, 0 regexps matched, 3174 regexps total, 2404 regexps cached, 0B scanned using pcre, 102B scanned total watchdog-mailcow_1 | Wed Nov 24 11:52:08 MST 2021 Rspamd health level: 100% (5/5), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:09 MST 2021 Ratelimit health level: 100% (1/1), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:10 MST 2021 Unbound health level: 100% (5/5), health trend: 0 watchdog-mailcow_1 | Wed Nov 24 11:52:10 MST 2021 Dovecot replication health level: 100% (20/20), health trend: 0 php-fpm-mailcow_1 | 172.22.1.10 - 24/Nov/2021:11:52:13 -0700 "HEAD /settings.php" 304 nginx-mailcow_1 | 172.22.1.13 - - [24/Nov/2021:11:52:13 -0700] "HEAD /settings.php HTTP/1.1" 304 0 "-" "rspamd-3.1" rspamd-mailcow_1 | 2021-11-24 11:52:15 #38(controller) ; map; http_map_error: error reading http://nullnull.org/bad-subject-regex.txt([2a01:4f9:c010:687d::1]:80): connection with http server terminated incorrectly: IO write error: Network is unreachable watchdog-mailcow_1 | Wed Nov 24 11:52:21 MST 2021 PHP-FPM health level: 100% (5/5), health trend: 0

Reproduction

System information

Question Answer
My operating system Debian 10
Is Apparmor, SELinux or similar active? No
Virtualization technlogy (KVM, VMware, Xen, etc - LXC and OpenVZ are not supported I believe SSD Nodes uses KVM
Server/VM specifications (Memory, CPU Cores) 8GB, 2 cores
Docker Version (docker version) 20.10.11
Docker-Compose Version (docker-compose version) 1.29.2
Reverse proxy (custom solution) None
MAGICCC commented 2 years ago

Did you add an Account name? image

keenmouse commented 2 years ago

That field is easy to miss, but yes, I did enter an account name. Even when I don't enter one, I don't see the standard behaviour when you click OK and you get scrolled to the top and the field is highlighted in red. I get nothing at all when I click OK.

I should mention that I have tried this in Firefox, Chrome, and Edge with fresh user profiles and no extensions. Also tried in Firefox on iPad. I get the same results regardless.

Lulalaby commented 2 years ago

Dumb question. Isn't it a security relevant thing including the private keys of certs in the diff log

keenmouse commented 2 years ago

Dumb question. Isn't it a security relevant thing including the private keys of certs in the diff log

I noted in the post that they are no longer in use. Just too lazy to trim them out.

hugalafutro commented 2 years ago

I've just tried to add an IMAP account to sogo on fresh mailcow-dockerized install and ran into same issue. The OK button never becomes clickable even if all fields are filled not only the ones marked with asterisk.

keenmouse commented 2 years ago

I've just tried to add an IMAP account to sogo on fresh mailcow-dockerized install and ran into same issue. The OK button never becomes clickable even if all fields are filled not only the ones marked with asterisk.

Thanks so much for confirming. Would you mind also checking for this issue?

milkmaker commented 2 years ago

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

flo1212 commented 1 year ago

Unfortunately, the problem is still present in the latest version. We need this feature.

MAGICCC commented 1 year ago

It works fine on my side. Did you fill out the 'Identities' option?

flo1212 commented 1 year ago

Yes!!

Am 1. Mai 2023 15:26:09 schrieb Peter @.***>:

It works fine on my side. Did you fill out the 'Identities' option? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

flo1212 commented 1 year ago

bild

Mailbox: bild2

Domain-Admin: bild3

MAGICCC commented 1 year ago

No idea works fine on my end image

flo1212 commented 1 year ago

we have multiple mailcow servers and the problem persists on all servers

jonocodes commented 5 months ago

I was having issues with this. But found it worked when I made sure there was a single identity added only. It was automatically adding an additional blank identity when I added one. If I removed the blank one, I was given the OK button. Sounds like a UI bug.