I have a Ubuntu 12.04 configured as Gateway and OpenVpn server. I have made a script that changes the VPN destination based on destination reach-ability. Now I want a simple command included on the script that send a notification on my email address on a local server every time a change was made. ex..
/bin/mail -s 'VPN on internet' [email protected]
I saw on the forums that i can use postfix
or exim4
but I don't want to install big software on this machine because this role as GW shouldn't fail.
I know that are scripts on php that send mails but I don't wont to include php neither. I'm interested on a solution the way that php works but as bash script :)