1

Topic: iRedAPD iModuleNotFoundError: No module named 'multipart'

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.4
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version:  Ubuntu 24.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.

Dec 10 16:33:56 mail systemd[1]: Starting iredapd.service - iRedAPD (A simple posfix policy server)...
Dec 10 16:33:58 mail python3[11037]: Traceback (most recent call last):
Dec 10 16:33:58 mail python3[11037]:   File "/opt/iredapd/iredapd.py", line 20, in <module>
Dec 10 16:33:58 mail python3[11037]:     from libs import __version__, daemon, utils
Dec 10 16:33:58 mail python3[11037]:   File "/opt/iRedAPD-5.9.3/libs/utils.py", line 20, in <module>
Dec 10 16:33:58 mail python3[11037]:     from web import sqlquote
Dec 10 16:33:58 mail python3[11037]:   File "/opt/iRedAPD-5.9.3/web/__init__.py", line 4, in <module>
Dec 10 16:33:58 mail python3[11037]:     from . import (  # noqa: F401
Dec 10 16:33:58 mail python3[11037]:   File "/opt/iRedAPD-5.9.3/web/debugerror.py", line 19, in <module>
Dec 10 16:33:58 mail python3[11037]:     from . import webapi as web
Dec 10 16:33:58 mail python3[11037]:   File "/opt/iRedAPD-5.9.3/web/webapi.py", line 12, in <module>
Dec 10 16:33:58 mail python3[11037]:     import multipart
Dec 10 16:33:58 mail python3[11037]: ModuleNotFoundError: No module named 'multipart'
Dec 10 16:33:58 mail systemd[1]: iredapd.service: Control process exited, code=exited, status=1/FAILURE
Dec 10 16:33:58 mail systemd[1]: iredapd.service: Failed with result 'exit-code'.
Dec 10 16:33:58 mail systemd[1]: Failed to start iredapd.service - iRedAPD (A simple posfix policy server).
Dec 10 16:33:58 mail systemd[1]: iredapd.service: Consumed 1.250s CPU time.
====
iRedAPD will not start, as the above logfile shows. The only problem I find is there is no module named 'multipart'
I use pyhont 3.12.3

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedAPD iModuleNotFoundError: No module named 'multipart'

I may add that port 7777 is closed and I can not sen any email by postfix.

3

Re: iRedAPD iModuleNotFoundError: No module named 'multipart'

AndersBergquist wrote:

Dec 10 16:33:58 mail python3[11037]:     import multipart
Dec 10 16:33:58 mail python3[11037]: ModuleNotFoundError: No module named 'multipart'

iRedAPD will not start, as the above logfile shows. The only problem I find is there is no module named 'multipart'
I use pyhont 3.12.3

To fix:
sudo apt install python3-multipart

4

Re: iRedAPD iModuleNotFoundError: No module named 'multipart'

Thanks for the feedback. Fixed this in iRedAPD-5.9.4 moment ago.
https://github.com/iredmail/iRedAPD/tags