SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Thu Nov 21, 2024 22:19
SMSTools3 Community » Help and support Bottom

email2sms postfix and smstools

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Mar 2013
Location: United Kingdom
Operating system name and version: Ubuntu Server 12.04
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem / phone: Huawei
Interface: serial / USB / some adapter... USB

I have setup my webserver, with multiple domains and email and web pages all working fine.
installed sms server tools, and can send sms no problem.

I have configue my email and domains so that *@sms.example.com all gets sent to smsd@example.com (* could be any mobile number)

this is all working correctly.

my problem is, i can not get the emails for smsd@example.com to be sent out as sms message. the message has number@sms.example.com so need to fetch that and then the body of the email for the actual sms message.

lots of help, assistace and guidance would be greatly apprecaited by this novice.

Member
Registered:
Mar 2013
Location: Germany
Hi,

there are several ways to accomplish this.
At least you have to parse the mail for the necessary content, usually the original-to and the body (maybe the subject as well).
you have to extract these information from the mail (i did it by using formail and a modified version of "email2sms" delivered by smsservertools) and put it into the outgoing-folder.

regards,
astrakid

Member
Registered:
Mar 2010
Location: Helsinki, Finland
You have two ways:

1.
aliases:

/etc/aliases:
smsd: | /usr/share/smstools/scripts/email2sms

What that will do it will pipe all incoming mail for smsd user to email2sms script.

2.
Use procmail delivery the email to the user,
add this to smsd users .procmailrc:

# cat .procmailrc
VERBOSE=off
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
LOGFILE=$HOME/procmail/log

:0
*
| /usr/share/smstools/scripts/email2sms


That will essentially do the same, but with logging if something goes b0rk.
I have set up the same thing, the script will pick the destination from To: field,
ie. To: 358407007600@foobar.com and use that as Destination number.

ps. email2sms script file has few examples, including procmail one that I mentioned.


« Last edit by Sallinen on Thu Apr 11, 2013 19:14, 141 months ago. »

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.