mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #3089] Postfix connection refused and all message been rejected issue with ad-hoc and conf solutions. #1759
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#1759
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 @yellowsoar on GitHub (Oct 10, 2023).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/3089
Impacted versions
Steps to reproduce
Current behavior
tail -f /var/log/mail.logjournalctl -u supervisor -fthanks to https://github.com/modoboa/modoboa/issues/2561 and https://serverfault.com/q/1100917
/srv/modoboa/env/bin/python /srv/modoboa/instance/manage.py policy_daemonand got the following error messages.Ad-hoc fix approach
github.com/modoboa/modoboa@da18e4370f/modoboa/policyd/management/commands/policy_daemon.py (L28)byvim /srv/modoboa/env/lib/python3.9/site-packages/modoboa/policyd/management/commands/policy_daemon.pyto Thanks to https://stackoverflow.com/q/19246103/4464382Another fix approach
/etc/hostsand found the IPv6 setupvim /etc/supervisor/conf.d/policyd.conffrom the follows to/etc/hostsperhaps?Expected behavior
No error messages or rejected messages.
Video/Screenshot link (optional)
None
Question
installer.cfgthat is generated by https://github.com/modoboa/modoboa-installer@Spitfireap commented on GitHub (Oct 10, 2023):
Hi,
Thanks for the well written report.
I'm quite sure you encounter the same bug as another user on discord. Can you check that IPv6 is enabled on your server ? You can for instance run
ifconfigand check that the internet interface do have an inet6 address.If that's not the case, could you try commenting the
::1 localhost ip6-localhost ip6-loopbackline. Some hosts do not enable ipv6 by default but keep this line in their hosts file, and it might introduce bogus situation as this one when using localhost (trying to bind to a nonexistent interface...).@yellowsoar commented on GitHub (Oct 11, 2023):
Ah ha!
ifconfig! I miss the day without the container! LOL👉 First, no inet6 in the
ifconfigstdout.👉 After that and then recover the supervisor config and restart the service it still works!
👉 I think the IPv6 localhost binding in the
/etc/hostsis now confirmed as the problem.⚠️ But!!!
After a few minutes,
radicalegoes wrong according to the log of the supervisor... ╮( ̄▽ ̄"")╭@Spitfireap commented on GitHub (Oct 22, 2023):
Closing since the initial issue is solved. Feel free to open another issue about radicale