1

Topic: Failed to start Amavisd-new is an interface between MTA

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 097
- Linux/BSD distribution name and version: centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello

I'm migrating from 0.8.7 to 0.9.7.
Everything is fine, just amavisd didn't work.

in tail -f /var/log/maillog

Apr 10 19:12:50 mail postfix/amavis/smtp[8837]: 4F558615D37F: to=<example@gmail.com>, relay=none, delay=4742, delays=4742/0.09/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)



# systemctl status amavisd.service
● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Вт 2018-04-10 19:38:30 MSK; 19min ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 4845 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)

апр 10 19:38:29 mail. systemd[1]: amavisd.service: control process exited, code=exited status=13
апр 10 19:38:29 mail. systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
апр 10 19:38:29 mail. systemd[1]: Unit amavisd.service entered failed state.
апр 10 19:38:29 mail. systemd[1]: amavisd.service failed.
апр 10 19:38:30 mail. systemd[1]: amavisd.service holdoff time over, scheduling restart.
апр 10 19:38:30 mail. systemd[1]: start request repeated too quickly for amavisd.service
апр 10 19:38:30 mail. systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
апр 10 19:38:30 mail. systemd[1]: Unit amavisd.service entered failed state.
апр 10 19:38:30 mail. systemd[1]: amavisd.service failed.

----

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

2

Re: Failed to start Amavisd-new is an interface between MTA

Run command "/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf" manually, any error on terminal?

3

Re: Failed to start Amavisd-new is an interface between MTA

Nothing in terminal, when i run this command

4

Re: Failed to start Amavisd-new is an interface between MTA

in /var/log/maillog

Apr 10 23:53:03 mail postfix/amavis/smtp[9718]: 4F558615D37F: to=<example@gmail.com>, relay=none, delay=21556, delays=21556/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Apr 10 23:55:28 mail clamd[3295]: SelfCheck: Database status OK.
Apr 10 23:57:00 mail amavis[9802]: starting. /usr/sbin/amavisd at mail. amavisd-new-2.11.0 (20160426), Unicode aware, LANG="ru_RU.utf8"
Apr 10 23:57:02 mail amavis[9815]: Net::Server: Group Not Defined.  Defaulting to EGID '979 979'
Apr 10 23:57:02 mail amavis[9815]: Net::Server: User Not Defined.  Defaulting to EUID '985'
Apr 10 23:57:02 mail amavis[9815]: Using primary internal av scanner code for ClamAV-clamd
Apr 10 23:57:02 mail amavis[9815]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan

5 (edited by profeelucker 2021-11-09 03:34:32)

Re: Failed to start Amavisd-new is an interface between MTA

same issues
root@mail:~# tail -f /var/log/mail.log
Nov  9 01:16:49 mail amavis[3678]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need t                                                                                          o run 'sa-update'?
Nov  9 01:16:49 mail amavis[3678]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found                                                                                          !  Do you need to run 'sa-update'?
Nov  9 01:24:01 mail postfix/pickup[2317]: 4Hp5Hj6wZJz6wnq: uid=112 from=<amavis>
Nov  9 01:24:01 mail postfix/cleanup[4161]: 4Hp5Hj6wZJz6wnq: message-id=<4Hp5Hj6wZJz6wnq@mail.xxx>
Nov  9 01:24:01 mail postfix/qmgr[2318]: 4Hp5Hj6wZJz6wnq: from=<amavis@mail.xxx>, size=685, nrcpt=1                                                                                           (queue active)
Nov  9 01:24:02 mail postfix/amavis/smtp[4164]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Nov  9 01:24:02 mail postfix/amavis/smtp[4164]: 4Hp5Hj6wZJz6wnq: to=<amavis@mail.xxx>, orig_to=<amav                                                                                          is>, relay=none, delay=0.06, delays=0.05/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.                                                                                          1]:10026: Connection refused)

● 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 Tue 2021-11-09 01:16:49 +03; 11min ago
       Docs: http://www.ijs.si/software/amavisd/#doc
    Process: 3676 ExecStartPre=/usr/bin/find /var/lib/amavis -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
    Process: 3677 ExecStartPre=/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name amavis-* -type d -exec rm -rf {} ; (code=exited, status=0/SUCCESS)
    Process: 3678 ExecStart=/usr/sbin/amavisd-new foreground (code=exited, status=255/EXCEPTION)
   Main PID: 3678 (code=exited, status=255/EXCEPTION)
        CPU: 675ms

Nov 09 01:16:49 mail.xxx systemd[1]: amavis.service: Scheduled restart job, restart counter is at 5.
Nov 09 01:16:49 mail.xxx systemd[1]: Stopped Interface between MTA and virus scanner/content filters.
Nov 09 01:16:49 mail.xxx systemd[1]: amavis.service: Start request repeated too quickly.
Nov 09 01:16:49 mail.xxx systemd[1]: amavis.service: Failed with result 'exit-code'.
Nov 09 01:16:49 mail.xxx systemd[1]: Failed to start Interface between MTA and virus scanner/content filters.

6

Re: Failed to start Amavisd-new is an interface between MTA

i.sizganov wrote:

==== Required information ====

# systemctl status amavisd.service
● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
   Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Вт 2018-04-10 19:38:30 MSK; 19min ago
     Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 4845 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)

апр 10 19:38:29 mail. systemd[1]: amavisd.service: control process exited, code=exited status=13
апр 10 19:38:29 mail. systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
апр 10 19:38:29 mail. systemd[1]: Unit amavisd.service entered failed state.
апр 10 19:38:29 mail. systemd[1]: amavisd.service failed.
апр 10 19:38:30 mail. systemd[1]: amavisd.service holdoff time over, scheduling restart.
апр 10 19:38:30 mail. systemd[1]: start request repeated too quickly for amavisd.service
апр 10 19:38:30 mail. systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
апр 10 19:38:30 mail. systemd[1]: Unit amavisd.service entered failed state.
апр 10 19:38:30 mail. systemd[1]: amavisd.service failed.

In my case > config localhost to internet connections > then /usr/bin/sa-update > systemctl restart postfix and amavis