now that is funny, I didn't know postfix replied to HTTP requests hahaha!
$ telnet mail.server 25 Trying 192.168.1.184... Connected to mail.server. Escape character is '^]'. 220-mail.server.erebor.lan ESMTP GET / HTTP/1.0 521 5.7.0 Error: I can break rules, too. Goodbye. Connection closed by foreign host. On Thu, 15 Dec 2022 23:08:24 +0530 Dhanushka Parakrama <parakrama1...@gmail.com> wrote: > Hi Team > > I have postfix server which runs in usual port 25 . apart from that we have > configured that postfix instance to run on port 2587 as well . > > So the issue is when i access the URL as below > > *http://mailserver.example.com:2587 <http://mailserver.example.com:2587>* > > > i get the following error in the browser page ( Only work in Firefox > browser ) > > output > ===== > > 220 mailserver.example.com (Debian) > 221 2.7.0 Error: I can break rules, too. Goodbye. > > > So i wanted to block browser based access to the mail server or stop > displaying the error message , So is there any way to do that ? > > > Thank You