On Mon, May 17, 2021 at 05:57:35PM -0400, Wietse Venema wrote: > Comment out the service in master.cf that listens on port 25. > > Command: postconf -# -M smtp/inet > > Result: # smtp inet n ... ... ... ... smtpd
A fancier, but more easily programmatically reversed method is: main.cf: master_service_disable = smtp/inet Note that this would have match the master.cf entry name *exactly*, it would not disable "127.0.0.1 inet ... smtpd" or similar. -- Viktor.