Author |
Post |
|
#26 Tue Aug 07, 2012 12:56, 150 months ago.
|
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.
|
|
#27 Thu Aug 09, 2012 08:46, 150 months ago.
|
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
|
|
#28 Mon Mar 11, 2013 14:04, 143 months ago.
|
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
|
|
#29 Mon Mar 11, 2013 15:25, 143 months ago.
|
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? :-)
|
|
#30 Mon Mar 11, 2013 16:56, 143 months ago.
|
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?
|
|
#31 Tue Mar 12, 2013 09:02, 143 months ago.
|
Member
Registered: Mar 2013
Location: Belgium
|
First I installed MIME: arser 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.
|
|
#32 Tue Mar 12, 2013 17:11, 143 months ago.
|
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:
|
|
#33 Sat Mar 16, 2013 01:54, 143 months ago.
|
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.
|
|
#34 Mon Mar 18, 2013 08:06, 143 months ago.
|
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.
|
|
#35 Wed Mar 04, 2015 09:38, 119 months ago.
|
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?
|