Topic: [SOLVED] Amavis stopped.
SOLUTION:
So I had an idea...
Replaced:
Restart=on-failure
with
Restart=always
in the
/usr/lib/systemd/system/amavis.service
Then running
systemctl daemon-reload
systemctl restart amavisWill see if this helps with the "stopped" issue.
Kindest regards.
AndrzejL
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
1.6.0
- Deployed with iRedMail Easy or the downloadable installer?
Downloadable installer
- Linux/BSD distribution name and version:
Debian Bullseye 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
MySQL
- Web server (Apache or Nginx):
Nginx
- Manage mail accounts with iRedAdmin-Pro?
No - as far as I know its a regular iRedAdmin. Not pro...
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello.
Freshly installed (maybe 2 weeks ago) iredmail 1.6.0. Installed using the downloadable .sh script.
Everything seems to be fine. I seem to receive / send e-mails as expected. However. On the occasion I see this:
● amavis.service - Interface between MTA and virus scanner/content filters
Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2022-07-07 20:06:42 IST; 1h 2min ago
Docs:
Process: 3438 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
Process: 3443 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
Process: 3445 ExecStart=/usr/sbin/amavisd-new foreground (code=exited, status=0/SUCCESS)
Main PID: 3445 (code=exited, status=0/SUCCESS)
CPU: 5.416s
Jul 07 19:46:44 mail.williwonka.eu amavis[3445]: (03445-13) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:48068 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:48068), Queue-ID: 4Lf53m3f8Hz1dL, Message-ID: <20220707184644.51E62232C@an>
Jul 07 20:01:39 mail.williwonka.eu amavis[3445]: (03445-14) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:47468 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:47468), Queue-ID: 4Lf0b15fY2z240, Message-ID: <20220707152501.870A3230C@an>
Jul 07 20:01:46 mail.williwonka.eu amavis[3445]: (03445-15) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:55258 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:55258), Queue-ID: 4Lf5P61vqNz1dD, Message-ID: <20220707190146.0C7862456@an>
Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-16) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:51764 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:51764), Queue-ID: 4Ldz4T1VFJz22Q, Message-ID: <20220707141657.03F3E593@pri>
Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-17) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:57786 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:57786), Queue-ID: 4Ldz4C0MNhz22J, Message-ID: <20220707141642.CFD6E23C3@an>
Jul 07 20:06:39 mail.williwonka.eu amavis[3445]: (03445-17-2) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:52650 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:52650), Queue-ID: 4Ldz820kscz22T, Message-ID: <20220707142001.DF21723C3@>
Jul 07 20:06:40 mail.williwonka.eu amavis[3445]: (03445-17-3) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:39958 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:39958), Queue-ID: 4Lf0hn3Gxjz244, Message-ID: <20220707153001.3345E23C3@>
Jul 07 20:06:40 mail.williwonka.eu amavis[3445]: (03445-17-4) Passed CLEAN {RelayedInternal}, ORIGINATING LOCAL [66.77.88.99]:39956 [66.77.88.99] ESMTP/ESMTP <williwonka@williwonka.eu> -> <williwonka@williwonka.eu>, (ESMTPSA://[66.77.88.99]:39956), Queue-ID: 4Lf0hn39t8z243, Message-ID: <20220707153001.311ED23E2@>
Jul 07 20:06:42 mail.williwonka.eu systemd[1]: amavis.service: Succeeded.
Jul 07 20:06:42 mail.williwonka.eu systemd[1]: amavis.service: Consumed 5.416s CPU time.
I am unable to figure out why amavis dies but then when restarted I seem to be getting a lot of backlogged e-mails.
Can you please try and help?
Ask for any additional info like command outputs or logs and you shall receive it.
Kindest regards.
AndrzejL
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.