1

Topic: Problem to start amavis after restore backup mails and database

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version:  Debian 11
- 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.
====
After restore the database and vmail1 directory, I executed the next command: doveadm quota recalc -A
After this procedure, I restart the next services: amavis,postfix,dovecot.
And amavis is not start with the next log of systemctl status:

service amavis status
● amavis.service - Interface between MTA and virus scanner/content filters
     Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-12-10 17:42:15 UTC; 2ms ago
       Docs: http://www.ijs.si/software/amavisd/#doc
    Process: 15824 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
    Process: 15825 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCES>
    Process: 15826 ExecStart=/usr/sbin/amavisd-new foreground (code=exited, status=13)
   Main PID: 15826 (code=exited, status=13)
        CPU: 408ms

Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Scheduled restart job, restart counter is at 5.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: Stopped Interface between MTA and virus scanner/content filters.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Start request repeated too quickly.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Failed with result 'exit-code'.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: Failed to start Interface between MTA and virus scanner/content filters.

I need help

----

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

2

Re: Problem to start amavis after restore backup mails and database

nadrpen wrote:

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.2
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version:  Debian 11
- 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.
====
After restore the database and vmail1 directory, I executed the next command: doveadm quota recalc -A
After this procedure, I restart the next services: amavis,postfix,dovecot.
And amavis is not start with the next log of systemctl status:

service amavis status
● amavis.service - Interface between MTA and virus scanner/content filters
     Loaded: loaded (/lib/systemd/system/amavis.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2021-12-10 17:42:15 UTC; 2ms ago
       Docs: http://www.ijs.si/software/amavisd/#doc
    Process: 15824 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
    Process: 15825 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCES>
    Process: 15826 ExecStart=/usr/sbin/amavisd-new foreground (code=exited, status=13)
   Main PID: 15826 (code=exited, status=13)
        CPU: 408ms

Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Scheduled restart job, restart counter is at 5.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: Stopped Interface between MTA and virus scanner/content filters.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Start request repeated too quickly.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: amavis.service: Failed with result 'exit-code'.
Dec 10 17:42:15 serv1.ns-service.es systemd[1]: Failed to start Interface between MTA and virus scanner/content filters.

I need help

I managed to fix it, the problem came when I restored the backup of the DKIM.