Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Solved: Dagent gives Error 421: GetSession failed

    Kopano Groupware Core
    2
    3
    289
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • q5616417
      q5616417 last edited by q5616417

      Hi to all,
      I am setting up a new installation on a Debian stretch machine. I would like to send mails to selected addresses from our postfix server via transport_maps to this kopano instance with lmtp. Unfortunately, kopano-dagent cannot handle the mail because it gives the error “421 internal error: GetSession failed”.

      Here ist the dagent.log:

      Thu Jun 20 13:17:49 2019: [kopano-dagent|T30477] [=======] Starting kopano-dagent version 8.7.81 (pid 30477 uid 999) (LMTP mode)
      Thu Jun 20 13:17:49 2019: [kopano-dagent|T30477] [info   ] Re-using fd 1 to listen on *:2003 for LMTP
      Thu Jun 20 13:17:49 2019: [kopano-dagent|T30477] [info   ] Maximum LMTP threads set to 20
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30477] [info   ] Accepted connection from [::ffff:<postfix server'S IP>]:51582
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [info   ] Starting worker for LMTP request pid 30477
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [error  ] gsoap connect: ()
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [error  ] HrLogon server "default:" user "SYSTEM": network error
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [error  ] Unable to connect to storage server for user SYSTEM, using socket: "default:"
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [error  ] void* HandlerLMTP(void*): HrGetSession failed: network error (80040115)
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [debug  ] < 421 internal error: GetSession failed
      Thu Jun 20 13:19:29 2019: [kopano-dagent|T30482] [info   ] LMTP thread exiting
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30477] [info   ] Accepted connection from [::ffff:<postfix server's IP>]:51584
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [info   ] Starting worker for LMTP request pid 30477
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [error  ] gsoap connect: ()
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [error  ] HrLogon server "default:" user "SYSTEM": network error
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [error  ] Unable to connect to storage server for user SYSTEM, using socket: "default:"
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [error  ] void* HandlerLMTP(void*): HrGetSession failed: network error (80040115)
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [debug  ] < 421 internal error: GetSession failed
      Thu Jun 20 13:19:31 2019: [kopano-dagent|T30483] [info   ] LMTP thread exiting
      

      Postfix says:

      Jun 20 13:19:29 mail postfix/qmgr[12037]: 64B56402F5: from=<blablabla@googlemail.com>, size=3398, nrcpt=1 (queue active)
      Jun 20 13:19:29 mail postfix/smtpd[15984]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
      Jun 20 13:19:29 mail amavis[15970]: (15970-06) Passed CLEAN {RelayedInbound}, [<google's ip address>]:44065 [<google's ip address>] <blablabla@googlemail.com> -> <my-email-address>, Queue-ID: CB5B9402F2, Message-ID: <some_cryptic_signs@mail.gmail.com>, mail_id: Z-eqj6fRV-uh, Hits: -1.998, size: 2895, queued_as: 64B56402F5, 391 ms
      Jun 20 13:19:29 mail postfix/smtp[16045]: CB5B9402F2: to=<my-email-address>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.7, delays=0.3/0/0/0.39, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 64B56402F5)
      Jun 20 13:19:29 mail postfix/qmgr[12037]: CB5B9402F2: removed
      Jun 20 13:19:29 mail postfix/lmtp[16062]: 64B56402F5: to=<my-email-address>, relay=<hostname.of.my.kopano.machine>[<ip.of.my.kopano.machine>]:2003, delay=0.1, delays=0.09/0.01/0.01/0, dsn=4.0.0, status=deferred (host<hostname.of.my.kopano.machine>[<ip.of.my.kopano.machine>] refused to talk to me: 421 internal error: GetSession failed)
      

      dagent.cfg looks like:

      log_method = file
      log_level       =       6
      log_file = /var/log/kopano/dagent.log
      log_timestamp = yes
      lmtp_listen = *:2003
      pid_file = /var/run/kopano/dagent.pid
      
      root@internal:/etc/kopano# nc localhost 2003
      421 internal error: GetSession failed
      

      Dagent is listening to Port 2003:

      root@internal:/etc/kopano# netstat -tulpn
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
      tcp        0      0 0.0.0.0:389             0.0.0.0:*               LISTEN      26977/slapd         
      tcp        0      0 0.0.0.0:22           0.0.0.0:*               LISTEN      25066/sshd          
      tcp        0      0 127.0.0.1:8039          0.0.0.0:*               LISTEN      30235/kapid         
      tcp        0      0 127.0.0.1:8777          0.0.0.0:*               LISTEN      29733/konnectd      
      tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      22981/mysqld        
      tcp6       0      0 :::9443                 :::*                    LISTEN      17134/kwebd         
      tcp6       0      0 :::389                  :::*                    LISTEN      26977/slapd         
      tcp6       0      0 :::22                :::*                    LISTEN      25066/sshd          
      tcp6       0      0 :::236                  :::*                    LISTEN      29170/kopano-server 
      tcp6       0      0 :::110                  :::*                    LISTEN      28613/kopano-gatewa 
      tcp6       0      0 :::143                  :::*                    LISTEN      28613/kopano-gatewa 
      tcp6       0      0 :::8080                 :::*                    LISTEN      24024/kopano-ical   
      tcp6       0      0 :::80                   :::*                    LISTEN      30211/apache2       
      tcp6       0      0 :::2003                 :::*                    LISTEN      30477/kopano-dagent 
      tcp6       0      0 :::8443                 :::*                    LISTEN      24024/kopano-ical   
      tcp6       0      0 :::443                  :::*                    LISTEN      30211/apache2       
      root@internal:/etc/kopano# 
      

      So, I don’t know anymore where to look at. Can anyone give me a hint?

      Best regards

      Thomas

      P.S: Kopano version is 8.7.81.164

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @q5616417 last edited by

        @q5616417 the error is likely the result of https://forum.kopano.io/topic/2512/socket-permissions-issues-with-kopano-server-build-8-7-81-162

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • q5616417
          q5616417 last edited by

          Felix, thank you very much. A chown on /var/run/kopano did the trick :) I will look out for a new version with this “bug” (?) killed.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post