Ad Widget

Collapse

patch: email is not send on segmented tcp packets from smtp server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidl
    Junior Member
    • Aug 2008
    • 2

    #1

    patch: email is not send on segmented tcp packets from smtp server

    All email notifications will not be sent if the answer from the smtp server
    is segmented (Message from wireshark: [TCP segment of a reassembled PDU]).

    The TCP Stream looks like this:
    220 ******************************************HELO xyz.xyz.com
    5)
    502 5.5.2 Error: command not recognized

    The HELO Command is send before the complete "220 ***..." from the server
    is received (in my case, the last 4 bytes are missing) and then the server
    (MS-Exchange) sends a 502 5.5.2 Error.
    A correct communication protocol looks like this:

    220 ********************************************
    HELO xyz.xyz.com
    250 myservice.com
    MAIL FROM: <[email protected]>
    250 2.1.0 Ok
    RCPT TO: <[email protected]>
    250 2.1.5 Ok
    DATA
    354 End data with <CR><LF>.<CR><LF>
    From:<[email protected]>
    To:<[email protected]>
    Date: Tue, 19 Aug 2008 00:42:16 +0200
    Subject: Too many processes running on ZABBIX Server: OFF

    Too many processes running on ZABBIX Server: OFF
    .
    250 2.0.0 Ok: queued as 7B77F302835
    QUIT
    221 2.0.0 Bye

    I added a patch which fixes the communication to the smtp server and reads
    his messages until the end of line (0x0a) and not only the first
    network-packet.
    The problem is in 1.4.6 and 1.5.3 and the trunk.

    The problem occurs when I switched from one hardware to an other one. And then, there were no email's sent anymore. The problem depends one the hardware (the os was equal on both machines).

    Can you fix this?
    Attached Files
  • urvancevav
    Junior Member
    • Sep 2008
    • 13

    #2
    Thanks davidl

    I'm surprised.
    I wished to offer a similar patch for version 1.6.1 (I received the message "Wrong answer on HELO"). But has detected this patch for version 1.4.6.
    Why it has not been included in release 1.6?

    P.S. The same problem:

    Comment

    • woger
      Member
      • Sep 2005
      • 56

      #3
      Same problem here too after I changed from provider. It is still not repaired in 1.6.2 . Hope it will be in the next version. Thanks for the patch!

      Comment

      • Andreas Bollhalder
        Senior Member
        Zabbix Certified Specialist
        • Apr 2007
        • 144

        #4
        Count me up for this problem. I'm running 1.6.2 and with this patch, the emails are working again.

        Andreas
        Zabbix statistics
        Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Hi

          me, too.

          I took me a lot of time to figure out why the message "Wrong HELO"
          was written to the zabbix_server log and showed up in the error
          column for the actions
          Fortunately, I was able to reduce the output of the first answer
          so that I found a workaround.

          Thanks for the patch.

          Regards

          Norbert.

          Comment

          • Andreas Bollhalder
            Senior Member
            Zabbix Certified Specialist
            • Apr 2007
            • 144

            #6
            Is it correct, that this patch still isn't included in the version 1.6.3 ? Or does the version 1.6.3 have it fixed by another approach ?

            Andreas
            Zabbix statistics
            Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

            Comment

            • NOB
              Senior Member
              Zabbix Certified Specialist
              • Mar 2007
              • 469

              #7
              Originally posted by Andreas Bollhalder
              Is it correct, that this patch still isn't included in the version 1.6.3 ? Or does the version 1.6.3 have it fixed by another approach ?

              Andreas
              Hi Andreas

              Fix is not included in 1.6.3.

              It should be possible to use the same patch as for 1.4.6.
              The last hunk has an offset of two lines, only.
              So a decent patch can cope with this difference.

              I attached the patch to this article.

              HTH,

              Norbert.
              Attached Files
              Last edited by NOB; 07-04-2009, 14:01. Reason: Added patch for 1.6.3, 1.6.4 is work in progress for me

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Apologies for not looking at the problem earlier. The patch will be integrated into 1.6.x branch soon.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • NOB
                  Senior Member
                  Zabbix Certified Specialist
                  • Mar 2007
                  • 469

                  #9
                  Originally posted by Alexei
                  Apologies for not looking at the problem earlier. The patch will be integrated into 1.6.x branch soon.
                  Hi Alexei

                  thanks a lot.

                  The patch in my previous article will work with 1.6.4, too.

                  Regards

                  Norbert.

                  Comment

                  • Andreas Bollhalder
                    Senior Member
                    Zabbix Certified Specialist
                    • Apr 2007
                    • 144

                    #10
                    The patch is working with 1.6.4 too.

                    Andreas
                    Zabbix statistics
                    Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

                    Comment

                    Working...