Closed rafix1989 closed 4 years ago
Thread closed because i't's magically starts running.
getting this very same error, curious how to fix it
Mar 22 03:44:07 c48761dd915b sogod [65]: <0x556ed66239a0[SOGoMailAccount]:0> renewing imap4 password Mar 22 03:44:07 c48761dd915b sogod [65]: [ERROR] <0x556ed66239a0[SOGoMailAccount]:0> no IMAP4 password available Mar 22 03:44:07 c48761dd915b sogod [65]: [ERROR] <0x556ed66239a0[SOGoMailAccount]:0> Could not connect IMAP4 Mar 22 03:44:07 c48761dd915b sogod [65]: 172.19.0.1 "POST /SOGo/so/mail@domain.tld/Mail/unseenCount HTTP/1.0" 200 21/31 0.009 - - 0 - 13 Mar 22 03:44:42 c48761dd915b 2021-03-22 03:44:42.683 sogod[65:65] -[NGInternetSocketAddress _fillHost]: host not found .. Mar 22 03:44:42 c48761dd915b 2021-03-22 03:44:42.683 sogod[65:65] could not get DNS name of address 172.22.1.1 in domain <InternetDomain[0x0x556ed68e5fd0]>: 1 Mar 22 03:44:42 c48761dd915b sogod [65]: 172.22.1.1 "GET /SOGo.index/ HTTP/1.1" 200 2531/0 0.003 - - 0 - 13
dovecot seems to run fine, no problems login in with outlook or other clients, only sogo makin trouble here. Issue appeared right after fresh isntall
Same here. Issue appeared after an update this day.
Same here
Even there after an update from today. Should this not be reopened ?!
No.
It will show 172.22.1.1 when the connection seems to come from the Docker bridge of mailcow. Your masquerading is not working correctly. You should check iptables -L -vn -t nat
and debug the incorrect rule.
I tell this quite often but people get angry and tell me it's not their fault. That's why I really don't like to respond anymore when this comes up.
Oh...will look into this....and I'm not angry, thanks for your help ๐ ๐
Can you post the output? :)
Sure ! Theres is nothing than mailcow on that system (fortunately).
$ docker network ls
If I read the output correctly the MASQUERADE
seems to be ok, istn't it?
$ iptables -L -vn -t nat
This rule is the problem:
37581 2577K MASQUERADE all -- * !br-84fd0da68c99 172.22.0.0/16 0.0.0.0/0
Can you remove it? Is it an old bridge, that does not exist anymore?
iptables -t nat -D POSTROUTING 6
should do it.
# identify the mentioned line (eagle eyes already know that it is number 6)
$ iptables -L -vn -t nat --line-numbers
# delete that rule
$ iptables -t nat -D POSTROUTING 6
Indeed it was likely an old rule from an unclean docker shutdown. Maybe something I did wrong in or before the update process in March (as I also did os updates there). Thanks for that ! ๐
I just runned the update.sh
script and it fixied the issue.
This is a really nasty problem. Please consider to add this to https://mailcow.github.io/mailcow-dockerized-docs/de/troubleshooting/debug-common_problems/. I had a similar problem and this issue helped me to resolve it.
Had the same issue and SOLVED it: https://github.com/mailcow/mailcow-dockerized/issues/3657#issuecomment-1685786473
Should really added to the https://mailcow.github.io/mailcow-dockerized-docs/de/troubleshooting/debug-common_problems/.
Cheers! ๐ค
Prior to placing the issue, please check following: (fill out each checkbox with a
X
once done)Description of the bug: What kind of issue have you exactly come across?
After update Mailcow to latest version i have issue with SOGo or Dovecot. Error from logs [ERROR] <0x562d8c4bbb80[SOGoMailAccount]:0> Could not connect IMAP4 [ERROR] <0x562d8c4bbb80[SOGoMailAccount]:0> no IMAP4 password available [ERROR] <0x562d8c4bbb80[SOGoMailAccount]:0> renewing imap4 password
Reproduction of said bug: How exactly do you reproduce the bug?
I have tried or I do... (fill out each checkbox with a
X
if applicable)System information
Further information (where applicable):
docker version
)docker-compose version
)Further notes:
git diff origin/master
, any other changes to the code? If so, please post them.iptables -L -vn
,ip6tables -L -vn
,iptables -L -vn -t nat
andip6tables -L -vn -t nat
Check
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) anddocker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @1.1.1.1
- output? Timeout?General logs: