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:

  1. Copy the script into /usr/local/sbin/sms-transport.
  2. Create the user "sms" with their own group "sms", eg:
            useradd -r sms -c "SMS Delivery User for Postfix"
    
  3. 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.
  4. Add "sms" to mynetworks parameter in main.cf, eg: mydestination = $myhostname, localhost.$mydomain, sms
  5. Run "postfix reload".
  6. Send mail to number@sms.localhost
  7. Create alias entries mapping usernames to numbers /etc/postfix/aliases freddy: 0412555555@sms.localhost
  8. Run "newaliases".
  9. Send mail to freddy.
This has been tested under Linux, Solaris and MacOSX.

Comments, submissions welcome: jlaidman+sms-transport@rebel-it.com.au