1 (edited by chris123 2023-04-15 19:23:02)

Topic: No emails - clamav-daemon keeps crashing

- iRedMail version (check /etc/iredmail-release): 1.6.1 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? I do believe it was a downloadable installer
- Linux/BSD distribution name and version: Debian 10
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MARIADB
- 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.

I recently upgraded from 1.3.2 to 1.6.1.

I thought everything was working fine, but I soon discovered that was not the case.

For some reason clamav-daemon keeps crashing and I'm not able to figure out why.

I know when it crashes because I stop receiving emails.

When I upgraded to 1.5.2, I made a few changes to /etc/amavis/conf.d/50-user...

I commented out the following lines:

#@av_scanners_backup = (
#   ['clamav-clamscan', 'clamscan',
#   "--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
  #  qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

I'm not sure if this is what I was suppose to do, but it says the following on the upgrade page:

To prevent this case, we simply disable the backup option by adding (or overwriting) parameter @av_scanners_backup in Amavisd config file

Thanks for taking the time to help me fix this issue.


UPDATE: I did a little more research and I think clamav-daemon may have crashed due to lack of memory. I just added an additional 1GB of RAM to the server, so hopefully that fixes the problem.

With clamav-daemon running "free -h" is showing 2.2GB of available ram.


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


Re: No emails - clamav-daemon keeps crashing

How much memory does this server have? At least 4GB is required for low traffic production server, clamav + spamassassin take most memory.

Also, you should add this line instead of comment it out:

@av_scanners_backup = ();