Trouble with Dialback/S2S between Components on different servers


Openfire 3.6.0

I’ve coded a component running inside a plugin. The components on different servers must send messages to each other. However, when I have my component this@mycomponent.pc1 send a message to this@mycomponent.pc2, I am getting this error in the logs of pc2:

  1. 2008.09.04 10:47:33 Error verifying key of remote server: mycomponent.pc1

  2. mycomponent.pc1

  3. at

  4. at

  5. at

  6. at org.jivesoftware.openfire.server.ServerDialback.verifyKey( 52)

  7. at org.jivesoftware.openfire.server.ServerDialback.validateRemoteDomain(ServerDial

  8. at org.jivesoftware.openfire.session.LocalIncomingServerSession.validateSubsequent Domain(

  9. at

  10. at

  11. at

  12. at 63)

  13. at

  14. at

  15. 2008.09.04 10:47:33 Error verifying key of remote server: mycomponent.pc1

  16. mycomponent.pc1

  17. at

  18. at

  19. at

  20. at org.jivesoftware.openfire.server.ServerDialback.verifyKey( 52)

  21. at org.jivesoftware.openfire.server.ServerDialback.validateRemoteDomain(ServerDial

  22. at org.jivesoftware.openfire.server.ServerDialback.createIncomingSession(ServerDia

  23. at org.jivesoftware.openfire.session.LocalIncomingServerSession.createSession(Loca

  24. at

  25. at

  26. at 54)

  27. at

  28. at

Can anyone help me? I don’t see an error in the logs pc1

Hm, as far as I understand it, Openfire should (also) try to dialback to pc1 and not only to mycomponent.pc1

When adding /etc/hosts entries for mycomponent.pc1 and mycomponent.pc2 it works, dialback funtions properly.

Is there a better way to fix this?