I need some help getting a module working for prosody.

It needs to listen on a localhost tcp socket and accept http POSTs
with json bodies akin to:

   {"from":"[email protected]", "to":"[email protected]", "body":"Hello"}

and confirm that the to's domain is served locally (this install does
not do s2s) and if so, send the message.

Authentication will be done outside of prosody; the module does not
have to deal with auth, just send whatever it gets.

If the domain is not local, a 400 reply should be sent, with:

  {false}

and if the domain is local, a 200 with:

  {true}

and Content-Type applicaion/json in both cases.

I wrote a module based on what is in the prosody-modules repo, but
have not managed to get it to work.

Can anyone help out?

I have a budget for any assistance.

-JimC
-- 
James Cloos <[email protected]>         OpenPGP: 0x997A9F17ED7DAEA6

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/prosody-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to