This guide is for VPS and dedicated hosting plans where you cannot send an email from any email program but can receive emails without issue. If you examine the Exim log, you see the error Policy server HTTP error: Connection refused
. Your email client may be showing a connection timeout error, even after whitelisting your IP.
It is possible for cPHulk brute force protection to still apply to APF/CSF and Dovecot when the cPHulk service is not running. This issue is caused when the Dovecot config file has auth_policy_server_url but the cPHulk service is disabled. The fix is to remove this line from the Dovecot config file, rebuild the config file, and restart the Dovecot service as outlined below.
Related Articles
Exim Service Down - Not Able to Send or Receive Emails
Issues with PHP App Sending Mail
Adjust Configuration
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Ensure the cPHulk enabled file doesn't exist by running
rm /var/cpanel/hulkd/enabled
- Edit the
/etc/dovecot/dovecot.conf
file with a preferred text editor
EXAMPLE:nano /etc/dovecot/dovecot.conf
- Locate and remove the following line
auth_policy_server_url = http://127.0.0.1:579/dovecot-auth-policy
TIP: If this line does not exist, then the issue is likely not being caused by cPHulk. Reach out to our Technical Support team for further assistance. - Save the file
TIP: On nano, the file can be exited by pressing <Ctrl+X> and then pressing <Y> to agree to save the changes. - Rebuild Dovecot’s configuration file with
/usr/local/cpanel/scripts/builddovecotconf
- Restart Dovecot
/usr/local/cpanel/scripts/restartsrv_dovecot
Comments
0 comments
Article is closed for comments.