No incoming S2S - outgoing S2S only to few servers

Hi,

i posted this text yesterday but i guess it was anonymous and no mod marked it active - so here again (sry for double-posting but i cant find the post)!

I want to establish a s2s connection with my ejabberd 2.0 running on a ubuntu 8.04. To jabber.org it doesnt work - to jabber.ccc.de it works fine for outgoing messages - i cant recieve a message from no other server .

Here from the live modus some parts of the log where i try to send a message to a buddy on jabber.org:

=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.338.0>:ejabberd_s2s:245) : sending to process <0.339.0>


=INFO REPORT==== 16-May-2008::11:24:25 ===
I(<0.339.0>:ejabberd_s2s_out:984) : Trying to open s2s connection: hostname.de -> jabber.org

=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.339.0>:ejabberd_s2s_out:186) : open_socket: {"hostname.de",
                                                  "jabber.org",
                                                  "427903677",
                                                  false}

=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.339.0>:ejabberd_s2s_out:928) : srv lookup of 'jabber.org': [{30,
                                                                  30,
                                                                  5269,
                                                                  "jabber.org"}]


=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.339.0>:ejabberd_s2s_out:953) : srv lookup of 'jabber.org': [{"jabber.org",
                                                                  5269}]


=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.339.0>:ejabberd_s2s_out:236) : s2s_out: connecting to jabber.org:5269


=INFO REPORT==== 16-May-2008::11:24:25 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = "<?xml version='1.0'?>"

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = ""

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.339.0>:ejabberd_s2s_out:561) : starttls: {"hostname.de","jabber.org"}

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = []

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = "<?xml version='1.0'?>"

=INFO REPORT==== 16-May-2008::11:24:26 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = ""

=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.342.0>:ejabberd_receiver:297) : Received XML on stream = ""

=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_s2s_out:309) : recv result: {"jabber.org",
                                                  "hostname.de",
                                                  [],
                                                  "invalid"}

=INFO REPORT==== 16-May-2008::11:24:27 ===
I(<0.339.0>:ejabberd_s2s_out:319) : Closing s2s connection: hostname.de -> jabber.org (invalid dialback key)

=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_s2s_out:774) : terminated: {normal,wait_for_validation}

=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_router:301) : route
        from {jid,"buddy",
                  "jabber.org",
                  [],
                  "buddy",
                  "jabber.org",
                  []}
        to {jid,"kaisergimmel",
                "hostname.de",
                "LAPPI",
                "kaisergimmel",
                "hostname.de",
                "LAPPI"}
        packet {xmlelement,
                   "message",
                   [{"type","error"},
                    {"to","kaisergimmel@hostname.de/LAPPI"},
                    {"from","buddy@jabber.org"},
                    {"xml:lang","en"},
                    {"id","mir_45"}],
                   [{xmlelement,
                        "body",
                        [],
                        [{xmlcdata,<<"test @ jabber.org">>}]},
                    {xmlelement,
                        "error",
                        [{"code","404"},{"type","cancel"}],
                        [{xmlelement,
                             "remote-server-not-found",
                             [{"xmlns","urn:ietf:params:xml:ns:xmpp-stanzas"}],
                             []}]}]}


=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_local:271) : local route
        from {jid,"buddy",
                  "jabber.org",
                  [],
                  "buddy",
                  "jabber.org",
                  []}
        to {jid,"kaisergimmel",
                "hostname.de",
                "LAPPI",
                "kaisergimmel",
                "hostname.de",
                "LAPPI"}
        packet {xmlelement,"message",
                           [{"type","error"},
                            {"to",[...]},
                            {[...],...},
                            {...}|...],
                           [{xmlelement,[...],...},{xmlelement,...}]}


=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_sm:372) : session manager
        from {jid,"buddy",
                  "jabber.org",
                  [],
                  "buddy",
                  "jabber.org",
                  []}
        to {jid,"kaisergimmel",
                "hostname.de",
                "LAPPI",
                "kaisergimmel",
                "hostname.de",
                "LAPPI"}
        packet {xmlelement,"message",
                           [{"type","error"},
                            {"to",[...]},
                            {[...],...},
                            {...}|...],
                           [{xmlelement,[...],...},{xmlelement,...}]}


=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.339.0>:ejabberd_sm:467) : sending to process <0.338.0>


=INFO REPORT==== 16-May-2008::11:24:27 ===
D(<0.338.0>:ejabberd_c2s:1335) : Send XML on stream = "test @ jabber.org"

I created a cacert certificate (found on a tutorial somewhere arround and i verified it with "openssl verify" - so that shouldnt be the problem. Here my config with the s2s parts:

{5269, ejabberd_s2s_in, [
                           {shaper, s2s_shaper},
                           {max_stanza_size, 131072}
                          ]},
{s2s_use_starttls, true}.
{outgoing_s2s_port, 5269}.
{s2s_certfile, "/opt/ejabberd-2.0.0/conf/server.pem"}.

Because im not the firewall-pro - i tried to connect from a diffrent net with telnet on port 5269 - works but i cant speak xml. On the server i tried to connect to jabber.org with telnet and to jabber.ccc.de - both works so i guess my firewall is correct.

Why is there invalid in

D(<0.339.0>:ejabberd_s2s_out:309) : recv result: {"jabber.org",
                                                  "hostname.de",
                                                  [],
                                                  "invalid"}

I have a correct resolve.conf and i put the ip of jabber.org in the /etc/hosts - and i tried the thing with the ejabberd shell and connecting to a website (OK).

Is there something i forgot to rule out ? Something i can try - im a little bit desperate right now...
Do you need further information - further configs ?

Thx for your help in advance!
K.

p.s. i changed my hostname and my buddies name in the log.

Syndicate content