I had today to turn off postfix. I needed to do that as I was using mail command (from bash scripts) to mail me when my scripts failed.
I would like thus to ask you how I should configure it in a way that it will destroy system security. What I need is just to be sending me mails and nothing else. In my firewall section only the ssh port seems to be open.
Should that be all?
generally if you meant that you don’t want to compromise the security and just send mail to local system users then default postfix configuration is ok. It is listening to localhost only and by default not open in firewall.
you can check what port is currently listening in main.cf (inet_interfaces) or by