[Modoboa/Postfix/Amavis] 451 4.3.0 Error: queue file write error

In a problem, we’ve encountered using Modoboa, sending and receiving mails was blocked and each time the following error was showed

451 4.3.0 Error: queue file write error

systemctl status clamd@amavisd was fine*

But  amavis was down.

> systemctl status amavisd
* amavisd.service – Amavis mail content checker
Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2021-05-05 09:14:26 UTC; 2 days ago
Docs: http://www.ijs.si/software/amavisd/#doc
Process: 12247 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=255)

May 05 09:14:26 myvps systemd[1]: Failed to start Amavis mail content checker.
May 05 09:14:26 myvps systemd[1]: Unit amavisd.service entered failed state.
May 05 09:14:26 myvps systemd[1]: amavisd.service failed.
May 05 09:14:26 myvps systemd[1]: amavisd.service holdoff time over, scheduling restart.
May 05 09:14:26 myvps systemd[1]: Stopped Amavis mail content checker.
May 05 09:14:26 myvps systemd[1]: start request repeated too quickly for amavisd.service
May 05 09:14:26 myvps systemd[1]: Failed to start Amavis mail content checker.
May 05 09:14:26 myvps systemd[1]: Unit amavisd.service entered failed state.
May 05 09:14:26 myvps systemd[1]: amavisd.service failed.

When checking amavis command, we see the following error

> amavisd

The value of variable $myhostname is "myvps", but should have been a fully qualified domain name; perhaps uname(3) did not provide such. You must explicitly assign a FQDN of this host to variable $myhostname in amavisd.conf, or fix what uname(3) provides as a host's network name!

I have then uncommented $myhostname in /etc/amavisd/amavisd.conf and defined it.

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *