[qmailtoaster] Qmail to SMS

2010-10-05 Thread Amit Dalia
Hi Everyone,

I want to generate sms for email received for certain users. Had
anyone tried the same. Basically want to generate SMS with following
details:
1) From Id
2) Subject

Thanks and regards,

Amit



Re: [qmailtoaster] Qmail to SMS

2010-10-05 Thread Peter Büttner
Am Di, 5.10.2010, 13:48 schrieb Amit Dalia:
 Hi Everyone,

 I want to generate sms for email received for certain users. Had
 anyone tried the same. Basically want to generate SMS with following
 details:
 1) From Id
 2) Subject

 Thanks and regards,

 Amit


Hi Amit,

nowadays every telephone company offers email push service via sms.
So forward the mails for your special users to handynum...@telefoncompany.com
and ask your users to enable the push service in their account.
They will get the whole mail via sms.

Regards

Peter

-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
  If you need professional help with your setup, contact them today!
-
 Please visit qmailtoaster.com for the latest news, updates, and packages.
 
  To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
 For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com




Re: [qmailtoaster] Qmail to SMS

2010-10-05 Thread Rob



I want to generate sms for email received for certain users. Had
anyone tried the same. Basically want to generate SMS with following
details:
1) From Id
2) Subject


Install procmail and formail (if they are not there already) and filter  
incoming messages to inject a new message to the users  
phonenum...@sms-messaging-address (available from their carrier) that just  
has the Subject line. An example .procmailrc in the user's directory would  
be:


# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=/path-to/vpopmail/domains/DOMAIN/USER/Maildir
DEFAULT=/path-to/vpopmail/domains/DOMAIN/USER/Maildir/new
LOGFILE=/path-to/vpopmail/domains/DOMAIN/USER/procmail.log
SHELL=/bin/sh
VERBOSE=yes
SUBJ=`/usr/bin/formail -c -xSubject:`

:0
* $ ^to_u...@domain
{
 :0
  | /usr/bin/formail -X  \
  -AX-Loop: u...@domain \
  -ISubject: ${SUBJ} \
  -iContent-Type: \
  -iContent-Length: \
  -IFrom: User's Name u...@domain \
  -ITo: phonenum...@sms-messaging-address \
  -IReturn-Receipt-To: \
  | /path-to/qmail-inject
}

Procmail will take some tweaking for your environment and testing but I  
thought I would send this since I have done essentially the same thing ...  
good luck.


PS I just realized I did not add the From: line but you can parse that  
using formail just as I did with the Subject line and add that to the  
outgoing message somewhere.


--
Rob Ayer
phone: 360-531-1823
gtalk: robayer
skype: robayer

-
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
 If you need professional help with your setup, contact them today!
-
Please visit qmailtoaster.com for the latest news, updates, and packages.

 To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com

For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com