Re: Postfix -> Whatapp

2020-06-08 Thread yuv
You may be interested in this WhatsApp interface:

https://developer.nexmo.com/messages/concepts/whatsapp 

can probably write a glue-script to access it, however it seems to only
be open to "businesses that have been approved by WhatsApp."

Why don't you simply skip WhatsApp which anyway requires a phone
message, and send an SMS to the phone directly?

https://developer.nexmo.com/messaging/sms/overview

is easier and reaches a wider audience.  WhatsApp is just a
proprietary, exclusionary tool that serve the spyware economy, not the
users.  I personally do not need this FB subsidiary sucking the blood
out of my digital life.
--
Yuval Levy, JD, MBA, CFA
Ontario-licensed lawyer




Re: Postfix -> Whatapp

2020-06-08 Thread Jos Chrispijn

On 29-5-20 13:03, Laura Smith wrote:


I would suggest you look at Doveot and its global IMAP Seive functionality.  
You can pipe stuff into shell scripts and hence do whatever you wish.



Thanks, will check that too. Thanks for your support!

Best, Jos


-- With both feet on the ground you can't make any step forward


Re: Postfix -> Whatapp

2020-06-08 Thread Jos Chrispijn

Hi,

On 27-5-20 17:49, @lbutlr wrote:

On 26 May 2020, at 13:24, J Doe  wrote:

You may want to investigate doing this at the MDA.  If you run Dovecot in 
conjunction with Postfix, you could write a Sieve script that calls a shell 
script that then sends the notification to whatever third-party service you 
would like.


I used to do this with procmail to send notifications on important mails via an 
SMS gateway. For a time I was also able to post alerts to a private twitter 
account. That no longer seems to work (but I also haven’t investigated why or 
if I can fix it as the need passed).

But it *is* outside the scope of postfix-users.


thanks, will dive into that as well.
Best, Jos


-- With both feet on the ground you can't make any step forward


Re: Postfix -> Whatapp

2020-05-29 Thread Laura Smith
On Tuesday, 26 May 2020 18:42, Jos Chrispijn  wrote:

> Is there a way of Postfix sending a Whatsapp message to a user when there 
> came in email for her/him?
>
> Thanks, Jos
>
> -- With both feet on the ground you can't make any step forward

Jos,

I'm a bit late to this discussion (and I have not read all replies, so 
apologies if someone has already mentioned my suggestion).

I would suggest you look at Doveot and its global IMAP Seive functionality.  
You can pipe stuff into shell scripts and hence do whatever you wish.


Re: Postfix -> Whatapp

2020-05-27 Thread @lbutlr
On 26 May 2020, at 13:24, J Doe  wrote:
> You may want to investigate doing this at the MDA.  If you run Dovecot in 
> conjunction with Postfix, you could write a Sieve script that calls a shell 
> script that then sends the notification to whatever third-party service you 
> would like.

I used to do this with procmail to send notifications on important mails via an 
SMS gateway. For a time I was also able to post alerts to a private twitter 
account. That no longer seems to work (but I also haven’t investigated why or 
if I can fix it as the need passed).

But it *is* outside the scope of postfix-users.



-- 
The hippo of recollection stirred in the muddy waters of the mind.




Re: Postfix -> Whatapp

2020-05-26 Thread Jos Chrispijn

On 26-5-20 21:59, Wietse Venema wrote:


Sure. Use recipient_bcc_maps to add an extra recipient to their
email messages.That extra recipient goes through transport_maps to a
pipe daemon that invokes a command that sends a whatsapp message.


Great suggestion, thanks for that!
Best, Jos

-- With both feet on the ground you can't make any step forward


Re: Postfix -> Whatapp

2020-05-26 Thread Jaroslaw Rafa
Dnia 26.05.2020 o godz. 13:06:54 Bill Gee pisze:
> Almost completely irrelevant, but still an interesting (and true!) story
> ...  About 30 years ago I started a job at an insurance company.  At that
> time less than half the company had PCs.  Most had 3270 green screen
> terminals.  The corporate email was SYSM running on a System 370
> mainframe.  Someone had cleverly arranged things so that whenever you got
> an email, it would send you a voice mail.
> 
> Fast-forward 25 years:  After several acquisitions and many changes of
> email, the company is now running on Exchange.  Someone very clever rigged
> up a system so that whenever you got a voice mail, it sent you an email.
> 
> How things go around!

