Prosody/Pidgin not sending buddy authorization requests - xmpp

I'm setting up a Prosody XMPP server on my local machine for a proof of concept, and I just want to get a simple chat session going with myself. I set it to allow registration, and was able to register new users, but when I send a buddy request to one of the other users I've registered, he doesn't get it, and all users, including myself, show as "Not Authorized" in Pidgin.
I'm "test2" on my local machine, and on another machine, I'm logged in as "test3". When I send a buddy request from test2 to test3, nothing happens.
In Pidgin, the only log I see is
---- +++ test2#pc-705.example.com/ signed on # 11/20/2015 2:32:19 PM ----
where example.com is my domain.
My Prosody log just says that I've authenticated but does not mention sending buddy requests:
C:\Users\test2\Desktop\XMPP\Prosody>prosody.bat
general info Hello and welcome to Prosody version 0.9.7
general info Prosody is using the select backend for connecti
on handling
localhost:tls error Unable to initialize TLS: No SSL/TLS configurati
on present for localhost
localhost:tls error Unable to initialize TLS: No SSL/TLS configurati
on present for localhost
portmanager info Activated service 's2s' on [::]:5269, [*]:5269
mod_s2s warn No local IPv4 or IPv6 addresses detected, outgoi
ng connections may fail
portmanager info Activated service 'c2s' on [::]:5222, [*]:5222
portmanager info Activated service 'legacy_ssl' on no ports
pc-705.example.com:tls error Unable to initialize TLS: No SSL/TLS configuration present for pc-705.example.com
pc-705.example.com:tls error Unable to initialize TLS: No SSL/TLS configuration present for pc-705.example.com
c2s02310338 info Client connected
c2s02310338 info Authenticated as test2#pc-705.example.com
c2s0 info Client connected
c2s0 info Authenticated as test3#pc-705.example.com
Where is my issue?

It sounds like you might have tried adding the buddy as test3. Which isn't going to work. A buddy on XMPP is user#server.
You need to add them as test3#pc-705.example.com or whatever.
This is part of how/why XMPP server's can federate (interoperate). Like email.

Related

DCOM got error "2147942405" from the computer x.x.x.x when attempting to activate the server:

