Guam SSL Failed connection



  • Hi everyone, i'm try using Guam with Dovecot IMAP server...

    Using 9143 port, all work perfectly. With or without STARTTLS.

    My problem only with ssl ( 9993 )

    I'm tryng connect via openssl

    root@Dev:~# openssl s_client -connect 127.0.0.1:9993 -starttls imap
    CONNECTED(00000003)
    a1 test
    a1 login test@test.com kkkkkk

    Nothing hapened

    Logs:

    ==> rel/kolab_guam/log/crash.log <==
    2016-06-27 15:41:17 =CRASH REPORT====
    crasher:
    initial call: kolab_guam_session:init/1
    pid: <0.1412.0>
    registered_name: []
    exception exit: {{badarg,[{binary,match,[[{capabilities,<<"IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN">>},{server_id,<<>>}],<<"STARTTLS">>],[]},{kolab_guam_session,ensure_hello_does_not_have_starttls,1,[{file,"src/kolab_guam_session.erl"},{line,307}]},{kolab_guam_session,handle_info,2,[{file,"src/kolab_guam_session.erl"},{line,75}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,826}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    ancestors: [<0.1287.0>,kolab_guam_sup,<0.1282.0>]
    messages: []
    links: [<0.1287.0>,<0.1493.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 756
    neighbours:
    neighbour: [{pid,<0.1493.0>},{registered_name,[]},{initial_call,{eimap,init,['Argument__1']}},{current_function,{gen_fsm,loop,7}},{ancestors,[<0.1412.0>,<0.1287.0>,kolab_guam_sup,<0.1282.0>]},{messages,[]},{links,[<0.1412.0>]},{dictionary,[]},{trap_exit,false},{status,waiting},{heap_size,987},{stack_size,10},{reductions,2783}]
    2016-06-27 15:41:17 =SUPERVISOR REPORT====
    Supervisor: {<0.1287.0>,kolab_guam_listener}
    Context: child_terminated
    Reason: {badarg,[{binary,match,[[{capabilities,<<"IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN">>},{server_id,<<>>}],<<"STARTTLS">>],[]},{kolab_guam_session,ensure_hello_does_not_have_starttls,1,[{file,"src/kolab_guam_session.erl"},{line,307}]},{kolab_guam_session,handle_info,2,[{file,"src/kolab_guam_session.erl"},{line,75}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    Offender: [{pid,<0.1412.0>},{id,session},{mfargs,{kolab_guam_session,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]

    ==> rel/kolab_guam/log/console.log <==
    2016-06-27 15:41:17.802 [error] <0.1287.0> Supervisor {<0.1287.0>,kolab_guam_listener} had child undefined started with {kolab_guam_session,start_link,undefined} at <0.1412.0> exit with reason bad argument in call to binary:match([{capabilities,<<"IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN">>},...], <<"STARTTLS">>) in kolab_guam_session:ensure_hello_does_not_have_starttls/1 line 307 in context child_terminated

    ==> rel/kolab_guam/log/error.log <==
    2016-06-27 15:41:17.802 [error] <0.1287.0> Supervisor {<0.1287.0>,kolab_guam_listener} had child undefined started with {kolab_guam_session,start_link,undefined} at <0.1412.0> exit with reason bad argument in call to binary:match([{capabilities,<<"IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN">>},...], <<"STARTTLS">>) in kolab_guam_session:ensure_hello_does_not_have_starttls/1 line 307 in context child_terminated

    Anyone can me help.

    Thx a lot
    Karl....



  •  in kolab_guam_session:ensure_hello_does_not_have_starttls/1 line 307 in context child_terminated
    

    it seems , that your dovecot doesn't support starttls on this port

    taka a look at /etc/guam/sys.config in port 993
    take a look in dovecot configs in port 993

    And please public manual how-to change cyrus to dovecot in kolab if all will be ok. I hate cyrus)
    Calendars, notes and other additional staff works?



  • Yes, all filters functions, with the guam 0.8.... If i can work with SSL i try write about dovecot+guam.



  • No way to outlook connect with Guam.. :(
    Thunderbird without SSL ok



  • /etc/guam/sys.config

    something like this:

       kolab_guam, [
                {
                    imap_servers, [
                        {
                            imaps, [
                                { host, "127.0.0.1" },
                                { port, 9993 },
                                { tls, true }
                            ]
                        },
                         {
                            imap, [
                                { host, "127.0.0.1" },
                                { port, 9143 },
                                { tls, starttls }
                             ]
                         },                    
                    ]
    

    dovecot config:
    9143 imap + starttls
    9993 imaps

    and don't try to use starttls on SSL port. starttls works on 143 port start connection without SSL and THEN set up TLS.



  • @Karl-Mendes IMAP, no? ActiveSync already filters things, of course ...


Log in to reply