Do you receive the "Connect to 127.0.0.1[127.0.0.1]:10024: Connection Refused" error while sending and receiving emails on Plesk? In this article, we will discuss the causes and solutions of this problem in detail.
This error is usually related to the Amavis service running on the Plesk server. Amavis is a software that checks email traffic for viruses and spam. The "Connection Refused" error indicates that the Amavis service is not running or cannot be reached on a specific port. The causes of this problem include:
First, you should check if Plesk and Amavis services are running. You can connect to your server via SSH and use the following commands:
systemctl status amavisd systemctl status psa
These commands will show the status of the relevant services. If the services are stopped, you can try restarting them with the following commands:
systemctl start amavisd systemctl start psa
If the services are not running or are giving errors, you can review the log files to get more information.
Restarting the Amavis service often solves the problem. To restart the service, you can use the following command over SSH:
systemctl restart amavisd
This command will stop and restart the Amavis service. If the problem persists, it is important to check the log files for more information:
tail -f /var/log/maillog
This command will display the last lines of the mail log file. You can find error messages and clues about the problem here.
Firewall settings can prevent the Amavis service from working properly. Make sure that port 10024 is open. You can use the following command to check if this port is open:
iptables -L -n | grep 10024
If port 10024 is not listed, you can use the following commands to open the port:
iptables -A INPUT -p tcp --dport 10024 -j ACCEPT service iptables save service iptables restart
These commands will open port 10024 and restart the firewall.
If the above steps do not resolve the issue, Plesk and related services may need to be updated or reinstalled. Plesk updates usually resolve many issues and ensure that you are using the most up-to-date and secure version of the software. To update Plesk, you can follow these steps:
If the updates do not solve the problem, you may consider reinstalling Plesk. However, you should definitely back up your data before doing this.