i cant do send a announce whit strophe.js, what are modules it is necessary? - xmpp

i cant do send a announce whit strophe from ejabberd sever 18.03.
It is possible, how?
i cant use this code ?
https://github.com/bbc/Strophejs-PubSub-Demo/blob/master/js/publisher.js

If user1#localhost is an account with admin rights in ejabberd configuration, then you can execute this command to send an announcement message to all the users in localhost:
$ ejabberdctl send_message chat user1#localhost localhost/announce/all "" "Message to all"

Related

I can't connect my email to my email client (VPS - CyberPanel)

i have a server on RackNerd, after I successfully installed Cyberpanel, and my website was online, I created an email on Cyberpanel. Then I connected via my email client (MailBird) but it was always rejected, I have entered the data correctly, such as "Server Hostname", "username" and "password" for my email.. What should I do?
By simply saying it was always rejected doesn't provide enough information to debug your issue. Though you could try these:
Mail server SSL is issued
Postfix & Dovecot is running properly
All mail related ports are open in the firewall

Per MUC channel bot managed by ejabberd

I would like to run one service process per MUC channel on an ejabberd server. Ideally I would like ejabberd to start / monitor that process.
That is, when a new MUC gets opened ejabberd should start the bot process and tell it the channel name through commandline options. The process will then connect to that MUC on its own and do its thing. in case it crashes, ejabberd should notice and try to restart it. In case the MUC gets closed, so should the bot process. Is such functionality available with ejabberd?
I am not aware of anything like that implemented.

XMPP chat : Candy won't work with Ejabberd server

I want to setup a web chat client. I decided to use Candy. The XMPP server I'm using is Ejabberd. My Ejabberd server is local. The URL is :
http://localhost:5280/
Users are defined like this :
user#localhost
The thing is I can't connect to this server using Candy out of the box while I can connect to it with simple strophejs functions on my phone.
I compared the packets that were sent to the server and they are exactly the same :
On my phone using Wireshark :
The console log when I'm connecting with Candy :
The screen is pending on "Connecting..."
What can be the reason that I can't connect to the server ? Is there something I have to configure in ejabberd.cfg ?
Thanks for help
The default URL for BOSH on ejabberd is /http-bind
When configuring your BOSH client you should point to that directory on the correct web URL, not the ejabberd service root.
Using http://example.net:5280/http-bind as BOSH URL in your Web client configuration should work.

Cannot get jabber clients to connect to ejabberd running on localhost

I installed ejabberd on my linux mint kde. It installed correctly, I am able to use the admin interface in the browser at http://localhost:5280/admin/ to add users. In the nodes menu it shows me one node running as ejabberd#localhost. There is a virtual host called inspiron-n4050 which it created on its own. Now i registered 2 users from the admin interface lovesh#inspiron-n4050 and test#inspiron-n4050. Now from my IM client(Kopete) i created 2 jabber accounts with jabberIds lovesh#inspiron-n4050 and test#inspiron-n4050. But when i try to connect any of these it shows me error Connection problem with jabber server inspiron-n4050. There was a connection error: Remote closed connection
ejabberd is running because on the shell when i check ejabberdctl status it says
The node ejabberd#localhost is started with status: started
ejabberd 2.1.11 is running in that node
What is wrong?
Reinstalling ejabberd fixed the problem
I used this steps in pidgin xmpp. You can check out similar options on kopete.
Change proxy options to No Proxy
In Connection Security, Use encryption if available
Check allow plain text on unencrypted streams.
After this steps I am able to chat within two pidgin clients over a Intranet.
i noticed that the there is a distinction between username "host" and actual hostname:
https://www.linode.com/docs/applications/messaging/instant-messaging-services-with-ejabberd-on-ubuntu-12-04-precise-pangolin
i had to use these settings to get it to work:
username: username#localhost
hostname: www.theactualserver.com
port: 5222

Skpsmtpmessage: which server should i use for gmail

I got this project "skpsmtpmessage" and I tried to send mail first. So I changed all the mail id to gmail id. But replay host is problem. I tried smtp.gmail.com, smtp.google.com, smtp.googletalk.com. But when I run my program, I get error that "Unable to connect server"
Which relay host should I use for gmail.
The correct SMTP server for Gmail is smtp.gmail.com, but I don't know how to help you further, the question is pretty vague.
You can also take a look at the configuration instructions for using Gmail on the iPhone to see if you're making a mistake with another parameter.