I have a program on my computer that runs as SYSTEM and it is trying to launch an exe(opc server) on a remote machine x.x.x.x. But I get a DCOM error in my machine's eventviewer.
DCOM got error "2147942405" from the computer x.x.x.x when attempting to activate the server: yyyyy
I followed almost all the suggestions on the internet about opening dcomcnfg and adding users limits.default for launch and activation and Everyone,system,interactive,network from link (ftp://ftp.softing.com/pub/outgoing/opc/DCOM/DCOM-Settings-en.pdf) but nothing works.
Would anybody have nay other ideas on how to make this work.
According to MS Technet:
https://social.technet.microsoft.com/Forums/Azure/en-US/8bb5807f-73ba-4092-abc8-283d8fced6c4/request-a-certificate-from-certificate-service-fails-dcom-error-2147942405?forum=winserversecurity
With my VERY limited understanding of Certificate servers you may have one of the scenarios:
Client PC's are trying to connect to a Certificate server that no longer exists
Client PC's have a certificate that is valid but the Certificate server no longer exists
A Certificate server is broken
Clients do not have the proper authority to request the Certificate
I say this is limited knowledge as I am currently trying to remove AD Certificate services from a Domain Controller and I can see that in the System event log the exact same messages are being logged as I have stopped the Certificate services to asses the impact. If I get further information I will post back.

Java Web application not sending Email on Ubuntu server

My play framework web application sends automatically emails to user using Apache commons email library, everything works fine on my machine, but when I deploy it on an Ubuntu server it is unable to send email.
It throws exceptions like org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.googlemail.com:465 (I also tried different configuration with smtp.google.mail port 465,25 and 587 with or without ssl and tls)
and connection timed out.
I starting to believe that is a problem of some configuration of my ubuntu server.
Any suggestion?
If i type ufw status command I receive status disabled.
Thanks
I am going to close this question, because I found the solution. Basically my Server provider (Scaleway) has a security configuration where SMTP is blocked. I asked them to unlock It.

Jenkins SMTP connection refused. What am I missing?

I've got Jenkins ver 1.524 installed on a Windows 7 box and I'm trying to configure email but the "Test configuration" is reporting errors. Jenkins is running as a service under my own domain account.
My settings are as follows:
SMTP server: smtp.corpdomain.com
Default user email suffix: #corpdomain.com
Not using authentication
Not using SSL
SMTP port: 25
Reply-To Address: tools#corpdomain.com
Charset: UTF-8
When I test the configuration, I usually get the following exception:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.amazon.com, port: 25;
nested exception is:
java.net.ConnectException: Connection timed out: connect
Yet every once in a while I receive the following instead:
com.sun.mail.smtp.SMTPSendFailedException: 553 5.1.8 <nobody#nowhere>... Domain of sender address nobody#nowhere does not exist
;
nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 553 5.1.8 <nobody#nowhere>... Domain of sender address nobody#nowhere does not exist
However, I am able to send mail from the command line without errors via both python script and java (using javax.mail) without authentication, and I'm able to telnet to the SMTP server on port 25, so I don't see how it could be a firewall issue.
One other note that may be related: When I try to install a plug-in via the Jenkins web interface, I receive a 403 response for the URL "http://updates.jenkins-ci.org/update-center.json?uctest". However, I'm able to connect to that URL from a browser on the same machine.
Could this be a Tomcat configuration issue? I'm not familiar with Tomcat so I'm not sure where to even start looking. Maybe a Jenkins configuration that I've missed? Any other ideas?
Thanks in advance!
FWIW The nobody#nowhere address is the default address Jenkins comes with for the system admin email address (which is used as the from address when sending emails)
you can change it at
Manage Jenkins > Configure System > Jenkins Location
first, use port 465
second, get your email verified in AWS SES, and change your default sending email from here:
Jenkins -> Configure System -> Jenkins Location -> System Admin e-mail address
Still looks to me like your firewall is blocking Jenkins' service from accessing those ports -
especially as the connection times-out, which is typical for such cases.
Suggest you try to disable the firewall completely and see if there is any change.
Cheers
To check for conectivity problems from Jenkins, I would go to the Script Console at Manage Jenkins -> Script Console, and there, try to connect to the port you want to test (25 in your case), with a Groovy script like:
s = new Socket()
s.setSoTimeout(200)
s.connect(new InetSocketAddress("smtp.corpdomain.com", 25), 200)
s.close()
If you don't receive any kind of IOError, then there is no problem with the conectivity.
Note: I could have used simply new Socket("smtp.corpdomain.com", 25) but it will try forever to connect if the Firewall ignores your attempts.
For the SMTPSendFailedException you eventually receive, as #paul-henry mention:
The nobody#nowhere address is the default address Jenkins comes with for the system admin email address (which is used as the from address when sending emails)
you can change it at
Manage Jenkins > Configure System > Jenkins Location
Resources:
Networking with Groovy
Add a timeout when creating a new Socket
Thanks for submitting an edit. It is only visible to you until it’s been approved by trusted community members
first, use port 465 second, get your email verified in AWS SES, and change your default sending email from here: Jenkins -> Configure System -> Jenkins Location -> System Admin e-mail address
Thanks. It helps me!
My problem was "550-Verification failed for "

Configuring a Kamailio/OpenSER registrar/proxy for outbound SIP?

I've set up a Kamailio v4.0 SIP registrar and proxy for SIP over websockets, and everything is working fine except sending outbound messages or making outbound calls to a SIP address on a foreign domain. I can receive messages and calls from non-local SIP addresses, but not send any out.
I've tried to understand the documentation of various modules like domain and outbound and I'm still stumped. My configuration file is essentially identical to this one.
This feels less like configuration and more like learning a new programming language. Any ideas on how to proceed?
edit: spotted the following in the log file:
INFO: rr [../outbound/api.h:49]: Failed to import bind_ob
INFO: rr [rr_mod.c:159]: outbound module not available
Recompiled with STUN=1 and loaded outbound.so in config (is this barking up the wrong tree?). Now log says:
INFO: rr [rr_mod.c:156]: Bound rr module to outbound module
[...]
WARNING: <core> [msg_translator.c:2499]: TCP/TLS connection (id: 0) for WebSocket could not be found
ERROR: <core> [msg_translator.c:1725]: could not create Via header
ERROR: tm [t_fwd.c:435]: could not build request
The logs suggest that no connection to the WebSocket client can be found. Kamailio cannot open a connection to a WebSocket (webrtc) softphone, if one does not exist, the SIP message cannot be delivered.
You can list active TCP connections using kamcmd tool:
kamcmd core.tcp_list
If you use WebSockets over TLS:
kamcmd tls.list
There is a config function that should be used in this case - set_forward_no_connect() - to avoid getting so far in processing.

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