I only use my LAMP based setup to send outbound mail and have another mail server to handle inbound mail.
I wanted to understand (for security reasons) how I could disable sendmail listening on port 25.
I’m running the LAMP image: Ubuntu Sendmail 8.14
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.