Applicable to:
- Plesk for Linux
Symptoms
-
Plesk Email Security extension is installed.
-
Emails are stuck in mail queue. The following error messages is logged in
/var/log/maillog
:CONFIG_TEXT: name postfix/error[14531]: 8954F66E14A4: to=jdoe@example.com, 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)
-
Amavis service is stopped shortly after activation. One of the the following error messages appear either in service status or system log
/var/log/syslog
:# 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).
CONFIG_TEXT: amavisd[1164334]: The value of variable $myhostname is "host", but should have been
amavisd[1164334]: a fully qualified domain name; perhaps uname(3) did not provide such.
amavisd[1164334]: You must explicitly assign a FQDN of this host to variable $myhostname
amavisd[1164334]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
amavisd[1164334]: network name!
systemd[1]: amavis.service: Main process exited, code=exited, status=1/FAILURE
ystemd[1]: amavis.service: Failed with result 'exit-code'.
Cause
The server hostname defined in Amavis configuration is not a fully qualified domain name (FQDN) or is not defined at all.
Resolution
-
Go to Tools & Settings > Server Settings and in Full hostname field set a fully qualified domain name that resolves to your Plesk server.
-
Click OK.
-
Connect to your Plesk server via SSH.
-
Open the file
/etc/amavisd/amavisd.conf
in a text editor. In this example, we are using vi editor:# vi /etc/amavisd/amavisd.conf
-
Find the"$myhostname" variable, then uncomment it and change its value to a FQDN:
CONFIG_TEXT: $myhostname = 'host.example.com';
-
Save the changes and close the file.
-
Start amavis service:
# service amavisd restart
-
Restart Postfix service:
# service postfix restart
- Go to Tools & Settings > Server Settings and in Full hostname field set a fully qualified domain name that resolves to your Plesk server.
-
Click OK.
-
Connect to your Plesk server via SSH.
-
Open the file
/etc/amavisd/amavisd.conf
in a text editor. In this example, we are using vi editor:# vi /etc/amavis/conf.d/05-node_id
-
Find the"$myhostname" variable, then uncomment it and change its value to a FQDN:
CONFIG_TEXT: $myhostname = 'host.example.com';
-
Save the changes and close the file.
-
Start amavis service:
# service amavis restart
-
Restart Postfix service:
# service postfix restart
Comments
0 comments
Please sign in to leave a comment.