Well, that reminds me of a thought that came to me a few years ago when I
looked at my desk. There is a computer, a telephone and some "box" to which
these two are connected. About 20 years ago there was also a computer, a
telephone, and some "box" to which these two were connected.

But that "box" 20 years ago was a dial-up modem. My computer was accessing
the Internet via that modem, connected to a telephone line.

Now I don't have a telephone line anymore. An Ethernet cable is coming out
of my wall, connected to my home router which has an integrated VoIP
gateway. A telephone is connected to the router, and I make phone calls over
the Internet... :)
-- 
Regards,
   Jaroslaw Rafa
   r...@rafa.eu.org
--
"In a million years, when kids go to school, they're gonna know: once there
was a Hushpuppy, and she lived with her daddy in the Bathtub."


Re: Postfix -> Whatapp

2020-05-26 Thread Jos Chrispijn

On 26-5-20 21:24, J Doe wrote:

You may want to investigate doing this at the MDA.  If you run Dovecot 
in conjunction with Postfix, you could write a Sieve script that calls a 
shell script that then sends the notification to whatever third-party 
service you would like.


As a side-note - there actually is a Sieve RFC that covers notifications 
via XMPP / Jabber, but that isn't available in Dovecot at the moment.


Thanks, I will check this solution is also workable for me.
Best, Jos


-- With both feet on the ground you can't make any step forward


Re: Postfix -> Whatapp

2020-05-26 Thread Jos Chrispijn

On 26-5-20 21:18, vi...@vheuser.com wrote:


I hate to see folks on a user list throw down at a question.
More helpful than "No way, utterly" is "Here's how to".


Thanks. I just asked if this is possible. Sorry if I offended someone.


The question was how to initiate a script upon receipt of an email.
Here's a suggestion:
https://unix.stackexchange.com/questions/178396/run-script-on-receipt-of-email


Thanks for your suggestion, will follow up that one.
Jos

-- With both feet on the ground you can't make any step forward


Re: Postfix -> Whatapp

2020-05-26 Thread Wietse Venema
Jos Chrispijn:
> Is there a way of Postfix sending a Whatsapp message to a user when 
> there came in email for her/him?

Sure. Use recipient_bcc_maps to add an extra recipient to their
email messages.That extra recipient goes through transport_maps to a
pipe daemon that invokes a command that sends a whatsapp message.

Wietse


Re: Postfix -> Whatapp

2020-05-26 Thread Phil Stracchino
On 2020-05-26 15:18, vi...@vheuser.com wrote:
> More helpful than "No way, utterly" is "Here's how to".
> The question was how to initiate a script upon receipt of an email.
> Here's a suggestion:
> https://unix.stackexchange.com/questions/178396/run-script-on-receipt-of-email

I note that the stackexchange link talks about doing this at the
client/mailbox level, which is completely valid.  Getting WhatsApp
notification BUILT INTO a client is unlikely, but there might be
plugins, and there's certainly ways to script it externally.

Nevertheless, I reiterate that it is not any mail *transfer* agent's
job.  Certainly the goal of notification-on-email-receipt can be done.
That's not even in question.  But Postfix is not the place to do it.


-- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


Re: Postfix -> Whatapp

2020-05-26 Thread J Doe

On 2020-05-26 1:52 p.m., Phil Stracchino wrote:

On 2020-05-26 13:42, Jos Chrispijn wrote:

Is there a way of Postfix sending a Whatsapp message to a user when
there came in email for her/him?

Thanks, Jos

No.  That is utterly and totally not Postfix's, or any MTA's, job.  Period.

If you wanted to get a WhatsApp notification when you receive new mail,
you'd need to find a mail *client* that has some kind of WhatsApp
notification plugin.  (Good luck with that.)


Hi Jos,

You may want to investigate doing this at the MDA.  If you run Dovecot 
in conjunction with Postfix, you could write a Sieve script that calls a 
shell script that then sends the notification to whatever third-party 
service you would like.


