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. Thu Apr 18, 2024 02:51
SMSTools3 Community » Sample scripts / setups Bottom

email2sms-ucs: international version of email2sms

Login and Post Reply

Page:  Previous  1  2

Author Post
Member
Registered:
May 2010
Location: Russian Federation
Topic owner
jens wrote
My mail client was sending mails using "html" format.

usually mail client include both html and plaintext into separate mime parts, this situation must be handled properly.

but if your mail contain only html part - it will not work, sorry.

Member
Registered:
Aug 2012
Location: Austria
Hello Edo,

I already solved the problem, it was because i diddn't use "plain text" mail.
Like you already told, html only will not work.

Jens

Member
Registered:
Mar 2013
Location: Belgium
I'm having some issues getting email2sms to work on an Ubuntu 12.04 with Postfix.
This system will have to do one thing. Accept mails in the format <number>@some.domain and push them out as SMS-messages.

I looked at exim as the threadstarted stated, but I can only find exim4 as package and I have no clue where to put the config directive.

As for postfix, from what I figure it's not pushing the emails in the pl script. When I manually run the script there are no errors.
Mails are fed into the system via Exchange2010 with a transport rule that's relaying all mail send to "sms.local" to the IP of the SMS gateway. Any help would be greatly appriciated.




main.cf


master.cf


Member
Registered:
Mar 2013
Location: Belgium
Ok, I made some progress.

I added "sms.local" to the mydestination line in the main.cf but now I'm getting


What's the last piece I'm missing? :-)

Member
Registered:
May 2010
Location: Russian Federation
Topic owner
Hmm.... It seems like MIME::Parser module is installed, but does not work as expected.

In Debian this module is located in libmime-tools-perl package (I think Ubuntu uses same package name).
Do you have libmime-tools-perl package installed? What version?

Member
Registered:
Mar 2013
Location: Belgium
First I installed MIME::Parser via CPAN, after your post I tried to use the ubuntu/debian package but the issue remains thesame :-/

Running libmime-tools-perl 5.502-1

I found something else. The user HAS to exist in the /etc/aliases of postfix, otherwile postfix will fail with a "Recipient address rejected: User unknown in local recipient table" error.

/etc/aliases
324xxxxxxx2: 324xxxxxxx2



/etc/aliases
324xxxxxxx2: user



Again, I would be perfectly happy if you can tell me how to setup exim4. I really don't care all that much about the mailserver :) It just has to accept mail for EVERY address (phonenumber) and push it out to smstools.

Member
Registered:
Mar 2013
Location: Belgium
Just another update (I can't edit messages after a certain period of time).

I ditched postfix. It's an anoying little **** :-)

Using exim now with a config i copied from somewhere on the web.

when I run: "email2sms-ucs -n 324xxxxxxxx2 < /usr/local/bin/testmail" from the console I get the sms. I tried running this as the exim user and it works.

However, when I email. I can see that exim is pushing the mail towards the script. But it dies with some obscure error.



What am I doing wrong here?

exim config:


Member
Registered:
May 2010
Location: Russian Federation
Topic owner
exim runs script from unprivileged user. Does this user has rights to write to the smsd spooling directory?

I suggest "addgroup Debian-exim smsd" as a solution.

Member
Registered:
Mar 2013
Location: Belgium
Hi edo. Thanks for getting back to me.

I tried running the script as the Debian-exim user and then it runs. Only when the script is executed via mail the error occurs.

Member
Registered:
Mar 2015
Location: Czech Republic
Script works well, thanks. I need subject in sms as well, script use only body from email. Can somebody help me change script please?

Login and Post Reply

Page:  Previous  1  2

SMSTools3 Community » Sample scripts / setups Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.