text to phone, from mail

Hi,

This will be my first post here, looks to be a nice community. Is there a script or program which will send a text to a phone when email arrives? I looked through the preferences in evolution but found nothing.

I am using opensuse 12.1 64bit
gnome 3.2.1
evolution 3.2.3
on a hp xw6200 workstation

I am using evolution but I suspect that it might be easier to do it at a lower level. maybe the mailer daemon? It seems to me that it would be easy for someone to script and that someone must have thought of it before. Personally I have tried scripting and am not very good at it… but am willing to try.

I am thinking that, for instance, one could have the email agent/daemon/system send a email/text to an address on receipt of a email. In my case I am using verizon, so that the emailer could send a email to “my_phone_number@vtext.com”.

Thanks,

a5’

On 2012-06-03 19:36, a59303 wrote:
> I am thinking that, for instance, one could have the email
> agent/daemon/system send a email/text to an address on receipt of a
> email. In my case I am using verizon, so that the emailer could send a
> email to “my_phone_number@vtext.com”.

procmail


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Thank You, Carlos

for the answer, and lead. To more information.

a5’

On 2012-06-03 20:26, a59303 wrote:
>
> Thank You, Carlos
>
> for the answer, and lead. To more information.

For more info, man procmailex has examples of what you want.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Hey, thanks a bunch!

a5’

procmail may be what I am looking for but I found some other stuff close to what I was imagining.

https://mail.gnome.org/archives/evolution-hackers/2005-April/msg00044.html

Mail Notification

https://launchpad.net/popper

Although I have not seen a solid connection to SMS yet, as I have a simple phone, not a smart phone, so; No advanced features really.

a5’

There’s “smssend”, I used that years ago (at least 6 or 7). It’s still available. IIRC it uses small scripts to connect to free internet SMS providers. Some of them require login, some of them don’t. Basically you need to know which arguments you have to provide to such an SMS provider.

Another option is to have copies of your email sent to some mailprovider that does free SMS notices.

