Topic: iRedAPD doesn't work : New installation
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I have a new installation of iRedMail.
Everything seems OK except iRedAPD that doesn't start.
iRedMail version (check /etc/iredmail-release): 1.6.0 MARIADB edition
Deployed with iRedMail Easy or the downloadable installer? Downloadable ubstakker
Linux/BSD distribution name and version: Ubuntu 20.04
Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
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.
iRedAPD error
~# systemctl status iredapd.service
* iredapd.service - iRedAPD (A simple posfix policy server)
Loaded: loaded (/lib/systemd/system/iredapd.service; enabled; vendor preset: enabled)
Active: failed (Result: protocol) since Thu 2022-06-23 11:07:25 WAT; 6h ago
Jun 23 11:07:24 VPS-XXX python3[12361]: iredapd Loading plugin (priority: 80): greylisting
Jun 23 11:07:24 VPS-XXX python3[12361]: iredapd Loading plugin (priority: 60): throttle
Jun 23 11:07:24 VPS-XXX python3[12361]: iredapd Loading plugin (priority: 50): sql_alias_access_policy
Jun 23 11:07:25 VPS-XXX python3[12361]: iredapd Loading plugin (priority: 40): amavisd_wblist
Jun 23 11:07:25 VPS-XXX python3[12361]: iredapd Starting SRS sender rewriting channel, listening on 127.0.0.1:7778
Jun 23 11:07:25 VPS-XXX python3[12361]: iredapd Starting SRS recipient rewriting channel, listening on 127.0.0.1:7779
Jun 23 11:07:25 VPS-XXX systemd[1]: iredapd.service: Can't open PID file /run/iredapd.pid (yet?) after start: Operation not permitted
Jun 23 11:07:25 VPS-XXX systemd[1]: iredapd.service: Failed to set a watch for PID file /run/iredapd.pid: Too many open files
Jun 23 11:07:25 VPS-XXX systemd[1]: iredapd.service: Failed with result 'protocol'.
Jun 23 11:07:25 VPS-XXX systemd[1]: Failed to start iRedAPD (A simple posfix policy server).
Check processes
~# ps aux | grep iredap
iredapd 13620 0.0 0.2 43192 32312 ? S 16:54 0:00 /usr/bin/python3 /opt/iredapd/iredapd.py
root 14304 0.0 0.0 2612 588 ? Ss 17:02 0:00 /bin/sh -c python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null
root 14309 0.0 0.2 35392 30628 ? S 17:02 0:01 python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py
root 14972 0.0 0.0 3308 724 pts/2 S+ 17:08 0:00 grep --color=auto iredap
~# netstat -tulnp | grep 777
tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 13620/python3
tcp 0 0 127.0.0.1:7778 0.0.0.0:* LISTEN 13620/python3
tcp 0 0 127.0.0.1:7779 0.0.0.0:* LISTEN 13620/python3
~# telnet 0 7777
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
Thanks for your support.
Kind regards
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.