On Thu, Dec 15, 2022 at 11:08:24PM +0530, Dhanushka Parakrama wrote: > 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 ?
Postfix has no way to know whether a TCP connection is from a browser or not until after the first "command" arrives. It politely declines service to HTTP commands by returning an SMTP error and immediately hanging up. That's all that's all that's possible. What the browser does with the response is its problem. If you browsers to not display error pages after seeing a 220 SMTP banner, nag the browser developers. -- VIktor.