I believe in j2 the router restricts what it allows through. It only allows packets from your component through. Notice that the sm component connects to the router as domain.com while the other components connect as there component name (c2s, s2s, ...). Thus, the sm is the only component that can send messages from domain.com.
Back to your original problem... you could easily create sessions on the sm for each user you are "spoofing". Authentication is a c2s thing. Your component can start a session for [EMAIL PROTECTED]/resource, just like the c2s does, and then route messages to the sm, just like c2s, and the messages will get delivered correctly. --- Fabio Forno <[EMAIL PROTECTED]> wrote: > Matthias Wimmer wrote: > > > Don't wrap your messages in <route/> elements ... > you cannot "route" a > > packet to another server s <route/> elements are > not allowed on s2s > > links. Just send the <message/> element. > > I'm realizing that I don't know enough about > <route/> packets... If I > send a bare <message/> from the component (using the > jabber:client > namespace, is it ok?) the message just disappear > whithin the router. > > In > http://jabberd.jabberstudio.org/dev/docs/component.shtml > I read that > messages should be sent using <route/> elements, as > in this example: > > <route from='s2s' to='conference.jabber.org'> > <message xmlns='jabber:client' > to='[EMAIL PROTECTED]/rob' > from='[EMAIL PROTECTED]/laptop' type='groupchat'> > <body>oh, how I wish we could kick > people</body> > </message> > </route> > > In my attempts only the name of the component name > changes, I really > don't understand what's worng. > > > Are there other sources for better learning <route/> > elements? > > -- > Fabio Forno, Ph.D. - Research Assistant > Politecnico di Torino - Dip. Automatica e > Informatica > C.so Duca degli Abruzzi 24 - 10129 Torino (Italy) > Phone: +39 011 2276 102 - JabberId: > [EMAIL PROTECTED] > _______________________________________________ > jdev mailing list > [email protected] > http://mail.jabber.org/mailman/listinfo/jdev > __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 _______________________________________________ jdev mailing list [email protected] http://mail.jabber.org/mailman/listinfo/jdev