On 2012-06-03 23:16, a59303 wrote:
>
> procmail may be what I am looking for but I found some other stuff close
> to what I was imagining.
>
> http://tinyurl.com/76pegbv
>
> ‘Mail Notification’ (http://www.nongnu.org/mailnotify/)
>
> https://launchpad.net/popper

I’m not familiar with any of them. I do know that procmail does what you
asked - not send sms, because you said you just needed to send an email to
the phone. But you can trigger any program.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Knurpht,

I misspoke.
I was intending to send a email that would be recieved as a text.
There is other stuff there a FSF that looks like it might be good for this. Thanks! I was intending to use the established system that verizon has in place (phone_number@vtext). They just have you email that number and it sends a text.

Carlos,

I understand, I misspoke. That is right, I wanted to trigger mail, or some sort of mailer. I thought though that before I try to learn procmail (it looks fairly complex) I was looking for a more ready-made solution. It turns out that there is a plugin in evolution that allows you to configure to some extent the notification of receipt. But not any events (scripts).
Reading the pages related to procmail gave me a better idea of what I was looking for, and so, I found mail-notification… I think I’m going to try that.

Thanks,

a5’

Hi
I use postfix and just relay out via gmail, there is a little
configuration work with main.cf, sasl_passwd and master.cf.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 9:48, 5 users, load average: 0.10, 0.08, 0.06
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

Thanks for the input. Installing mail-notification didn’t work, so I may work on the procmail idea.

a5’

On 2012-06-04 13:16, a59303 wrote:
>
> Thanks for the input. Installing mail-notification didn’t work, so I
> may work on the procmail idea.

Procmail alone will not be enough, it assumes you have a “normal” mail
setup, where normal means “a la unix”. Ie, an MTA (postfix), MUA not
involved (evolution), a fetcher if it is a client installation (fetchmail)…

In that setup procmail is a “simple” method to classify incoming email.
Believe me, it is simple, but can be complicated ad infinitum. Incoming
mail is sent to different folders based on patterns, but instead of a
folder a filter program can be used… and that’s the case, you need
trigger a program. Or the email can be sent somewhere else.

If your desktop is running, filtering software would do. Perhaps
thunderbird can do it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

That is more or less what I was afraid of. I had not actually gotten to the point of filtering the mail, the idea was just to get an alert, starting small. So I think that procmail might be overkill at this point. Doesn’t evolution have similar things (facilities to receive,check,and send mail) built-in though, I mean, they are necessary functions for mail?

Also, it appears that procmail is already installed. I didn’t specify that at installation (embarrassed at wasting peoples time and not knowing what I am running). Although I do not have anything in /var/spool/mail nor do I have a $HOME/.procmailrc.

If your desktop is running, filtering software would do. Perhaps
thunderbird can do it.

I do and maybe it can…What I find confusing is that I seem to have two systems (at least) to check and send mail, not that its an issue or anything, but it leads me to wonder what, if anything, does that for evolution. That is fetch and send mail. I am going to continue to look at the evolution mailing lists, maybe I will find something there.

Thanks for all the help,

a5’

I checked yast>/etc/sysconfig >mail

Unless I am misunderstanding, I have postfix and sendmail running and configured.

less /etc/sysconfig/mail

yields:

## Path:        Network/Mail/General
## Description: Basic general MTA configuration
## Type:        yesno
## Default:     yes
## Config:      postfix,sendmail
#
# If you don't want to let SuSEconfig generate your
# configuration file, set this to no
#
MAIL_CREATE_CONFIG="yes"
## Path:                Network/Mail/General
## Description:
## Type:        string
## Default:     ""
## Config:      postfix
## ServiceReload:       sendmail,postfix
#
# From:-Line in email and News postings
# (otherwise the FQDN is used)
FROM_HEADER=""


## Type:        yesno
## Default:     no
## Config:      postfix
#
# Set this to "yes" if mail from remote should be accepted
# this is necessary for any mail server.
# If set to "no" or empty then only mail from localhost
# will be accepted.
#
SMTPD_LISTEN_REMOTE="no"


## Type:        yesno
## Default:     no
#
# Set this to "yes" if the yast2 mail module must not
# start with the wizard for asking the 
# configuration type of the mail server.
#
SKIP_ASK="no"


## Type:        string(standard,advanced,undef)
## Default:     undef
#
# This variable contains the type of the mail server configuration.
#
CONFIG_TYPE="standard"
/etc/sysconfig/mail lines 1-47/47 (END)

procmail -version

yields:

procmail v3.22 2001/09/10
    Copyright (c) 1990-2001, Stephen R. van den Berg    <srb@cuci.nl>
    Copyright (c) 1997-2001, Philip A. Guenther        <guenther@sendmail.com>


Submit questions/answers to the procmail-related mailinglist by sending to:
    <procmail-users@procmail.org>


And of course, subscription and information requests for this list to:
    <procmail-users-request@procmail.org>


Locking strategies:    dotlocking, fcntl()
Default rcfile:        $HOME/.procmailrc
Your system mailbox:    /var/spool/mail/*me*



On 2012-06-04 17:16, a59303 wrote:

> That is more or less what I was afraid of. I had not actually gotten
> to the point of filtering the mail, the idea was just to get an alert,
> starting small. So I think that procmail might be overkill at this
> point. Doesn’t evolution have similar things (facilities to
> receive,check,and send mail) built-in though, I mean, they are necessary
> functions for mail?

No idea.

> I checked yast>/etc/sysconfig >mail
>
> Unless I am misunderstanding, I have postfix and sendmail running and
> configured.

Of course you do. And procmail too. You have a Linux system, it comes with
it. :wink:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

he he
:slight_smile: that’s funny,

well,

thanks,

a5’

You can send an SMS to your phone using googlevoice.pl, which can be found here. You’ll still need to set something up to call that script when an email arrives.

You can send an SMS to your phone using googlevoice.pl, which can be found here. You’ll still need to set something up to call that script when an email arrives.

yeah, thats the kicker currently, but I will keep it in mind

thanks,
a5’

On Sun, 03 Jun 2012 23:56:03 +0000, a59303 wrote:

> Knurpht,
>
> I misspoke.
> I was intending to send a email that would be recieved as a text. There
> is other stuff there a FSF that looks like it might be good for this.
> Thanks! I was intending to use the established system that verizon has
> in place (phone_number@vtext). They just have you email that number and
> it sends a text.

Simple solution if the message is coming down to your system - create
a .forward file in the user’s home directory.

The contents of the .forward file are a list of e-mail addresses to
forward mail to.

This assumes that the mail is actually received on the machine that has
the .forward file set up, but assuming you have your mail server set up
correctly, that should take care of this for you.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hi
Perhaps explain a little more on what your wanting to send on what
event… for example a log file entry ‘blah’ could be monitored via sec
(simple event correlator) or an snmp alarm etc…

Just sending something is as simple as (assuming mail is configured
and working);


echo 'this is an event' | mailx -s 'sms alert' xxxxx@xxxxx


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop
up 1 day 3:46, 5 users, load average: 0.01, 0.02, 0.05
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU