Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-989

does not sent ALERT mail with smtp due to problem with images

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • None
    • Alerting
    • None
    • unbunt 12.04 and observium svn 5775

    Description

      alert mail with embedded images are not sent if you configure observium to send them trough an external smtp server.
      email without images are sent correctly.
      looking with tcpdump on the mail server it looks like observium does not close the mail with \n.\n so the mta timeout the connection without sending the mail (without the image attach it does send \n.\n and RECOVER mail arrive correctly);

      it looks like email are cut at about 20K and that's why it does not close corretly the smtp session.

      Attachments

        Activity

          [OBS-989] does not sent ALERT mail with smtp due to problem with images
          landy Mike Stupalov made changes -
          Workflow Original: classic default workflow [ 11849 ] New: Observium workflow [ 14260 ]
          landy Mike Stupalov made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          landy Mike Stupalov made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Because the problem could not be reproduced, including the large size graphs (>50K) and over smtp server provided by the user. Probably a problem in the user os environment.

          landy Mike Stupalov added a comment - Because the problem could not be reproduced, including the large size graphs (>50K) and over smtp server provided by the user. Probably a problem in the user os environment.

          I did some more test and I can confim that:
          1) email smaller than 20K works correctly
          2) email larger than 20K does not works (even if I use an smtp postfix on localhost)
          3) the problem is on th smtp session between the php and the configured smtp server
          4) if I use "sendmail" instead of "smtp" as transport protocol it works correctly even with mail bigger than 20K

          emilio@ngi.it emilio brambilla added a comment - I did some more test and I can confim that: 1) email smaller than 20K works correctly 2) email larger than 20K does not works (even if I use an smtp postfix on localhost) 3) the problem is on th smtp session between the php and the configured smtp server 4) if I use "sendmail" instead of "smtp" as transport protocol it works correctly even with mail bigger than 20K

          No, mime parts already wrapped by 76 chars as in pear Mail:Mime:
          // RFC2822 recommends 78 characters limit, use 76 from RFC2047

          and graphs included not as mime part, but as data-uri.

          landy Mike Stupalov added a comment - No, mime parts already wrapped by 76 chars as in pear Mail:Mime: // RFC2822 recommends 78 characters limit, use 76 from RFC2047 and graphs included not as mime part, but as data-uri.

          the problem may be int the php not wordwrapping to 70 char per line mime attach?

          emilio@ngi.it emilio brambilla added a comment - the problem may be int the php not wordwrapping to 70 char per line mime attach?

          ya, Emilio, I'm got your email, thanks.

          landy Mike Stupalov added a comment - ya, Emilio, I'm got your email, thanks.

          hello mike, I did sent you the debug to your email address (our company policy does not allow me to publish on the public internet details on our network layout without an approval from managemenet);

          Test mail works perfectly and also work perfectly all the email smaller than 20K... the problem is with mail larger than 20K (I can receive alert mail with graph embedded, if the size is smaller than 20K and I receive all the RECOVER mail without graph attached, as they are always smaller than 20K)

          emilio@ngi.it emilio brambilla added a comment - hello mike, I did sent you the debug to your email address (our company policy does not allow me to publish on the public internet details on our network layout without an approval from managemenet); Test mail works perfectly and also work perfectly all the email smaller than 20K... the problem is with mail larger than 20K (I can receive alert mail with graph embedded, if the size is smaller than 20K and I receive all the RECOVER mail without graph attached, as they are always smaller than 20K)

          please show me debug out from script:
          ./test_mail.ph -d -h <some host>

          landy Mike Stupalov added a comment - please show me debug out from script: ./test_mail.ph -d -h <some host>

          People

            landy Mike Stupalov
            emilio@ngi.it emilio brambilla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: