sms-transport - SMTP (Email) to Pager (SMS) Gateway
sms-transport is an SMTP to gnokii gateway. It's copyright under the
GNU General Public License.
Download/view it here (v0.1) or changelog.
To install and use:
- Copy the script into /usr/local/sbin/sms-transport.
- Create the user "sms" with their own group "sms", eg:
useradd -r sms -c "SMS Delivery User for Postfix"
- Add these lines to the respective files:
/etc/postfix/transport:
sms sms:localhost
/etc/postfix/master.cf
sms unix - n n - 1 pipe
flags= user=sms:uucp argv=/usr/local/sbin/sms-transport $sender $user
Note that the group "uucp" needs to match the group that owns
the serial device configured by /etc/gnokii.conf, eg /dev/ttyS0.
- Add "sms" to mynetworks parameter in main.cf, eg:
mydestination = $myhostname, localhost.$mydomain, sms
- Run "postfix reload".
- Send mail to number@sms.localhost
- Create alias entries mapping usernames to numbers
/etc/postfix/aliases
freddy: 0412555555@sms.localhost
- Run "newaliases".
- Send mail to freddy.
This has been tested under Linux, Solaris and MacOSX.
Comments, submissions welcome: jeremy+sms-transport@laidman.org