SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Tue Jun 25, 2024 15:31
SMSTools3 Community » Help and support Bottom

[answered] Help to get sms2email and email2sms working

  This topic is locked

Page:  1

Author Post
Member
Registered:
May 2009
Location: Hinnerup, Denmark
Hello

Im having some truble to get these features working, can someone please tell me how to use the script, and how to configure it?
I dont know how to use the example scripts.
My sms server i working just fine, and my messages is stored directly in my SQL database.

Thans a lot

Regards
Morten

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
As you already have eventhandler up and running, just insert the following commands to it:

if [ "$1" = "RECEIVED" ]; then
  /usr/sbin/sendmail username@localhost <$2
fi
'bash' Syntax Highlight powered by GeSHi


or:

if [ "$1" = "RECEIVED" ]; then
  receiver=`cat $2 | grep '^.*@.*' | sed -n 1p | cut -f1 -d' '`
  if [ $receiver ]; then
    /usr/sbin/sendmail $receiver < $2
  fi
fi
'bash' Syntax Highlight powered by GeSHi


First sample sends all received messages to the fixed email address. Second one gets recipients address from the SMS where it must be the first word. Both samples assume that you have working sendmail available.

Way to produce email2sms highly depends on your system and needs. For example existing spamfilter script can be used, new forwarder script can be created, user account can be created like sms @ domain.com, existing user account can be used etc...

What kind of system do you have and what mailer daemon agent is in use, and how do you like emails being forwarded?

Member
Registered:
May 2009
Location: Hinnerup, Denmark
Topic owner
Hello Keke

Thanks 4 your help

My plan is to get email2sms working by sending an email to sms@domain.dk, and my MTA is Kerio Mailserver, and I have no problem with mails being forwarded.

keke wrote
Way to produce email2sms highly depends on your system and needs. For example existing spamfilter script can be used, new forwarder script can be created, user account can be created like sms @ domain.com, existing user account can be used etc...

What kind of system do you have and what mailer daemon agent is in use, and how do you like emails being forwarded?


  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.