I would like to be able to send emails in command line and in bash scripts (e.g., to get notifications about running simulations on my computer). There are apparently different options to do that, but all seem to rely on postfix. However, as far as I understand it, postfix is a full email client to send and receive emails. In my case, I am just interested in sending emails.
I am particularly worrying about security issues and I don't want to open any doors on my system by installing one of these programs.
Any advice on how to configure postfix to only allow outgoing emails and to block anything else to avoid any threats? Or any other ideas to send emails securely?
Many thanks for your help!
PS: Running Ubuntu 14.04.01 LTS.