I want to be able to send email from a bash script. I currently have a server running postfix that I use from my php server to send emails. I now want to be able to run a bash script from a third server and use the mail server to send the email as I don't want to have to have multiple servers that can send email.
Looking at this question, it appears I need to either install Python (this is a bare bones linux server without much installed) or use postfix in relay-only mode but I'm not sure what that means. Do I have to install postfix on this server and use it as a passthrough to my mail server? Are there other options for sending email to an external server from bash?