Hello. I want to disable admin panel: (box.mydomain.com/admin) and webmail: (box.mydomain.com/mail/) for security reasons since I just need use email services trough IMAP and SMTP. I have tried block port 80 and 443 with ufw and I can disable the admin panel and webmail but now I can’t receive emails. I can send emails but can’t receive. When I reset the ufw the problem is solved and I can receive emails so I think that the problem is related to block the port 80 and 443 but I can’t understand why since I have all others ports needed allowed and I can send emails correctly. I have been looking for information in this forum and github but I can’t find an answer that can help me to solve this problem so Im asking for help in this post.
How I can block the admin panel and webmail service in my mailinabox server? As I said I just want use IMAP and SMTP and I don’t want expose my webmail and admin panel publicy on internet for anyone.
Thanks in advance for the help.