Cannot receive emails

I installed Hestia on a new VPS. With Hestia I setup a few websites, databases, cron jobs and emails. Everything works great.
However, when I leave the system for a few hours, my email clients (Thunderbird and Mailwasher) cannot download the emails (POP). I have to reboot the server to solve the problem.

BTW
The system is under construction. So, during the break period there is no activity except the cron jobs.

Hope you have a solution.
Thank you very much

Have you looked at the logs? Try to download a message, and then look for the logs at that time.

Thank you jlguerrero … will do

I checked all the log files in /usr/local/hestia/log and only in system.log I found something relevant (see bellow). It turns out that the problem is due to the action of a firewall.

I changed the my IP address a few times through a VPN, and as you can see in the log it run after me and added mail firewall ban on my IP. Also, you can see that after sometime it deleted the mail firewall ban.

I would be grateful if you guide me how to overcome this problem.
Thank you very much.

BTW
The SSH bans in the log are not due to my activity.


2021-08-02 15:52:20 v-delete-firewall-ban ‘209.152.96.166’ ‘MAIL’
2021-08-02 15:54:45 v-add-firewall-chain ‘MAIL’
2021-08-02 15:54:45 v-add-firewall-ban ‘209.152.96.166’ ‘MAIL’
2021-08-02 16:00:50 v-add-firewall-chain ‘MAIL’
2021-08-02 16:00:50 v-add-firewall-ban ‘94.229.75.14’ ‘MAIL’
2021-08-02 16:03:21 v-add-firewall-chain ‘SSH’
2021-08-02 16:03:21 v-add-firewall-ban ‘104.244.77.4’ ‘SSH’
2021-08-02 16:04:45 v-delete-firewall-ban ‘209.152.96.166’ ‘MAIL’
2021-08-02 16:04:51 v-add-firewall-chain ‘MAIL’
2021-08-02 16:04:51 v-add-firewall-ban ‘5.150.254.184’ ‘MAIL’
2021-08-02 16:07:54 v-add-firewall-chain ‘SSH’
2021-08-02 16:07:54 v-add-firewall-ban ‘61.177.173.28’ ‘SSH’
2021-08-02 16:10:52 v-delete-firewall-ban ‘94.229.75.14’ ‘MAIL’

Check /var/log/exim4/mainlog (or /var/log/exim/mainlog )

Thank you eris. Very good resource.

However, it is clear that hestia firewall blocked my IP.
For example in the system.log:
2021-08-02 16:00:50 v-add-firewall-chain ‘MAIL’
2021-08-02 16:00:50 v-add-firewall-ban ‘94.229.75.14’ ‘MAIL’

and after 10 minutes deleted the firewall ban:
2021-08-02 16:10:52 v-delete-firewall-ban ‘94.229.75.14’ ‘MAIL’

The question is how to “convince” hestia not to do it.
Thank you very much.

You can whitelist your ip in fail2ban conf. You probably have a wrong username and password setup on one of your client. Better fix the issue instead of bypass your ip.

1 Like

Thank you schiwe. Well done :innocent:
Indeed, , there was a username / password error in one of the accounts.
Thanks

You’re welcome. Fail2ban is a very powerful tool … Learn the basic and you’ll be fine.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.