Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2568

cannot send email alerts with IPv6 enabled and SMTP listening on IPv4

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Won't fix
    • Affects Version/s: 1.8.2
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:

      Description

      Suppose we have an SMTP server listening on 127.0.0.1:25 and we compile our server with IPv6 enabled. Module zbxemail uses zbx_tcp_connect() to connect to the SMTP server and uses the first address "localhost" resolves to with getaddrinfo(). The problem is that the first address "localhost" resolves to (at least in my case) is an IPv6 address, so alert sending fails with "Cannot connect to SMTP server [localhost] [*** Cannot connect to [localhost]:25 [Connection refused]]".

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              asaveljevs Aleksandrs Saveljevs
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: