1

Topic: iRedAPD Doesn't Work

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04, kernel 4.9.15
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Thank you for reading this topic.

I found that iRedMail client on my server failed to receive or send any emails. When sending emails with builtin roundcube, it says "SMTP Error (451): Failed to add recipient"[1], while receiving doesn't work either.

I found that iRedAPD doesn't work properly, with these log:

● iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/opt/iredapd/rc_scripts/iredapd.service; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sun 2017-06-25 20:40:09 UTC; 4s ago
  Process: 4945 ExecStart=/usr/bin/python /opt/iredapd/iredapd.py (code=exited, status=1/FAILURE)

Jun 25 20:40:09 mx python[4945]: Traceback (most recent call last):
Jun 25 20:40:09 mx python[4945]:   File "/opt/iredapd/iredapd.py", line 23, in <module>
Jun 25 20:40:09 mx python[4945]:     from libs import __version__, daemon, utils
Jun 25 20:40:09 mx python[4945]:   File "/opt/iRedAPD-2.0/libs/utils.py", line 8, in <module>
Jun 25 20:40:09 mx python[4945]:     from sqlalchemy import create_engine
Jun 25 20:40:09 mx python[4945]: ImportError: No module named sqlalchemy
Jun 25 20:40:09 mx systemd[1]: iredapd.service: Control process exited, code=exited status=1
Jun 25 20:40:09 mx systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
Jun 25 20:40:09 mx systemd[1]: iredapd.service: Unit entered failed state.
Jun 25 20:40:09 mx systemd[1]: iredapd.service: Failed with result 'exit-code'.

I also checked logs generated in /var/log/iredapd . The latest log was in Jun 22, which is the last day iRedMail work fully functionally, and since then, no more logs and it stopped working.

[1]: https://i.imgur.com/zqbezSs.png

----

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

2

Re: iRedAPD Doesn't Work

lifeingenso wrote:

Jun 25 20:40:09 mx python[4945]: ImportError: No module named sqlalchemy

Please install packages:

- python-sqlalchemy
- python-mysqldb

3

Re: iRedAPD Doesn't Work

Thank you. Problem solved.

BTW, I tried the "buy me a coffee" link and Paypal says a Chinese Paypal account cannot make payments to another Chinese Paypal account. If possible, could you please share an Alipay or Wechat Pay account?

4

Re: iRedAPD Doesn't Work

lifeingenso wrote:

BTW, I tried the "buy me a coffee" link and Paypal says a Chinese Paypal account cannot make payments to another Chinese Paypal account. If possible, could you please share an Alipay or Wechat Pay account?

AliPay: michaelbibby _at_ gmail _dot_ com
Thank you.