Ad Widget

Collapse

Email media type setup problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hoyt
    Member
    • Aug 2007
    • 31

    #1

    Email media type setup problem

    I am getting the following error when I try and use the Email media type to send a notification message:

    Wrong answer on HELO [ Jun 13 2006)) ]

    I put the hostname of our SMTP server in the "SMTP helo" field, and that matches what I get back when I do a "telnet smtphost smtp".

    What should be in the "SMTP helo" string be set to?

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

    #2
    Originally posted by hoyt
    What should be in the "SMTP helo" string be set to?
    Normally it is your domain name, for example, zabbix.com.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • hoyt
      Member
      • Aug 2007
      • 31

      #3
      Originally posted by Alexei
      Normally it is your domain name, for example, zabbix.com.
      Thanks for the reply. I tried putting in our domain, but that did not seem to fix it. But the DNS setup here is really kinda odd. I think I need to look at the code and see what is going on.

      Thanks again,
      --John

      Comment

      • hoyt
        Member
        • Aug 2007
        • 31

        #4
        Originally posted by hoyt
        Thanks for the reply. I tried putting in our domain, but that did not seem to fix it. But the DNS setup here is really kinda odd. I think I need to look at the code and see what is going on.

        Thanks again,
        --John

        I finally got the time to take a look at the problem, and found that zbxemail was not really doing the right thing with it's read()'s. Which was causeing the Zabbix email haddler to get out of sync with the SMTP host. I will be posting a patch for this in a few mintues to the patch forum.

        Comment

        • robotech
          Junior Member
          • Dec 2007
          • 1

          #5
          Applied the Patch - but still issues.

          Ok - So like I am running 1.4.2 and I applied the email patch, but I continue to get the same problem.
          My SMTP server does not show anything - no failed login attempt etc.

          I have not dug deeper, like to do a TCPDUMP er something - I can telnet on port 25 and get a response from the box.

          I am running fedora core 7, Here is the uname -a ( without the box name):
          2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 14:56:37 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux


          Is it possible that I missed something?

          How can I tell if my patch was applied successfully?

          TIA

          Robotech

          Comment

          • hoyt
            Member
            • Aug 2007
            • 31

            #6
            Originally posted by robotech
            Ok - So like I am running 1.4.2 and I applied the email patch, but I continue to get the same problem.
            My SMTP server does not show anything - no failed login attempt etc.

            I have not dug deeper, like to do a TCPDUMP er something - I can telnet on port 25 and get a response from the box.

            I am running fedora core 7, Here is the uname -a ( without the box name):
            2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 14:56:37 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux


            Is it possible that I missed something?

            How can I tell if my patch was applied successfully?

            TIA

            Robotech
            The patch only touches one file: src/libs/zbxemail/email.c , you can check there
            to see if the patch got applied okay or not.

            I personnly tracked down my problem by putting in some printf()'s in to
            email.c to see what was happening. That is how I found the truncated
            reads.

            --John

            Comment

            Working...