Deny all access to SMTP/POP3 and enable only for specific IP
Hello everyone,
I want to Deny all access to SMTP/POP3 and enable only for specific IP address.
so everyone will not be able to connect
MYSERVERIP@ port 25 or 465 or 110 or 993
but i will enable 1 IP to connect to them
so allow ip EXTERNALIP to connect to MYSERVERIP
-
You could also use Host Access Control to do this as well - you can control SMTP, POP3 and IMAP access using this feature. More information can be found in our documentation here: Host Access Control - Version 72 Documentation - cPanel Documentation Thanks! 0 -
I've tried this., and I'm pretty sure that you can't block port 25. By doing so you'll also block other email servers from connecting, resulting in you receiveing no emails at all. Unfortunately, anyone can still then connect to smtp using port 25. For starters, I would suggest to toy with HostAccessControl. In HAC, add POP3 .................... Your IP .......................... Allow IMAP ..................... Your IP .......................... Allow then POP3 .................... All .......................... Deny IMAP ..................... All .......................... Deny Could you use the same rule for SMTP or would this cause problems with other email servers ??? 0
Please sign in to leave a comment.
Comments
3 comments