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. Fri Nov 24, 2017 22:05
SMSTools3 Community » Sample scripts / setups Bottom

MailSMSGateway

Login and Post Reply

Page:  Previous  1  2  3  Next

Author Post
Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,
thank you for your info, I made a new package with version 1.14 (with unicode support)

Bye

Member
Registered:
Feb 2014
Location: St. Maria, Cape Verde
Sorry to intrude like this. I'm working with imap. The script ended with the error "Undefined subroutine &Authen::NTLM::ntlm called at ...IMAPCLient.pm line 3181. The module Authen::NTLM is installed. Neverthless adding the authenticate='PLAIN', in the MAIL::Box::IMAP4->new fixes it for me (and breaks for evereyone else I suppose) but adding the possibility to set the authentication through the cfg would be nice (AUTO can be the default ?)
What puzzles me more is the error I'm getting after downloading the message from the mail box (well not really it is a "delayed" message which apparently means that it is fetched at the time when it is accessed in the code ?) "Can't call method "string" on an undefined value at ...Delayed.pm line 89. Which really doesn't tell me anything :-(
I can see the g_msg object dumped to string and it seems ok to me. Any idea/hint where am I making a mistake ?
(I'm running on raspberry pi/raspbian)

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,
regarding the "authenticate" parameter I can implement a solution, but concerning the "delayed" message I have searched a while, but I fear you have to contact the owner of the module (mark overmeer).

Sorry!

Bye

Member
Registered:
Feb 2014
Location: St. Maria, Cape Verde
Thanks. I did search for the answer too but alas couldn't find any so I have changed my strategy. I use fetchmail to download the mails, a custom shell script to generate urls to call playsms with wget and send the messages out.

Member
Registered:
Jan 2014
Location: Russian Federation
hi, hstadler.
Is it possible to filter messages to send SMS messages only from approved senders list (text file with a list of senders)? And, for example, add the option "Only Me." Letters in which the recipient of a few individuals are discarded (messages containing spam).

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,

I understand what you mean by approved email senders (to allow only these senders to send an sms), but what do you mean with "Only Me" ? Can you give me an example.

Thanks!

Member
Registered:
Jan 2014
Location: Russian Federation
hi, hstadler.
Option "Only Me" emails must limit where the number of recipients of the message more than one.

Thanks =)

Member
Registered:
Apr 2014
Location: Asarum, Sweden
hi,
i have a problem when i enter several emailadresses in to field. then all users is getting double sms.

Member
Registered:
Oct 2012
Location: Austria
Topic owner
hi,

please set the config parameter:

# Level of logging (debug,info,warn,error,fatal)
LOGLEVEL=debug


and send the log output to my mailaddress (...gmx) defined in the config header lines.

bye

Member
Registered:
Apr 2014
Location: Zimbabwe
Hi,

I am getting the following error after it retrieves mail from the mbox mailbox:

ERROR: Flock of semaphore file "/var/lock/MailSmsGateway/MailSmsGateway.sem" not possible

I have also noticed that the ownership of the mailbox is changed from the user to root after MailSmsGateway accesses the mailbox.

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,

I think you are trying to start a second instance of MailSMSGateway, please check, there should be aready one running -> restart.

Member
Registered:
Sep 2014
Location: Russian Federation
hi, hstadler.
I get the following error when I try to run the MailSMSGateway
[root@mail MailSmsGateway]# /usr/local/bin/MailSmsGateway/MailSmsGateway
Can't locate Mail/Box/Manager.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/bin/MailSmsGateway/MailSmsGateway line 51.
BEGIN failed--compilation aborted at /usr/local/bin/MailSmsGateway/MailSmsGateway line 51.
Do not tell me what I'm doing wrong?

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,
have a look at "MailSmsGateway_1.15.pdf" on page 10 about "Perl modules" and install this module with

"cpan Mail::Box"

