You have your own ejabberd server running under your own domain example.com to chat with your friends as firstname.lastname@example.org. Your domain is also your Google Apps domain.
You're easily able to connect to users on jabber.org or jabber.ccc.de, but adding buddies using Google Talk doesn't work at all.
While hovering above your buddie's name in your $favoritejabberclient you get the following error message presented:
404 - Remote server not found
Road to salvation
You type 'ejabberd google talk' into Google and stumble upon this page on ejabberd.im. In your ejabberd configuration file you make sure that you have the following directives enabled:
You also give ìptables -L` a try to check whether there're any blocking iptables rules present.
By now your problem should've been resolved.
But if that's still not the case go to your Google Apps account (from GMail click on the cogwheel -> hit Manage) and disable Google Talk for your domain. Afterwards your connection issues to Google Talk users will be a thing of the past.