Symptoms
-
E-Mails are stuck in mail-queue on a Plesk server with installed Plesk Email Security extension
-
The following error messages appear in
/var/log/maillog
:name postfix/error[14531]: 8954F66E14A4: [email protected], relay=none, delay=25755, delays=25754/0.07/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
-
The Amavis service is stopped with one of the following errors:
# systemctl status amavisd
(...)
systemd[1]: Starting Amavis mail content checker...
name amavisd[1507]: The value of variable $myhostname is "name", but should have been
name amavisd[1507]: a fully qualified domain name; perhaps uname(3) did not provide such.
name amavisd[1507]: You must explicitly assign a FQDN of this host to variable $myhostname
name amavisd[1507]: in amavisd.conf, or fix what uname(3) provides as a host's network name!
# systemctl status amavis
(...)
name amavis[1108]: Starting amavisd: The value of variable $myhostname is "name", but should have been
name amavis[1108]: a fully qualified domain name; perhaps uname(3) did not provide such.
name amavis[1108]: You must explicitly assign a FQDN of this host to variable $myhostname
name amavis[1108]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
name amavis[1108]: network name!
name amavis[1108]: (failed).
Cause
The server's hostname is not a fully qualified domain name.
Resolution
-
Navigate to Tools & Settings > Server Settings and change Full hostname to temporary one (for example temp.server.example.com)
-
Press OK
-
Open Tools & Settings > Server Settings and change Full hostname back to the original fully qualified domain name again and press OK
-
Connect to the server via SSH
- Make sure that "$myhostname" variable inside the /etc/amavisd/amavisd.conf is equal to the hostname set in step 4.
-
Start amavis service:
-
On RHEL based operating system:
# service amavisd start
-
On Debian based operating system:
# service amavis start
-
Note: Make sure the hostname is not set to a non-fully qualified domain name by a hypervisor in case the problem reappears.