Member
Registered:
Nov 2014
Location: Lahti, Finland
Hi!

I'm using MailSmsGateway with a imap account, and every time I try to run the program i get the following error int the log file:
DEBUG: Mailbox imap4 - imap.gmail.com, smsoppari, INBOX not ready to open
ERROR: Mailbox imap4 - imap.gmail.com, smsoppari, INBOX not readable

I'm sorry for asking such a newbie question, but what could be the cause of this?

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,
I would suggest you try it first with a standard email client (microsoft outlook, thunderbird,...) if that works you go on with mailsmsgateway.

PS: in gmail you have to enable the "imap" functionality, but there are a lot of descriptions out there who describes how to make...

Member
Registered:
Nov 2014
Location: Lahti, Finland
Hi again!

I've had the imap enabled from gmail the whole time and the account works perfectly with thunderbird.
Also tried it with POP, same result.

I'm running out of options here :\

Member
Registered:
Nov 2014
Location: Lahti, Finland
Oh and I forgot to mention that I've also enabled less secure apps from google, so that shouldn't be a problem either....

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,

secure imap4 (imap4s) is not implemented at the moment but pop3s is. This should work, dont forget to enable this in gmail.

Hope this helps.

Bye

Member
Registered:
Nov 2014
Location: Lahti, Finland
This solved my problem, thank you Herbert, you are a treasure!

Member
Registered:
Nov 2014
Location: Lahti, Finland
Hi again!

I was wondering if it is possible to extract more than one number from the mailbody?
Would it be possible by altering the regex or would that require modification to the code?

Thanks for your patience!

Member
Registered:
Oct 2012
Location: Austria
Topic owner
You can have as much sms-numbers you like, the simplest solution is described on page 7.

one user mailbox like "sms" and you send a mail like:

"4399999887755<sms@domain.com>" or any other number, the receiver is always the user "sms".


In this case you have to configure:
“MAILBOX_SMSFIELD” with “displayname” (because we use the displayname and not the
username for the sms number).

Regex is only used to check the sender of the mail, to limit it to some senders. Normaly anybody could send a mail to this mailbox with the
right syntax and you would send a sms to the sms receiver.

PS:
What is a displayname / username ?
I think this example explains it.
mail -s "Test sms" "displayname<username@domain.com>" < /dev/null

Member
Registered:
Oct 2012
Location: Austria
Topic owner
there is also the possibility to get the sms number out of the mail body with option "frombody", but that should be the last option you should choose.


typical emailaddress "displayname<username@domain.com>"
which field contains the sms number ?

choose between "username|displayname|frombody"
new option (version 1.13): you can choose "frombody", in this case it is
possible to define a regex option where you can extract the sms number
from the mail body.

Member
Registered:
Nov 2014
Location: Lahti, Finland
So yes, I am using the option frombody to extract the sms number from the message. Here's what I'm trying to do: I have a network monitoring tool that allows automated emails to be sent to certain addresses when certain events occur. My plan is to make some of these automated messages to be sent as a text messages. Currently I'm going to include the actual text message in the subject of the email, and the number or numbers in the mailbody.

Here's an example:
to: smstoolsaccount@something.com
subject: Hi, your network is currently down.
mailbody: 0401234567 0402345678 0403456789.

I can get it to work with one number but not with several.

Member
Registered:
Oct 2012
Location: Austria
Topic owner
Hi,

at the moment not working with more than 1 number.

Alternative Solution: you send a mail with only one number (in your case you send the mail 3x with different numbers).

Member
Registered:
Oct 2015
Location: Austria
Thanks for this Tool !

I would rather the syntax "to : " just like to use " + ".

Ich würde anstatt der Syntax "to: " gerne "+" verwenden.

My Settings:


What I would have to change in: ??


Thanks for Help.

Login and Post Reply

Page:  Previous  1  2  3  Next

SMSTools3 Community » Sample scripts / setups Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.