Home
Documents

qmail-sms    forward email to SMS using Qmail

Installation

source: http://riemann.fmi.uni-sofia.bg/programs/qmail-sms-0.1.tar.gz

You need working library dietlibc and libowfat - see http://www.fefe.de/
unpack and install with:

   tar -xvzf qmail-sms-0.1.tar.gz
   cd qmail-sms-0.1
   make
   cp qmail-sms /var/qmail/bin

Usage

In files dot-qmail add one of the lines:
   |qmail-sms 160 5 user-smsblock@host.net 49216194123@sms.host.net
   |qmail-sms 160 5 '' 49216194123@sms.host.net
  • user-smsblock@host.net is a return address (like Return-Path:). You can set it to '' to block receiving bounces from the GSM gateway. A better solutions is:
       echo '|exit 0' > ~/.qmail-smsblock
       chmod 600 ~/.qmail-smsblock
    

  • 49216194123@sms.host.net is the SMS gateway. Simply put your GSM number and see the hostname on the WWW page on your operator.

    You will receive at most 5 SMS per incoming e-mail. The max lenght is 160 bytes.

    Command line usage

       qmail-sms size parts sender recp1 [resp2 recp3 ...] [-n] < file
    
    with [-n] qmail-sms write the result to stdin and the envelope to stdout. It does not invoke qmail-queue. It is possible to use more recipients also i dot-qmail files.

    SEE man dot-qmail

    Enjoy, Nikola