Closed berniey closed 2 years ago
Is this related to https://github.com/modoboa/modoboa/issues/2200 ?
So it turns out it was issue with modoba.
This is from the /var/log/supervisor/policyd-stdout---supervisor-eMbCvP.log
:
Task exception was never retrieved
future: <Task finished coro=<run_at() done, defined at /srv/modoboa/env/lib/python3.6/site-packages/modoboa/policyd/core.py:64> exception=AttributeError("module 'aioredis' has no attribute 'create_redis_pool'",)>
Traceback (most recent call last):
File "/srv/modoboa/env/lib/python3.6/site-packages/modoboa/policyd/core.py", line 67, in run_at
return await coro(*args)
File "/srv/modoboa/env/lib/python3.6/site-packages/modoboa/policyd/core.py", line 258, in reset_counters
rclient = await aioredis.create_redis_pool(settings.REDIS_URL)
AttributeError: module 'aioredis' has no attribute 'create_redis_pool'
The issue has to do with modoboa code incompatibility with aioredis version 2.0.1. My solution is to downgrade aioredis to version 1.3.1 (see below). After that I can send email from both captioned mail client.
Run the following commands to downgrade aioredis:
source /srv/modoboa/env/bin/activate
pip uninstall aioredis
pip install aioredis==1.3.1
deactivate
systemctl restart supervisor.service
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Update 2022-03-05
Also tested on MacOS client and failed to send as well. Setup using step 7 as described in https://www.linuxbabe.com/mail-server/email-server-ubuntu-18-04-modoboa.
Impacted versions
Note: Modoboa is installed using install script. Below is the version I've used
Steps to reproduce
Full trace using --debug option or current behavior
Sending email from iphone
Sending email from Modoboa webapp
Expected behavior
Video/Screenshot link (optional)