Is your mail not working in VestaCP? We can help you in tackling it.
Usually, there are many reasons for email errors to arise in VestaCP. Some of them are spam issues, update issues, permission issues, and so on.
Here at Bobcares, we have seen several such VestaCP related errors as part of our Server Management Services for web hosts and online service providers.
Today we’ll see the different causes and their respective fixes for the VestaCP mail issue.
How we fix the VestaCP mail not working problem?
Now let’s see how our Support Engineers fix this error for our customers.
1. A spam issue causes mail not to work
In most cases, the SPAM rules are too restrictive. So we change the spam score. For that, here are the steps that we follow.
1. First, we access the file /etc/exim4/exim4.conf.template by running the below command.
vi /etc/exim4/exim4.conf.template
2. Next, we change the SPAM score from 50 to a more permissive 20.
SPAMASSASSIN = yes SPAM_SCORE = 20 CLAMD = yes
3. Finally, we save and quit the file.
2. A update issue in VestaCP
Every time, when VestaCP performs an update, there are chances for the update to stop or stay incomplete due to various reasons. So if the update is not fully completed then it causes mail issues.
So to solve this issue, we run the below command
/usr/local/vesta/bin/v-update-sys-vesta-all
After that, we restart the server.
3. A namespace issue causing VestaCP mail not to working
Sometimes the namespace issue of dovecot leads to the mail problem. So in order to solve this, we edit the file /etc/dovecot/dovecot.conf.
vi /etc/dovecot/dovecot.conf
Then we add the following code into it.
namespace inbox { inbox = yes }
This generally fixes the mail problem.
4. Firewall problems – A permission issue
A firewall can also cause issues in email. Especially the ClamAV causes these email problems. ClamAV is an open-source antivirus engine for detecting Trojans, viruses, malware, and other malicious threats.
We’ve seen in some cases that the ClamAV lost the permissions on some folders causing email problems.
So we correct the permission using the below commands.
сhown clam:mail /var/run/clamav/
This must fix the VestaCP mail problems.
[Still, not able to fix email issues? Need more assistance with the Vestacp mail issue? We’ll help you]
Conclusion
In short, the Vestacp mail problems occurs mainly due to Exim problem, firewall issues, and so on. Today, we saw how our Support Engineers help our customers in resolving the email problems in VestaCP.
Correct it >> сhown clam:mail /var/run/clamav/
Here clamav instead clam
🙂
ClamAV lost the permissions on some folders, which is one of the issues that causes VestaCP mail to not work. Therefore, we use this command to correct the permission.