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

    Dagent and Gateway Crashed after receiving email from Outlook using RTF

    Kopano Groupware Core
    4
    15
    2429
    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.
    • compsos-shiena
      compsos-shiena last edited by

      Hi umgfoin,

      The error we got is more on libkcinetmapi I think, your log seems to be more on libmapi, but I’m not sure.

      Hi lherrmann,

      Thanks for your time trying to reproduce the issue.
      Re. RTF part, how about this part on the eml, would that be the part you’re after?
      0_1508456784966_0d5f336a-a9dd-4ea2-9e74-7cc11ca33eef-image.png

      I setup IMAP on Outlook and enabled “Send using Outlook Rich Text format” under Options -> Mail. Then send myself a test email by selecting “Rich Text” as format, then formatting my text on the body (i.e. made it bold, etc). That’s when I get the error as per my original message.

      0_1508457053186_c1368418-feac-474f-aa1d-ee81680a5cb2-image.png
      0_1508457029136_606d7b53-ce63-4411-832c-ca554e849848-image.png

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @compsos-shiena last edited by fbartels

        Hi @compsos-shiena ,

        yes that is the part we have also seen in your eml. it actually does not contain rtf, but is already converted from rtf to html. But unfortunately neither with your eml nor when hooking up Outlook via imap and setting the format to rtf we could observe a crash of the dagent.

        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
        • compsos-shiena
          compsos-shiena last edited by

          Hi Felix,

          The eml file was from the Sent folder, and not from the Inbox as it would not deliver to the Inbox. due to the crash. Would that be ok as an eml sample?

          fbartels 1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano @compsos-shiena last edited by

            Hi @compsos-shiena ,

            if you can reproduce the crash with the eml from the sent items we would of course love to have a look at this mail. If you cannot get the dagent to dump the raw message then an alternative approach could be to dump the message directly from the postfix queue. Step 2 in https://www.wirehive.com/5-top-tips-reviewing-postfix-mail-queue/ explains how.

            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
            • compsos-shiena
              compsos-shiena last edited by

              Hi Felix,

              I sent another test email from Outlook 2016 with Rich Text enabled and formatting was enabled on text. It was then stuck in queue.
              0_1508891510470_de0ba9a2-872c-4383-a7b3-96c31fec0c6c-image.png
              I then followed step 2 from your link and saved the file, it can be viewed here https://www.dropbox.com/s/krkysnet4nv0v19/test-dagentcrash-251020171018.txt?dl=0

              Postfix on NethServer maillog when I tried to send the test email to myself was:

              Oct 25 10:23:53 srv postfix/qmgr[1982]: 543A560005A00: from=<shiena@compsos.com.au>, size=292819, nrcpt=1 (queue active) Oct 25 10:23:53 srv postfix/lmtp[16813]: 543A560005A00: to=<shiena@compsos.com.au>, relay=mailx[192.168.35.3]:2003, delay=350, delays=349/0.11/0.04/0.12, dsn=4.4.2, status=deferred (lost connection with mailx[192.168.35.3] while sending end of data -- message may be sent more than once)
              

              Kopano Dagent log file:

              Wed Oct 25 10:23:53 2017: [info   ] [14111] Accepted connection from [::ffff:192.168.35.1]:41794
              Wed Oct 25 10:23:53 2017: [info   ] [17398] Starting worker for LMTP request pid 17398
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Kopano Directory Service"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Private Folders"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Public Folders"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 220 2.1.5 LMTP server is ready
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] > LHLO srv.compsos.com.au
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] LHLO ID: srv.compsos.com.au
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250-SERVER ready
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250-PIPELINING
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250-ENHANCEDSTATUSCODE
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250 RSET
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] > MAIL FROM:<shiena@compsos.com.au>
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250 2.1.0 Ok
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] > RCPT TO:<shiena@compsos.com.au>
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Resolved command "RCPT TO:<shiena@compsos.com.au>" to recipient address "shiena@compsos.com.au"
              Wed Oct 25 10:23:53 2017: [notice ] [17398] Resolved recipient shiena@compsos.com.au as user shiena
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 250 2.1.5 Ok
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] > DATA
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] < 354 2.1.5 Start mail input; end with <CRLF>.<CRLF>
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] PYTHONPATH = /usr/share/kopano-dagent/python
              Wed Oct 25 10:23:53 2017: [info   ] [17398] * Loading plugins started
              Wed Oct 25 10:23:53 2017: [info   ] [17398] ** Checking plugins in /var/lib/kopano/dagent/plugins
              Wed Oct 25 10:23:53 2017: [info   ] [17398] * Loading plugins done
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Kopano Directory Service"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Private Folders"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Public Folders"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Kopano Directory Service"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Private Folders"
              Wed Oct 25 10:23:53 2017: [debug  ] [17398] Initializing provider "Public Folders"
              Wed Oct 25 10:23:53 2017: [info   ] [17398] Mail will be delivered in Inbox
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] ----------------------------------------------------------------------
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Fatal error detected. Please report all following information.
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Application kopano-dagent version: 8.4.90
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] OS: Linux, release: 3.16.0-4-amd64, version: #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19), hardware: x86_64
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Thread name: kopano-dagent
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Peak RSS: 25276
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Pid 17398 caught SIGSEGV (11), traceback:
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Backtrace:
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #0. /usr/lib/libkcutil.so.0(+0x2898d) [0x7fd6bd10398d]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #1. /usr/lib/libkcutil.so.0(+0x21e4f) [0x7fd6bd0fce4f]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #2. /usr/lib/libkcutil.so.0(_ZN2KC23generic_sigsegv_handlerEPNS_8ECLoggerEPKcS3_iPK9siginfo_tPKv+0x1c1) [0x7fd6bd0fd1c1]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #3. /lib/x86_64-linux-gnu/libpthread.so.0(+0xf890) [0x7fd6b9c96890]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #4. /usr/lib/x86_64-linux-gnu/libstdc++.so.6(_ZNSt8__detail15_List_node_base7_M_hookEPS0_+0xf) [0x7fd6b8e424bf]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #5. /usr/lib/libkcinetmapi.so.0(+0x728d0) [0x7fd6bd85c8d0]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #6. /usr/lib/libkcinetmapi.so.0(+0x58d56) [0x7fd6bd842d56]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #7. /usr/lib/libkcinetmapi.so.0(+0x576ef) [0x7fd6bd8416ef]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #8. /usr/lib/libkcinetmapi.so.0(+0x5862a) [0x7fd6bd84262a]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #9. /usr/lib/libkcinetmapi.so.0(+0x5a05b) [0x7fd6bd84405b]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #10. /usr/lib/libkcinetmapi.so.0(+0x5b334) [0x7fd6bd845334]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #11. /usr/lib/libkcinetmapi.so.0(_ZN2KC8IMToMAPIEP12IMAPISessionP9IMsgStoreP9IAddrBookP8IMessageRKSsNS_16delivery_optionsE+0x12e) [0x7fd6bd848f7e]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #12. /usr/sbin/kopano-dagent() [0x4102ce]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #13. /usr/sbin/kopano-dagent() [0x415329]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #14. /usr/sbin/kopano-dagent() [0x416a31]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #15. /usr/sbin/kopano-dagent() [0x4176a7]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #16. /usr/sbin/kopano-dagent() [0x41a12a]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #17. /usr/lib/libkcutil.so.0(_ZN2KC18unix_fork_functionEPFPvS0_ES0_iPi+0x6d) [0x7fd6bd1019ad]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #18. /usr/sbin/kopano-dagent() [0x40bab7]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #19. /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fd6b8532b45]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] #20. /usr/sbin/kopano-dagent() [0x40ccff]
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Signal errno: Success, signal code: 1
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Sender pid: -1532713817, sender uid: 0, si_status: 0
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] User time: 0, system time: 0, signal value: 0
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] Faulting address: 0xa4a4a4a7, affected fd: 0
              Wed Oct 25 10:23:53 2017: [crit   ] [17398] When reporting this traceback, please include Linux distribution name (and version), system architecture and Kopano version.
              

              I looked at the Kopano Gateway log, but there was no log during that time when I tried to send the email.

              Thanks again

              fbartels 1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels Kopano @compsos-shiena last edited by

                @compsos-shiena said in Dagent and Gateway Crashed after receiving email from Outlook using RTF:

                it can be viewed here

                Ah, that already looks a lot more like an rtf body part. I’ll see if I can have someone test this in the next few days.

                @compsos-shiena said in Dagent and Gateway Crashed after receiving email from Outlook using RTF:

                I looked at the Kopano Gateway log, but there was no log during that time when I tried to send the email.

                Yes, I should have pointed that out earlier. the dagent and the gateway are not directly connected. the dagent is used to deliver mails from the mta to kopano-server, while the gateway is utilised if you open stores via pop3/imap.

                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
                • lherrmann
                  lherrmann last edited by

                  I tested this again, but no error messages came up in the agent.log file. Just one warning message (which can be ignored):

                  Mon Oct 30 10:26:54 2017: [26413] [warning] TNEF attachment saving failed: 0x80004002

                  I tested this with 8.4.90

                  1 Reply Last reply Reply Quote 0
                  • compsos-shiena
                    compsos-shiena last edited by

                    Hello lherrmann and fbartels,

                    Do you think it’s the libraries we have installed like libkcutil, libpthread, libstdc++, libkcinetmapi causing our issue?
                    I attached the result of dpkg-query from our server https://www.dropbox.com/s/3kda0edsmibdsn0/dpkg-query.txt?dl=0
                    Thanks

                    fbartels 1 Reply Last reply Reply Quote 0
                    • fbartels
                      fbartels Kopano @compsos-shiena last edited by

                      Hi @compsos-shiena ,

                      you are running quite an old version of Kopano Core. You could try if upgrading solves the issue for you.

                      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
                      • compsos-shiena
                        compsos-shiena last edited by

                        Hi Felix,

                        The boss is currently away so I’m not doing an update as yet, I will let you know once I’ve done the update and hopefully if it fixed that issue.
                        Thank you all for your help.

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