I've also been hit by this bug. It _is_ a bug rather than a feature. The purpose of the "component" option is specifically to support Google's extensions to XMPP (see http://code.google.com/apis/talk/jep_extensions/jid_domain_change.html) but with the code as it is, it's not possible to use Google Talk the following fixes.
Firstly, Net::XMPP already adds @componentname to your JID, so if you need a component then you shouldn't add "@domain" to your username too. Otherwise you try logging in as u...@domain@componentname, which doesn't work. Secondly, when you use a componentname, sendxmpp presumes you only want to talk to people in that domain, which is wrong. Here is a patch which fixes both problems. Tested with this .sendxmpprc: [email protected];talk.google.com:5222 password googlemail.com and this command line: echo test | sendxmpp -t [email protected] Regards Stuart
sendxmpp_gtalk_fix.diff
Description: Binary data

