The 550: Your country is not allowed to connect to this server error in cPanel/Exim means that the server is blocking emails from specific countries. To fix this issue, follow these steps:
π Steps to Fix Email Bounce Back Issue in Exim (cPanel)
1οΈβ£ Edit the Exim Configuration File
Open the Exim configuration file:
nano /etc/exim.conf
2οΈβ£ Find the Country Restriction Rule
Look for a section that includes:
drop message = Your country is not allowed to connect to this server. log_message = Country is banned hosts = +blocked_incoming_email_country_ips
3οΈβ£ Comment Out or Remove the Restriction
Modify it by commenting out or removing the block:
# drop # message = Your country is not allowed to connect to this server. # log_message = Country is banned # hosts = +blocked_incoming_email_country_ips
4οΈβ£ Save the File
For nano, press:
π `CTRL + X` β Press `Y` β Press `Enter`
For vi/vim, press:
π `Esc` β Type `:wq` β Press `Enter`
5οΈβ£ Restart Exim
Apply the changes by restarting Exim:
systemctl restart exim
β Alternative Fix: Check cPanel WHM Settings
If the issue persists, check cPanel WHM settings:
1. Log in to WHM.
2. Go to Home β Security Center β Country Blocking.
3. If country blocking is enabled, remove restrictions for the country in question.
4. Save changes and restart Exim.
π Additional Debugging
If the issue persists, check the Exim logs for blocked emails:
tail -f /var/log/exim_mainlog | grep "Your country is not allowed"
If necessary, whitelist the senderβs **IP** in Exim:
echo "yahoo.com : ACCEPT" >> /etc/exim.whitelist
Then restart Exim:
systemctl restart exim
π Summary
β Edit Exim config to remove country-based email restrictions.
β Restart Exim to apply changes.
β Check WHM Country BlockingΒ settings (if using cPanel/WHM).
β Review Exim logs for further troubleshooting.