- Install Exim4
- Choose many config files configuration
- Copy transport and router into Exim4 conf.d directory
- Edit etc/exim4/conf.d/transport/01-sms_pipe to apply your sms gate settings
- Update Exim4 configs
sudo update-exim4.conf
- Restart Exim4
sudo service exim4 restart
echo "" | mail -s 'MESSAGE' PHONE@sms # MESSAGE - sms message text # PHONE - phone number # Example: echo "" | mail -s 'Raid alert' 71234567890@sms