As a side-note - there actually is a Sieve RFC that covers notifications 
via XMPP / Jabber, but that isn't available in Dovecot at the moment.


- J



Re: Postfix -> Whatapp

2020-05-26 Thread vi...@vheuser.com

On 2020/05/26 14:06 PM, Bill Gee wrote:


Almost completely irrelevant, but still an interesting (and true!) story ... About 30 
years ago I started a job at an insurance company. At that time less than half the 
company had PCs. Most had 3270 green screen terminals. The corporate email was SYSM 
running on a System 370 mainframe. Someone had cleverly arranged things so that whenever 
you got an email, it would send you a voice mail.


Fast-forward 25 years: After several acquisitions and many changes of email, the company 
is now running on Exchange. Someone very clever rigged up a system so that whenever you 
got a voice mail, it sent you an email.


How things go around! --

Bill Gee

On Tuesday, May 26, 2020 12:52:13 PM CDT Phil Stracchino wrote:

> On 2020-05-26 13:42, Jos Chrispijn wrote:

> > Is there a way of Postfix sending a Whatsapp message to a user when

> > there came in email for her/him?

> >

> > Thanks, Jos

>

> No. That is utterly and totally not Postfix's, or any MTA's, job. Period.

>

> If you wanted to get a WhatsApp notification when you receive new mail,

> you'd need to find a mail *client* that has some kind of WhatsApp

> notification plugin. (Good luck with that.)

>

>

>


Good story, Bill.  Did some of that on a DEC10 myself.
 Too bad not everyone shares your conviviality.
I hate to see folks on a user list throw down at a question.
More helpful than "No way, utterly" is "Here's how to".
The question was how to initiate a script upon receipt of an email.
Here's a suggestion:
https://unix.stackexchange.com/questions/178396/run-script-on-receipt-of-email











Re: Postfix -> Whatapp

2020-05-26 Thread Bill Gee
Almost completely irrelevant, but still an interesting (and true!) story ...  
About 30 years ago I started a job at an insurance company.  At that time less 
than half the company had PCs.  Most had 3270 green screen terminals.  The 
corporate email was SYSM running on a System 370 mainframe.  Someone had 
cleverly arranged things so that whenever you got an email, it would send you a 
voice mail.

Fast-forward 25 years:  After several acquisitions and many changes of email, 
the company is now running on Exchange.  Someone very clever rigged up a system 
so that whenever you got a voice mail, it sent you an email.

How things go around!

-- 
Bill Gee



On Tuesday, May 26, 2020 12:52:13 PM CDT Phil Stracchino wrote:
> On 2020-05-26 13:42, Jos Chrispijn wrote:
> > Is there a way of Postfix sending a Whatsapp message to a user when
> > there came in email for her/him?
> > 
> > Thanks, Jos
> 
> No.  That is utterly and totally not Postfix's, or any MTA's, job.  Period.
> 
> If you wanted to get a WhatsApp notification when you receive new mail,
> you'd need to find a mail *client* that has some kind of WhatsApp
> notification plugin.  (Good luck with that.)
> 
> 
> 



Re: Postfix -> Whatapp

2020-05-26 Thread Phil Stracchino
On 2020-05-26 13:42, Jos Chrispijn wrote:
> Is there a way of Postfix sending a Whatsapp message to a user when
> there came in email for her/him?
> 
> Thanks, Jos

No.  That is utterly and totally not Postfix's, or any MTA's, job.  Period.

If you wanted to get a WhatsApp notification when you receive new mail,
you'd need to find a mail *client* that has some kind of WhatsApp
notification plugin.  (Good luck with that.)


-- 
  Phil Stracchino
  Babylon Communications
  ph...@caerllewys.net
  p...@co.ordinate.org
  Landline: +1.603.293.8485
  Mobile:   +1.603.998.6958


Postfix -> Whatapp

2020-05-26 Thread Jos Chrispijn
Is there a way of Postfix sending a Whatsapp message to a user when 
there came in email for her/him?


Thanks, Jos

-- With both feet on the ground you can't make any step forward