1 (edited by chris.23lo 2023-10-30 12:34:50)

Topic: Lots of iredapd sub-process

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.5
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: rockylinux 8.8
- 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.
====

Hi there,

I found lots of process by iRedAPD, and I don't know how to track them down to what messages they are and how to clean them up.

Please share your thoughts. Thank you very much.

here is my postconf
# postconf -n|grep localhost
mydestination = $myhostname, localhost, localhost.localdomain

# systemctl status iredapd.service
* iredapd.service - iRedAPD (A simple posfix policy server)
   Loaded: loaded (/usr/lib/systemd/system/iredapd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2023-10-17 21:04:42 CST; 1 weeks 5 days ago
  Process: 755953 ExecStart=/usr/bin/python3 /opt/iredapd/iredapd.py (code=exited, status=0/SUCCESS)
Main PID: 755956 (python3)
    Tasks: 297 (limit: 408512)
   Memory: 416.4M
   CGroup: /system.slice/iredapd.service
           |- 755956 /usr/bin/python3 /opt/iredapd/iredapd.py
           |- 768704 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 768705 /usr/sbin/postdrop -r
           |- 771964 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 771965 /usr/sbin/postdrop -r
           |- 776642 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 776643 /usr/sbin/postdrop -r
           |- 789750 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 789751 /usr/sbin/postdrop -r
           |- 795993 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 795994 /usr/sbin/postdrop -r
           |- 797797 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 797798 /usr/sbin/postdrop -r
           |- 799500 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 799501 /usr/sbin/postdrop -r
           |- 799702 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 799703 /usr/sbin/postdrop -r
           |- 801845 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 801846 /usr/sbin/postdrop -r
           |- 802673 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 802674 /usr/sbin/postdrop -r
           |- 803660 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 803661 /usr/sbin/postdrop -r
           |- 805190 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 805191 /usr/sbin/postdrop -r
           |- 806361 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 806362 /usr/sbin/postdrop -r
           |- 807213 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 807214 /usr/sbin/postdrop -r
           |- 808753 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 808754 /usr/sbin/postdrop -r
           |- 809423 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 809424 /usr/sbin/postdrop -r
           |- 810374 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 810375 /usr/sbin/postdrop -r
           |- 812173 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 812174 /usr/sbin/postdrop -r
           |- 812678 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 812679 /usr/sbin/postdrop -r
           |- 814392 /usr/sbin/sendmail -f no-reply@localhost.localdomain root
           |- 814393 /usr/sbin/postdrop -r
           |- 815103 /usr/sbin/sendmail -f no-reply@localhost.localdomain root

----

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

2

Re: Lots of iredapd sub-process

Seems someone triggered your throttle setting configured in iRedAPD, then iRedAPD is trying to send notification email to root user.
Did you receive any emails in root's mailbox? What's the content of the email?

Note: iRedMail configures Postfix to forward emails sent to root to a valid email address, you can find the real email address in /etc/postfix/aliases.

3

Re: Lots of iredapd sub-process

ZhangHuangbin wrote:

Seems someone triggered your throttle setting configured in iRedAPD, then iRedAPD is trying to send notification email to root user.
Did you receive any emails in root's mailbox? What's the content of the email?

Note: iRedMail configures Postfix to forward emails sent to root to a valid email address, you can find the real email address in /etc/postfix/aliases.

Thanks for the pointer. Yes, there was a throttle effective for a particular account during that period.

4 (edited by chris.23lo 2023-11-01 00:03:50)

Re: Lots of iredapd sub-process

Update2:

On the issue that I didn't get the throttle emails.

Two aspects
A) No config (or default empty config) in /opt/iredapd/settings.py
NOTIFICATION_RECIPIENTS = ['root']
NOTIFICATION_SMTP_SERVER = 'localhost'
NOTIFICATION_SMTP_PORT = 587
NOTIFICATION_SMTP_STARTTLS = True
NOTIFICATION_SMTP_USER = 'no-reply@localhost.localdomain'
NOTIFICATION_SMTP_PASSWORD = ''
NOTIFICATION_SMTP_DEBUG_LEVEL = 0
NOTIFICATION_SENDER_NAME = 'No Reply'

B)
My local config has added a hashed transport map at the end, which is what I want for the moment.

# postconf -n |grep transport
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf proxy:mysql:/etc/postfix/mysql/transport_maps_maillist.cf proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf hash:/etc/postfix/transport

and this transport map was missing the first line, so I didn't get the iredapd throttle notification mail bcos it would then match the last matchall and forwarded to anothergateway and then went missing due to localhost.localdoamin isn't dns resolving or non-deliverable there.

localhost.localdomain <tab> local     <---- was missing !~
mydomain.com <tab> local
* <tab> smtp:[anothergateway]:25

I hope I explain some of the observations and corrects me if I am wrong.

Thank you so much.
Cheers

5

Re: Lots of iredapd sub-process

Excuse me, did you get it solved?

6

Re: Lots of iredapd sub-process

Hi Zhang,

I didn't get more of the sub-process or throttle mail because the too-many sender account was disabled. And since i didn't restart anything, processes still laying around...